Bleach Anime Forums | Personal Loans | Loans | Books | Best Search Engine
OnMouse Function for an Image Map [Archive] - ZGeek

PDA

View Full Version : OnMouse Function for an Image Map


hazza
18-08-2005, 06:13 PM
I'm trying to figure out how to do an OnMouseOver function for an image map for a web site i am trying to make for some friends of mine. the onmouseover function i want is for an image to replace the selected hotspot for the image map, if it cant be done, then a simple status window function would be fine.


im at a loss for this , havent done anything like it in years, tried to steal some scripts from an old page i did but i cant get it to work properly.


<div align="center"><img src="Images/DSC01744.resize..jpg" width="800" height="600" border="0" usemap="#Map">
<map name="Map" id="Map">
<area shape="rect" coords="111,132,221,225" href="about.htm" target="_blank" alt="About Us">
<area shape="rect" coords="528,133,637,233" href="events.htm" target="_blank" alt="Events">
<area shape="rect" coords="101,261,213,377" href="gallery.htm" target="_blank" alt="Gallery">
<area shape="rect" coords="538,263,653,378" href="login.htm" target="_blank" alt="Log In">
</map>
</div>

dwarfthrower
18-08-2005, 06:16 PM
So you want to dynamically replace _part_ of an image? - not possible.

What you'd need is to either break the image down into slices. Or have multiple images one for each selected item.

The Cunt
18-08-2005, 06:18 PM
Have you cut the image into slices?

hazza
18-08-2005, 06:19 PM
hmm i could split it up in 4 or 6 parts

just have a roller over function or something


but my image maps so l33t :(

The Cunt
18-08-2005, 06:21 PM
What image editing program are you using?

If it's cut into slices you won't need a leet image map.

gooey
18-08-2005, 06:23 PM
go for dwarfthrowers second option

keep your l33t image maps and just change the whole image onmouseover

The Cunt
18-08-2005, 06:56 PM
go for dwarfthrowers second option

keep your l33t image maps and just change the whole image onmouseover
That's a lot of bytes and preloaded images if you're changing a large image with anywhere between half a dozen and a dozen links that are rollovers.

hazza
18-08-2005, 07:41 PM
theres 4 links, so 4 images and there wont be much 'data' in the images, just 4 or 5 words as images..

*gets out slicer*

Pirate
18-08-2005, 07:45 PM
Or you could go fully overboard and use layers. Then spend then next 6 months trying to get them to look the same in different browsers. I dunno why I said this. It is of no use.

hazza
18-08-2005, 07:56 PM
DE-REPPPP 4 YOUUU PIRATE

layers aye?

if anyones willing to take a look at wat ive got and uhh... muck around with it for fun, pm me.

oo also, who can use flash :D