473,624 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML image map mouseover help

I have and image map with a dozen hotspot links on it that I'm trying to
get to open a new image over existing one on mouseover of each COORD. The
only thing I was able to do was swap image on mouseover entire image, I want
it on each hotspot only, so an image pertaining to each link shows up.
I have done it in JavaScript, but the website I'm using doesn't use
JavaScript. Y'all are obviously light-years more knowledgeable then me on
html and such, I had hoped you might have advise, ANY ADVISE, to help me out
thanx for your time.
AA
Oct 7 '06 #1
3 19494
Annette Acquaire wrote:
I have and image map with a dozen hotspot links on it that I'm trying to
get to open a new image over existing one on mouseover of each COORD.
Image maps are a bad route to go down for 99.9% of the time. See:
http://www.mcsr.olemiss.edu/~mudws/ismap.html
The
only thing I was able to do was swap image on mouseover entire image, I want
it on each hotspot only, so an image pertaining to each link shows up.
Use CSS with div elements and separate background images for each
section to be hovered.
E.G.
_______________ _____
| | | |
| div1 | div2 | div3 |
|______|______| ______|
| | | |
| div4 | div5 | div6 | Sample layout
|______|______| ______|
| | | |
| div7 | div8 | div9 |
|______|______| ______|

In the CSS:

div1 {
background: url('plain.png' );
}

div1:hover {
background: url('div1_hover .png');
}
I have done it in JavaScript, but the website I'm using doesn't use
JavaScript. Y'all are obviously light-years more knowledgeable then me on
html and such, I had hoped you might have advise, ANY ADVISE, to help me out
thanx for your time.
AA



--
| Brendan Gillatt |
| brendan {at} brendan \removethis// gillatt {dot} co {dot} uk |
| http://www.brendangillatt.co.uk |
| PGP Key: pgp.mit.edu:113 71/pks/lookup?op=get&s earch=0x6E265E6 1|
Oct 8 '06 #2
Scripsit Annette Acquaire:
I have and image map with a dozen hotspot links on it that I'm
trying to get to open a new image over existing one on mouseover of
each COORD.
As Brendan Gillatt wrote, image maps are usually a bad technique -
especially for simple navigation, since they turn it into complicated and
unreliable navigation.

Yet, the technical problem is intriguing.
The only thing I was able to do was swap image on
mouseover entire image,
That's the way - and you would thus need versions of the entire image for
each mouseover effect. It's possible but awkward and inefficient.
I want it on each hotspot only,
The problem is that even on browsers that support the onmouseover=".. ."
attribute for in HTML _or_ :mouseover in CSS <areaelements , there's not
much you can do in simple manner. In CSS, you cannot change the properties
of an enclosing element in a rule for an area:mouseover selector.
I have done it in JavaScript, but the website I'm using doesn't use
JavaScript.
I cannot quite see how you could do it even for the entire image without
using JavaScript. You can use overlaid <imgelements and z-index to select
which image is visible (i.e., on the top), but how could you make this
depend on the _area_?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Oct 8 '06 #3
Brendan wrote:
>Use CSS with div elements and separate background images for
each
>section to be hovered
To my modest knowledge the CSS hover command is not supported in IE. We
are all looking forward to IE7 to get this feature available.
PS: IE7 RC1 proves it works.

Best regards
Jobe
www.web-garden.be
Jukka K. Korpela wrote:
Scripsit Annette Acquaire:
I have and image map with a dozen hotspot links on it that I'm
trying to get to open a new image over existing one on mouseover of
each COORD.

As Brendan Gillatt wrote, image maps are usually a bad technique -
especially for simple navigation, since they turn it into complicated and
unreliable navigation.

Yet, the technical problem is intriguing.
The only thing I was able to do was swap image on
mouseover entire image,

That's the way - and you would thus need versions of the entire image for
each mouseover effect. It's possible but awkward and inefficient.
I want it on each hotspot only,

The problem is that even on browsers that support the onmouseover=".. ."
attribute for in HTML _or_ :mouseover in CSS <areaelements , there's not
much you can do in simple manner. In CSS, you cannot change the properties
of an enclosing element in a rule for an area:mouseover selector.
I have done it in JavaScript, but the website I'm using doesn't use
JavaScript.

I cannot quite see how you could do it even for the entire image without
using JavaScript. You can use overlaid <imgelements and z-index to select
which image is visible (i.e., on the top), but how could you make this
depend on the _area_?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Oct 8 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2798
by: Torben Hoffmann | last post by:
Hi, I have searched high and low for an answer to this, but I have not been able to find it. I have found tools (such as Batik) to generate a gif|jpeg|png from a SVG file, but I would also like to extract the links in the SVG file into a HTML image map. I want to produce my drawings in SVG, but postpone the requirement of
3
13452
by: John | last post by:
Imagine this: I have a gif-image with text, coloured green. When MouseOver occurs the gif will swap to another gif with red colourded text. On MouseOut the gif turns back to the green text. -----------------This is my code: <a href="nextpage.html" onMouseOver="document.green.src='red.gif'" onMouseOut="document.green.src='green.gif'">
8
38791
by: PhilM | last post by:
Having googled myself silly, I now ask, if only to confirm my conclusions Is it possible to emulate the <javascript>mouseover in css, to replace link images with an alternate? Having asked, I now return to google, in case I missed heaps. ;) Regards, PhilM
2
1398
by: itsme | last post by:
Hello, I am using HTML image buttons in my web application and when I run it, all my image buttons are showing up with a border. I tried using border="0" with the input tag, but it is deprecated. <input border="0" src="../images/next.jpg"
0
1502
by: Iceman | last post by:
To help speed up HTML image mapping try out Precision HTML Image Mapper from Hackett Solutions Inc. http://www.hackettsolutions.com/PrecisionHTMLImageMapper.aspx The Precision HTML Image Mapper provides point and click functionality to generate your HTML image map quickly. Try it out! Your image will be mapped in seconds!
1
2172
by: Kenmc24 | last post by:
Hi, In Fireworks I'm creating a sliced image box that I can put html into. The final web page will be a long sales letter with a box around it. As the sales letter gets longer and longer, I've been just adding to the size of the left and right side image. <img src="side.gif" height=500> and so forth. The sales letter is long and the side.gif ends up being about 24,000 pixels long. This works fine in Firefox browser, no problem. But...
13
7891
kaya
by: kaya | last post by:
Ok, on half my tables myspace has it preset to have the images align vertically instead of horizontally.... i would like to change that. its annoying to have one half all neat with 3 images side by side in each row then scrool to the right and they are all straight down.... for months ive settled with just using a hspace= vspace= tag for every image to make it kind zig zag but im tired of that... anyone know any code to accomplish this?????? ...
4
1774
by: ericjiii | last post by:
Hi. A friend of mine asked me if I could look at one of his java scripts in order to get it working. Unfortunately I am stumped and was wondeirng if somebody with a bit more experience than myself can look it over and help me identify what is wrong . <script LANGUAGE="JavaScript"> <!-- Begin image10 = new Image(); var imageDir = "http://2005.rock103.com/pages/bod/thong/"; var d = new Date()
0
1145
by: chithrausha | last post by:
Iam having an HTML file where in iam writing some text and it has some background image embedded in it.i want to convert that html file to image file and want to export it in pdf format.(without converting to image file,the image is not exported.)can anyone tell me how to convert an html image file into pdf format using c# coding.it is very urgent.please
0
8234
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
8172
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8677
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8620
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...
0
7158
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...
0
4079
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...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2605
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
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.