![]() |
OT: CSS/DHTML Problem
http://usm.spaceempires.net/formations.php
When hovering the mouse over the name of a formation on the left, it should pop up an image of the formation in the box on the right. Unfortunately, this does not happen. The appropriate image pops up, but it is offset too much, and each successive image is offset even more. How would I fix this? |
Re: OT: CSS/DHTML Problem
Instead of tying the image to each link, try updating the image src of "Default.png". It looks like the top of the image is lining up with the top of the link in Firefox. Testing in IE now...
--edit: Ok, I only have IE5.0, so it's completely broken. Can you blame me for only doing a mad rush to get patches then Firefox, instead of updating IE? http://forum.shrapnelgames.com/images/icons/icon7.gif [ July 30, 2004, 05:16: Message edited by: Will ] |
Re: OT: CSS/DHTML Problem
Does the same thing in IE.
How would I do that exactly? edit: Quote:
[ July 30, 2004, 05:17: Message edited by: Imperator Fyron ] |
Re: OT: CSS/DHTML Problem
I don't recall the exact syntax for the different DOMs of IE and Gecko, but it's something along the lines of using a mouseOver event to do imageName.src = "newImageFile.png";
I'll see if I can find it in any of my stuff. |
Re: OT: CSS/DHTML Problem
It works! Thanks Will!
|
Re: OT: CSS/DHTML Problem
It does? In everything? I didn't think it would be that easy... meh.
For the curious, the syntax is </font><blockquote><font size="1" face="sans-serif, arial, verdana">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> document['imageName'].src = newImageSrc; </pre><hr /></blockquote><font size="2" face="sans-serif, arial, verdana"> |
Re: OT: CSS/DHTML Problem
Oh it was!
Of course, I still have the traditional problem of my tables appearing wonky in IE... |
All times are GMT -4. The time now is 05:49 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.