Re: Rollovers and Absolute Positioning
by "Phil Babcock" <pbabcock(at)bgsgroup.com>
|
| Date: |
Fri, 25 Feb 2000 09:10:28 -0500 |
| To: |
paulf(at)quillandmouse.com, "hwg-techniques(at)hwg.org" <hwg-techniques(at)hwg.org> |
| References: |
rocky |
| |
todo: View
Thread,
Original
|
|
For rollovers, instead of using the image array I do this:
<a href="wherever" onmouseover="image1.src='image2.gif'"><img
src="image1.gif" name="image1"></a>
I havent tested this with what you want to do, but it should at least get
around using the array.
*********** REPLY SEPARATOR ***********
Paul M. Foster wrote:
>HWGs:
>
>Here is what I need help with. I've got about 50 images that need to be
>placed very precisely (to the pixel) over a background. Most of the images
>are also part of hyperlinks. The idea is that when the user mouses over,
>out or down, a different version of the image will display. This is
>standard rollover stuff. However, the images (over, down and out) must be
>very precisely placed on the page as well. When the user mouses down, the
>hyperlink activates and he goes wherever it sends him/her.
>
>There will be quite a few pages similar to this, sitting locally on a box
>running Netscape 4.61 Linux, and 50 images and their position and actions
>are not being spec'd by me. This is the client's design.
>
>For absolute positioning, there are several alternatives, but the simplest
>in concept is just CSS and then span tags where each of the images is.
>Rollover code is pretty standard. However, apparently you can't use
>standard rollover code with CSS and span tags. It appears that the span
>tags "hide" the img tags so they don't populate the document.images array,
>which is what rollover code uses to change the image on overs, downs and
>outs. (That is, if I take the span tags off, the mouseovers work, but now
>I can't do precise positioning because I'm using span tags to do it.)
>
>I can do _almost_ do precise positioning with the use of tables, but it's
>a real bear, and it tortures the HTML to make it work with Netscape.
>
>Anyway, I can get the rollovers to work and I can get the absolute
>positioning to work, but I can't get them to both work together.
>
>Any clues?
>
>Paul M. Foster
*********** END REPLY SEPARATOR ***********
Phil Babcock
Lead Web Designer
BGS Group Inc.
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.