|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Here's my dilemma:
I have an imagemap and when I mouseover a certain region, I want the image to change and a webpage to load in a different part of the frame. That I have done. However, I was wondering if its possible that when I click on the region, for the "mouseover-ed" image to remain there and not change? Just to clarify, I still want the on-off mouseover cycling ability - but when the image is clicked i want it to stay. Any hints? Jason Yuen |
|
#2
|
|||
|
|||
|
onClick method should do the trick. When the onClick fires, a function keeps the image in place.
click_46 |
|
#3
|
|||
|
|||
|
but the imagemaps don't support onClick, do they?
|
|
#4
|
|||
|
|||
|
Yes, an imagemap should support onClick. If they support onMouseover, they'll support onClick. But it won't work, because onMouseOut will trigger it to disappear again. You'll have to build a function that will set a state using onClick, and check that state before performing the onMousOut function. I'm not an expert on JavaScript, but I'll have a look around for you...
adam |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > onMouseovers and imagemaps |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|