codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Dynamic Usemap Problem  yours ravi at 13:14 on Wednesday, December 10, 2008
 

Hi all ,

Iam facing the problem with usemap, iwant to call the use map dynamically.

here is the code

document.images.trucksMainId.src = "includes/images/trucks/Truck"+currImage+"/forum/.gif";
document.images.trucksMainId.usemap = "Truck"+currImage+"/forum/.gif";

By setting this, usemap is called only once , iwant all the usemaps get excecuted


<img id="trucksMainId" usemap="/forum/index.html" border="0" name="trucksMainId" />



<map name="/forum/Truck01.gif">
<area shape="circle" coords="67,164,10" href="http://www.sf.com" alt="Engine">
<area shape="circle" coords="67,164,10" href="http://www.fsd.com" alt="Engine"> -->

</map>

<map name="/forum/Truck02.gif">
<area shape="circle" coords="67,164,10" href="http://www.sf.com" alt="Engine">
<area shape="circle" coords="67,164,10" href="http://www.fsd.com" alt="Engine"> -->

</map>

Thanks in advance..
Ravi








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  OPENING FOR: PERL (Developer/ Senior/ Team Lead)
•  Re: Help with code
•  remove character on a line of a file with check box
•  Pulling Data from 2 tables with variables from a 3rd table!!!
•  Dynamic Usemap Problem
•  How to highlight text WITHIN a JTable cell?
•  How to highlight text WITHIN a JTable cell?
•  c++ project
•  Re: submit button


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008