WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > PROGRAMMING LANGUAGES > Scripting and Server Side > Javascript rollover on an image map.

Reply
  Thread Tools Display Modes
Old 13th January 10, 11:34 PM   #1
Funkbomb
WLC Member
 
Join Date: Sep 2008
Posts: 19
Default Javascript rollover on an image map.

I'm worse at javascript than I am at CSS.

Alright, on my index page, it's pretty much one graphic. On that, there is some text which are links to sub-pages. The text are all part of that one graphic.

I have my html image map all laid out. At least I can handle that on my own. :p

What I want to do is when someone hovers over the image map parts, the text changes colors. I already have the images ready.

I sort of understand how to do a JS rollover but I don't know how to do that in an image map.
Funkbomb is offline   Reply With Quote
Old 15th January 10, 11:57 AM   #2
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Javascript rollover on an image map.

You can't.

Or rather you can but it will take a fair amount of javascript programming to decode the location of the mouse pointer and make the necessary adjustments.

OR get rid of the image map and recreate it as a grid of elements each with a section of the map as a background image.

Both will require more knowledge of CSS and javascript than you suggest you have.
chrishirst is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:08 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.