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+".gif";
document.images.trucksMainId.usemap = "Truck"+currImage+".gif";

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


<img id="trucksMainId" usemap="#Truck01.gif" border="0" name="trucksMainId" />



<map name="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="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
• C++
• Re: refresh parent after closing pop up window
• Dynamic Insertion
• Date and Time function around the world???
• Significant Factors
• Perl array access
• Re: huffman encoding and decoding in C++...
• Perl One Liner: Replace {(
• Re: html including php, accessing the functions


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-2009