Quick Search
Sunbelthost Hosting - Colocation and Dedicated Servers

Threads: 21,763
Posts: 83,205
Members: 24,315
Newest member: joemccue

Web Hosting


 
  #1  
Old 04 Jun 2009, 12:01 PM
NTxNerd's Avatar
NTxNerd NTxNerd is offline
Established Member
 
Join Date: Mar 2008
Location: North Texas
Posts: 116
Exclamation Help with Image Map & OnMouseOver Image Change

I need help with Image Map & OnMouseOver Image Change.

Here is the link. The main image should have 7 different images that change when you mouseover on each different picture.

I'm not sure how to achieve this. Should there be a preload? I've tried several different things as you can see in my source. I feel like I'm close but not sure where to go with this.

The web has so many different ways of achieving it.

Thanks in advance!
__________________
North Texas Nerd- Website Design, Email Marketing, Professional Print Services & Much More.

"Who ever said being a nerd was bad?"
Reply With Quote
  #2  
Old 04 Jun 2009, 02:03 PM
Wickham's Avatar
Wickham Wickham is offline
Established Member
 
Join Date: Feb 2006
Location: Salisbury UK
Posts: 3,865
Quote:
The web has so many different ways of achieving it.
That's very true. You have an image map that works well, but hover images may not be possible. Background-images won't work because the image map already has a normal image petroflexsample.png and so several background-images would be behind it.

I used a totally different method in item 2b here http://www.wickham43.net/imagemaps.php

It uses a position: relative containing div with the main image (you would use petroflexsample.png) and then uses position: absolute to layer separate divs over the top positioning them with top and left positions. My images are small but you could make them the size of each of your seven images and each would be a link (my code uses display: block so that the image is a link for its whole area).
__________________
Code downloaded to my PC will be deleted in due course.
WIN XP SP3; IE7, Firefox 3.5, Opera and Safari for Windows; screen resolution usually 1024x768.
IE6 on W98 with 800*600. IE8 RTM on Vista 1440*900.
Reply With Quote
  #3  
Old 04 Jun 2009, 03:20 PM
NTxNerd's Avatar
NTxNerd NTxNerd is offline
Established Member
 
Join Date: Mar 2008
Location: North Texas
Posts: 116
Okay I will play with it and see what I can come up with.

Thank you. I know this is something I will use a lot in the future and wanted to get familiar with the technique.
__________________
North Texas Nerd- Website Design, Email Marketing, Professional Print Services & Much More.

"Who ever said being a nerd was bad?"
Reply With Quote
  #4  
Old 04 Jun 2009, 03:28 PM
NTxNerd's Avatar
NTxNerd NTxNerd is offline
Established Member
 
Join Date: Mar 2008
Location: North Texas
Posts: 116
Is your <dl id> the same as my div id?
__________________
North Texas Nerd- Website Design, Email Marketing, Professional Print Services & Much More.

"Who ever said being a nerd was bad?"
Reply With Quote
  #5  
Old 05 Jun 2009, 01:55 AM
Wickham's Avatar
Wickham Wickham is offline
Established Member
 
Join Date: Feb 2006
Location: Salisbury UK
Posts: 3,865
My <dl id="imap2"> is the equivalent of your <DIV id="headerpic">
My <dd> is the equivalent of your <AREA....

As I said, I couldn't think of a way to add the hover images on an image map, so I used a dl and dd list with position: absolute divs layered on top with the links.

There probably are other ways.
__________________
Code downloaded to my PC will be deleted in due course.
WIN XP SP3; IE7, Firefox 3.5, Opera and Safari for Windows; screen resolution usually 1024x768.
IE6 on W98 with 800*600. IE8 RTM on Vista 1440*900.
Reply With Quote
  #6  
Old 08 Jun 2009, 10:32 AM
NTxNerd's Avatar
NTxNerd NTxNerd is offline
Established Member
 
Join Date: Mar 2008
Location: North Texas
Posts: 116
Thank you. I think I figured it out.
__________________
North Texas Nerd- Website Design, Email Marketing, Professional Print Services & Much More.

"Who ever said being a nerd was bad?"
Reply With Quote
Reply

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disappearing navigation in IE businessman2000 Web Design, HTML Reference and CSS 9 15 Dec 2009 05:00 PM
Gone over & over it... image map not working mickapoo Web Design, HTML Reference and CSS 3 31 Mar 2009 02:33 PM
Help With Image Map With Rollovers and More porphyrins General Questions 1 03 Dec 2008 02:57 AM
Resizing images messing up image map Theodren Web Design, HTML Reference and CSS 1 17 Feb 2007 08:57 AM


All times are GMT -5. The time now is 01:16 PM.


 

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Forums Copyright © 2004-2010, WebDevForums.com. Web design by Miami Web Design. All Rights Reserved.