By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,474 Members | 1,001 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,474 IT Pros & Developers. It's quick & easy.

How do we make hotspots trigger rollovers?

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.