How do we make hotspots trigger rollovers?

P

paul

HI! How do we make a hotspot trigger a rollover. I have a circumstance that
needs this and I don't know how to go about this.
one image with two or more hotspots. when one hotspot is click then rollover
1.jpg will be triggered, but if the other is click then 2.jpg will be
triggered in the same location. Is this possible?

can someone help me?

Paul
 
R

Randy Webb

paul said the following on 4/15/2006 11:50 PM:
HI! How do we make a hotspot trigger a rollover.

You use the onmouseover and onmouseout event handlers.
I have a circumstance that needs this and I don't know how to go about this.

Google is your friend.
one image with two or more hotspots. when one hotspot is click then rollover
1.jpg will be triggered, but if the other is click then 2.jpg will be
triggered in the same location. Is this possible?

Yes, very possible and trivial in fact.
can someone help me?

Show your sample code first. Or, is a "can someone help me" another way
of asking "will someone write this code for me"?
 
E

Evertjan.

Randy Webb wrote on 16 apr 2006 in comp.lang.javascript:
paul said the following on 4/15/2006 11:50 PM:

You use the onmouseover and onmouseout event handlers.


Google is your friend.


Yes, very possible and trivial in fact.


Show your sample code first. Or, is a "can someone help me" another
way of asking "will someone write this code for me"?

True.

However the answer is simple, taken from one of my pages fron 2001:

<map name="myMap">
<area shape="rect" coords="1,111,70,241" nohref
onMouseOver="spotMyOver(1);"
onMouseOut="spotMyOut(1);"<area ....

<img src="../images/xxx.jpg" border="0" usemap="#myMap"
onMouseOut="possibleMyOutDefault();">
 
P

paul

Evertjan. said:
Randy Webb wrote on 16 apr 2006 in comp.lang.javascript:


True.

However the answer is simple, taken from one of my pages fron 2001:

<map name="myMap">
<area shape="rect" coords="1,111,70,241" nohref
onMouseOver="spotMyOver(1);"
onMouseOut="spotMyOut(1);"
<area ....

<img src="../images/xxx.jpg" border="0" usemap="#myMap"
onMouseOut="possibleMyOutDefault();">

HI! thanks I will look into it. I dont know allot of JV as I am studing at
the moment flash, but I thank you for given the example as it gives me a
starting point. :)

Paul
 
E

Evertjan.

paul wrote on 16 apr 2006 in comp.lang.javascript:
HI! thanks I will look into it. I dont know allot of JV as I am
studing at the moment flash, but I thank you for given the example as
it gives me a starting point. :)

What TH is JV ?????????????????

If you mean Java, that is another language,
not connected with JavaScript but in name.
 
P

paul

Evertjan. said:
paul wrote on 16 apr 2006 in comp.lang.javascript:


What TH is JV ?????????????????

If you mean Java, that is another language,
not connected with JavaScript but in name.

opps a typo, I meant JS.

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top