User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 426,428 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,339 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

Imagemap Menu Need help

Join Date: Oct 2005
Posts: 236
Reputation: Inny is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: Imagemap Menu Need help

  #3  
Mar 29th, 2008
I decided to go simpler by using a tooltip mouseover on each clickable area of the second (black) banner.

but how to i assign c0-0rdinates for image map areas to click on the second (black) banner?


<body>
<SCRIPT LANGUAGE=JavaScript>
intImage = 2;
function swapImage() {
switch (intImage) {
 case 1:
   IMG1.src = "http://i14.photobucket.com/albums/a345/Instar/part1.jpg"
   intImage = 2
   return(false);
case 2:
   IMG1.src = "http://i14.photobucket.com/albums/a345/Instar/Avatars/menu.jpg"
   intImage = 1
   return(false);
 }
}
</SCRIPT>


<script src="http://h1.ripway.com/Inny/wz_tooltip.js "></script>



<img src ="http://i14.photobucket.com/albums/a345/Instar/part1.jpg"
width ="741" height ="70" 
usemap ="#planetmap" onmouseover="swapImage();" onmouseover="Tip('Some text that explains this linky poo', BGCOLOR, 'yellow')" 
 onmouseout="UnTip()" /><map id ="planetmap"
name="planetmap">
<area shape ="rect" coords ="60,10,150,200"
  href ="http://i14.photobucket.com/albums/a345/Instar/Avatars/menu.jpg" width ="741" height ="70" />
  </map> 
</body>
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote  
All times are GMT -4. The time now is 2:27 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC