473,468 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2698
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lovely Angel | last post by:
Dear Friends Hope you all doing great. There is this thing which to me looks possible, but when I searched over the net I couldnt find anything. Any ideas about this please do let m eknow. I...
3
by: gallery | last post by:
I also cross-posted this in comp.infosystems.www.authoring.html. I think it's more appropriate here. I read somewhere that you can get Tim Murtaugh's Mo' Betta Rollovers to work in Firefox using...
2
by: Frances Del Rio | last post by:
Hi, I while back I was having a problem with rollovers, even though I do them in a very conventional way: function roll(i) { document.src = eval(i + "_roll.src") } // in which value passed...
2
by: Neven Klofutar | last post by:
Hi, How can I create image hotspots in VS2K3, and is there a way I can run them as server controls somehow ? Thanx, Neven
1
by: jediknight | last post by:
Hi All, I am very new to ASP.NET but have used c# for windows very much. I would like to display an imagemap which has the background as the map of a city centre and icons denoting important...
1
by: BP | last post by:
Hi all! I want to generate hotspots in an ImageMap "programatically" (not using a graphical editor), ie I have a world map and a database containing city coordinates, and I'd like to create a...
5
by: ZAIN786 | last post by:
hiii plz help me out on this how can i make hotspots in flash????i want to make hotspots on maps ??? i ll be grateful cheerz
0
by: Aaron Smith | last post by:
Does anyone know of a component where a end user can import a picture and then draw out hotspots on that image but then be able to save the sizes and locations of those hotspots relative to their...
1
by: Jahamos | last post by:
Background: I have copy and pasted an Excel flowchart into a Dreamweaver html page. I created a frame on the top of the page as a viewer. I created hotspot links over the flowchart items. Each...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.