|
|
|
|
July 30th, 2004, 05:49 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
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?
|
July 30th, 2004, 06:13 AM
|
|
Lieutenant Colonel
|
|
Join Date: Mar 2001
Location: Emeryville, CA
Posts: 1,412
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
[ July 30, 2004, 05:16: Message edited by: Will ]
__________________
GEEK CODE V.3.12: GCS/E d-- s: a-- C++ US+ P+ L++ E--- W+++ N+ !o? K- w-- !O M++ V? PS+ PE Y+ PGP t- 5++ X R !tv-- b+++ DI++ D+ G+ e+++ h !r*-- y?
SE4 CODE: A-- Se+++* GdY $?/++ Fr! C++* Css Sf Ai Au- M+ MpN S Ss- RV Pw- Fq-- Nd Rp+ G- Mm++ Bb@ Tcp- L+
|
July 30th, 2004, 06:14 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT: CSS/DHTML Problem
Does the same thing in IE.
How would I do that exactly?
edit:
Quote:
--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? [Smile]
|
IE is crap anyways.
[ July 30, 2004, 05:17: Message edited by: Imperator Fyron ]
|
July 30th, 2004, 06:18 AM
|
|
Lieutenant Colonel
|
|
Join Date: Mar 2001
Location: Emeryville, CA
Posts: 1,412
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
__________________
GEEK CODE V.3.12: GCS/E d-- s: a-- C++ US+ P+ L++ E--- W+++ N+ !o? K- w-- !O M++ V? PS+ PE Y+ PGP t- 5++ X R !tv-- b+++ DI++ D+ G+ e+++ h !r*-- y?
SE4 CODE: A-- Se+++* GdY $?/++ Fr! C++* Css Sf Ai Au- M+ MpN S Ss- RV Pw- Fq-- Nd Rp+ G- Mm++ Bb@ Tcp- L+
|
July 30th, 2004, 07:29 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT: CSS/DHTML Problem
It works! Thanks Will!
|
July 30th, 2004, 07:57 AM
|
|
Lieutenant Colonel
|
|
Join Date: Mar 2001
Location: Emeryville, CA
Posts: 1,412
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 code:
document['imageName'].src = newImageSrc;
__________________
GEEK CODE V.3.12: GCS/E d-- s: a-- C++ US+ P+ L++ E--- W+++ N+ !o? K- w-- !O M++ V? PS+ PE Y+ PGP t- 5++ X R !tv-- b+++ DI++ D+ G+ e+++ h !r*-- y?
SE4 CODE: A-- Se+++* GdY $?/++ Fr! C++* Css Sf Ai Au- M+ MpN S Ss- RV Pw- Fq-- Nd Rp+ G- Mm++ Bb@ Tcp- L+
|
July 30th, 2004, 08:10 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT: CSS/DHTML Problem
Oh it was!
Of course, I still have the traditional problem of my tables appearing wonky in IE...
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|