Forum Moderators: open

Message Too Old, No Replies

Fixed Images and Image Maps

Not referring to background images

         

lync

5:05 pm on Jun 13, 2004 (gmt 0)

10+ Year Member



Hi!

I am working on my personal website and am trying to get an image map on a fixed background image. I have tried using a transparent gif and putting the map on that over the background but the only problem is that gif scrolls with the page and the links then get a little messed up. Is there anyway I can fix an image on the page so it doesn't scroll and still do an image map?

Thanks!

BlobFisk

5:28 pm on Jun 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, lync!

There is no way of applying an image map to a background image, but you could put your image map on a <div> and scripting it so that the layer is fixed.

While there is a CSS property fixed, you need some scripting (JavaScript mainly) to achieve this effect cross browsers.

HTH

lync

6:34 pm on Jun 13, 2004 (gmt 0)

10+ Year Member



Thanks very much! I have tried using CSS and <div> and have had limited luck but I'll fiddle around with it again. :)

BlobFisk

7:34 pm on Jun 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Dynamic drive have a static menu script that you could use. Use the code for making the <div> fixed and put whatever you need inside it.

Any other problems - just ask!