Re: JS mouseover but no mouse out
by "Peter Newton" <c-newton(at)ihug.co.nz>
|
Date: |
Thu, 1 Feb 2001 11:16:32 +1300 |
To: |
<hwg-languages(at)hwg.org> |
References: |
swbell |
|
todo: View
Thread,
Original
|
|
Hello David,
One cause might be in the script i've cut and pasted below:-
Where you put:-
h_miller_thumb.src = "images/h_miller_thumb.jpg"
but I think the actual filename should be "heart_miller_thumb.jpg"
Peter Newton
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
if (document.images) {
h_miller_thumb = new Image
h_miller_teaser = new Image
TRY THIS >heart_miller_thumb.jpg
h_miller_thumb.src = "images/h_miller_thumb.jpg"
h_miller_teaser.src = "images/h_miller_teaser.gif"
}
else {
h_miller_thumb = ""
h_miller_teaser = ""
document.h_miller = ""
}
// End hiding script from old browsers -->
</SCRIPT>
----- Original Message -----
From: "David Andrew" <davida51(at)swbell.net>
To: <hwg-languages(at)hwg.org>
Sent: Tuesday, January 30, 2001 10:47 PM
Subject: JS mouseover but no mouse out
> Hi all -
>
> I am using the following script to create a image swap. I get a image
> swap on mouse over, but the original image does not return on the mouse
> out.
>
> The script I am using is:
>
> <.SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
> <!-- Hide script from old browsers
>
> if (document.images) {
> h_miller_thumb = new Image
> h_miller_teaser = new Image
>
> h_miller_thumb.src = "images/h_miller_thumb.jpg"
> h_miller_teaser.src = "images/h_miller_teaser.gif"
> }
> else {
> h_miller_thumb = ""
> h_miller_teaser = ""
> document.h_miller = ""
> }
>
> // End hiding script from old browsers -->
> <./SCRIPT>
>
> <.A HREF="testimonies/heart_miller.htm"
> onMouseover="document.h_miller.src=h_miller_teaser.src"
> onMouseout="document.h_miller.src=h_miller_thumb.src"><IMG
> SRC="images/heart_miller_thumb.jpg" WIDTH=126 HEIGHT=140 BORDER=0
> NAME="h_miller"><./A>
>
> You can see the script in the wild at
> http://gggraphics.net/ust_hr/testimonies-trial.htm
>
> Any help will be apeciated.
>
> Thanks in advance.
> --
> David Andrew
> davida51(at)swbell.net
>
>
>
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA