IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Usemap And Table Background Image Changing


kvarnerexpress
no avatar
Super Member
*********
Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



Post #1 post Jan 23 2006, 03:50 PM
I have a menu page that consists of links to other pages. The page has a background image of a globe. The globe is divided into seperate sections for each menu item. As a user hovers over each section I change the background image(The same globe with that section highlighted.)

That is what I have so far except that they have to hover over a small anchor tag that I put in not the whole section. I want to change it so that they can actually hover over all of the section they are selecting.

I found usemap online but haven't found any examples where it will actually change the background image.. only allows you to set a link for certain shapes.

Can anyone point me in the right direction?
Go to the top of the page
+Quote Post
sxyloverboy
no avatar
Super Member
*********
Group: Members
Posts: 302
Joined: 17-June 05
From: Frankfurt, Germany
Member No.: 8,358



Post #2 post Jan 23 2006, 04:10 PM
hm well what method are you using right now to change it. can you show us your code? or link your page?
Go to the top of the page
+Quote Post
jlhaslip
no avatar
<?php $answer = googleit( $question ) ; ?>
*******************
Group: [MODERATOR]
Posts: 4,433
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:74.00



Post #3 post Jan 23 2006, 05:22 PM
Here is one way to accomplish what you want.
The basics are to place the image on the background of the page and then when the on-hover status is determined, the image is replaced by another. This method as explained above uses new images for the on-hover replacement.
Another method described here uses a single image containing several 'pictures' and 'offsets' the image so that the "mapped" section is displayed on hover. You didn't leave us a link to look at, so we can't make a determination as to which might be best for your application. Perhaps you could leave a link for review?
Go to the top of the page
+Quote Post
jlhaslip
no avatar
<?php $answer = googleit( $question ) ; ?>
*******************
Group: [MODERATOR]
Posts: 4,433
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:74.00



Post #4 post Jan 23 2006, 07:26 PM
Oops, sorry, upon re-reading this topic, I now realize that you have a handle on the techniques, but want to 'reshape' the hot spot for the rollover? If so, go here and check out the part about polygons. I googled on "Image mapping html shapes" to find this link. (hint)
Go to the top of the page
+Quote Post
Lozbo
no avatar
Super Member
*********
Group: Members
Posts: 282
Joined: 1-September 05
From: Wanatos
Member No.: 11,382



Post #5 post Jan 25 2006, 02:03 AM
Im not exactly sure if I understood correctly, why dont you post a link to your site which you are developping?

What generator are you using? (dreamweaver, notepad, frontpage..) If you are using dreamweaver its very easy to achieve rollovers and to draw shapes , rectangles circles and polygons...

By the way, if some one is interested, i didnt know that the 'map' tag was xhtml strict supported, but made a quick test and it is!
Go to the top of the page
+Quote Post
jlhaslip
no avatar
<?php $answer = googleit( $question ) ; ?>
*******************
Group: [MODERATOR]
Posts: 4,433
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:74.00



Post #6 post Jan 25 2006, 05:25 PM
I was successful in finding an Image Mapping Software which is really good. Better than anything else I have found. I did this: http://www.jlhaslip.trap17.com/mlafever/consulting.html using two "layers", the entire image and then there are about 16 other hotspots which sit on top of it. I'll add better definitions for it next. Fill in both alt and title, because ff and Opera use title= and IE uses alt=. Javascript functions are also available by defining them. Check out their sample.

The package is called geohtml, the source is: http://www.fegi.ru/geohtml/
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   13 galexcd 1,034 14th August 2007 - 01:25 PM
Last post by: Galahad
No New Posts   5 SilverBoarder 692 27th August 2004 - 04:15 AM
Last post by: zip_mc
No New Posts   4 Alpha 857 28th December 2008 - 05:12 PM
Last post by: stanny
No New Posts   12 cragllo 1,030 25th August 2004 - 08:09 AM
Last post by: cragllo
No New Posts   3 zer000s 318 12th April 2008 - 10:54 AM
Last post by: the need for speed
No new   16 DataHead 1,371 3rd September 2004 - 09:44 PM
Last post by: Bash
No New Posts   2 wassie 638 10th September 2004 - 11:00 PM
Last post by: Señor Maniac
No New Posts   1 Señor Maniac 333 13th September 2004 - 03:44 AM
Last post by: Zenchi
No New Posts   6 Mario 571 29th September 2004 - 12:28 PM
Last post by: inshare
No new   20 Señor Maniac 1,169 24th September 2004 - 12:55 AM
Last post by: Señor Maniac
No New Posts   8 fffanatics 649 6th February 2008 - 05:34 PM
Last post by: karlosantana
No New Posts   4 X3r0X 273 9th October 2004 - 06:31 AM
Last post by: Spectre
No New Posts   13 googlue 1,874 16th October 2004 - 03:23 PM
Last post by: googlue
No New Posts   8 bowti3 1,478 16th October 2004 - 03:26 PM
Last post by: hulunes
No New Posts   8 sohahm 401 21st October 2004 - 08:44 PM
Last post by: beg4mercy


 



RSS Open Discussion Time is now: 8th January 2009 - 05:37 PM