473,804 Members | 2,719 Online
Bytes | Software Development & Data Engineering Community
+ 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 2719
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.javas cript 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.javas cript:
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,7 0,241" nohref
onMouseOver="sp otMyOver(1);"
onMouseOut="spo tMyOut(1);"

<area ....

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

--
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.javas cript:
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,7 0,241" nohref
onMouseOver="sp otMyOver(1);"
onMouseOut="spo tMyOut(1);"

<area ....

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


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.javas cript:
However the answer is simple, taken from one of my pages fron 2001:

<map name="myMap">
<area shape="rect" coords="1,111,7 0,241" nohref
onMouseOver="sp otMyOver(1);"
onMouseOut="spo tMyOut(1);"

<area ....

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


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.javas cript:
However the answer is simple, taken from one of my pages fron 2001:

<map name="myMap">
<area shape="rect" coords="1,111,7 0,241" nohref
onMouseOver="sp otMyOver(1);"
onMouseOut="spo tMyOut(1);"

<area ....

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


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.javas cript:
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
2857
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 want to create a page where I can upload an image using any upload function and then display it. Now after diplaying it I want to select the hotspots for it and create
3
590
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 just CSS (no javascript) . Can someone tell me how to do it? http://www.alistapart.com/articles/rollovers/
2
1505
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 to function is "name" attr in img tag.. but on my home page, www.francesdelrio.com, I have rollovers like this: function doRoll(Img,newImage) {
2
1144
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
2926
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 landmarks. I would like to have some hotspots on these icons so when the user clicks on them, I can show a little window with some information on it about that site.
1
1401
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 hotspot on this world map for each city. It would be really nice to tag each hotspot so the application could provide different informations when the mouse is moved over a hotspot. Anybody has suggestions?
5
9462
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
1186
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 location and size on the image? I need the end users to be able to define these hotspots and then be able to link them to a record in a database... After they do that, they will need to be able to interact with these hotspots by clicking and right...
1
3339
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 hotspot link should open a new anchor link in the top frame which references a different webpage. Problem: It works fine in Firefox. When clicking on the hotspots I get the appropriate html page anchor link to reference my html page and it correctly...
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10325
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.