PDA

View Full Version : Change url when onOver with another image under


Gabs
03-10-2009, 04:03 PM
I have my primary image at the top right corner. And ive got some smaller images on top of this primary image.

When i mouse over one of those smaller images i want to change the url to another image. Which would indicate an onOver-effect.

The code below works if i put the smaller image next to my primary image: The smaller image changes from a blue circle to a green circle. It also works if i completely remove the spot id="mapBackground".

But when i use the code below as it is written and i onOver my mouse upon my circle the image dissapear, no other image is shown.. if i remove the mouse the dot_active.png image returns.

Why doesnt show the green circle(dot_on.png) ??

cheers!

<spot
id="mapBackground" alpha="0.5"
url="map.png"
linked=""
static="1"
depth="15"
scale="0.6"
align="RT"
salign="RT"
staticX="-5"
staticY="-15"
onClick=""
onOver="alpha=0.85,200"
onOut="alpha=0.5,200"
/>
<spot
id="mapPointer1" alpha="0.8"
url="dot_active.png"
linked=""
static="1"
depth="20"
scale="1"
align="RT"
salign="RT"
staticX="-125"
staticY="45"
onClick=""
onOver="url=dot_on.png"
onOut="url=dot_active.png"
/>

christophe
03-11-2009, 05:40 AM
Hello,

Did you try this ?

onOver="mapPointer1.url=dot_on.png"

I would have thought it would have work as you did, but maybe by this way it could be different....!
Let me know !