468,290 Members | 2,025 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

How do we make hotspots trigger rollovers?

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
Apr 16 '06 #1
6 2493
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"?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 16 '06 #2
Randy Webb wrote on 16 apr 2006 in comp.lang.javascript:
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"?


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();">

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 16 '06 #3
Evertjan. wrote:
Randy Webb wrote on 16 apr 2006 in comp.lang.javascript:
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"?


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
Apr 16 '06 #4
paul wrote on 16 apr 2006 in comp.lang.javascript:
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. :)


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

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

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 16 '06 #5
Evertjan. wrote:
paul wrote on 16 apr 2006 in comp.lang.javascript:
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. :)


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
Apr 17 '06 #6
paul wrote on 17 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.


;-)

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 17 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Frances Del Rio | last post: by
2 posts views Thread by Neven Klofutar | last post: by
1 post views Thread by BP | last post: by
reply views Thread by Aaron Smith | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.