Javascript Xperts!!!
- Started
- Last post
- 14 Responses
- mmaler
Here is my issue...
When you rollover a button it flips the button image and a main image. I need to be able to change the image map (on the main image) when the button is rolled over.
This is driving me nuts...any ideas??
- jevad0
what?
link please
- mmaler0
I am still in development Jevad...but here is more info...
This is going to be an advanced navigation - non flash version for the people still in the stone age...
I have four buttons, and an image on the right of these buttons. When you rollover one of the buttons the image on the right changes with the nav items (subsections). When you rollover a button and the new image shows I need the image map on the main image to change.
- cosmo0
http://www.javascript-coder.com/…
something like this?
- mmaler0
No.
The button rollover isnt the problem. Its flipping the image map on an image on rollover.
- Crouwel0
show/hide div, you mean?
you want to swap another larger image on the page when you rollover a button, is that right?
- emokid0
tell me more about this image map business. i am still a little confused.
- mmaler0
Crouwel...
I am using JS rather than show/hide div. I have the larger image on the page flipping on rollover, what I need now is to change the image map attached to that image on rollover.
- mmaler0
One min everyone...I am going to post a sample on my site...
- Crouwel0
ok, but you are being vague about the image map..
can't you post an image with xome clues?
- emokid0
ah now i see what you mean. in that case i would recommend using show/hide divs like crouwel suggested.
each div can have an image with a different image map and you can show a different div depending on which roll over is being used. does that make sense?
- _lp0
No knowing how you code it, this could help you a bit...
you should put all your image maps and images into arrays to make relations.
When you do your switch, refer to your image id in the first array, to find your map in the second array.
Of course, seeing your code would help.. as in seing the function, & how you call it.
- mmaler0
Ok...here is a sample. Excuse the fact that I havent compressed / preloaded the images yet...
- _lp0
hum, ok, not sure on this one,
but, seeing source code, i would
send my map name/ide in function
call, as in:
onmouseover="R06(M03);Then do, in:
function R03(mapSend){
...
var mapName = mapSend
document.xx.mi_01.usemap.value = mapName;
}this is not perfect, but working around this would sure be the thing