Im trying to creat an Imagemap Menu using my banner. This is a proto-type for a much more complex imagemap menu.
I have created an imagemap of the original banner (click the eye) and used an image swap
script to swap to my 'menu banner' (which will have more clickable areas, some leading to further maps by way of image swap).
My problem is , the areas of the menu map that will lead to other imagemap menus, how do I add to the swap code to effect that?
how do I get the icons on the menu map clickable? EG
On the black menu map (banner), the first two icons will link direct to specific pages, clicking the third icon will swap the image to another similar black menu banner, also containing clickable icons to specific pages. and so on.
Heres what I have so Far (you can test in a testbed here http://www.jmarshall.com/easy/html/testbed.html )
<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>
The Imagemap/s
<img src ="http://i14.photobucket.com/albums/a345/Instar/part1.jpg"
width ="741" height ="70"
alt="banner"
usemap ="#planetmap" onclick="swapImage();" /><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>