You missed the double quotes on the first image.
b1.src = "">
>From: "Shahzad.Butt" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: _javascript_ Help Required
>Date: Tue, 30 Dec 2003 11:40:34 -0000
>
>Hi
>
>I am using following script to change the image for a button on
>mouseOver (red button) and mouseOut (white button). What I can not
>achieve or I dont know how to do is when link is active then display
>image which I am using on mouseOver
>
><script language="_javascript_">
>
> if (browserVer == 1) {
> b1 = new Image(107,36);
> b1.src = ""> > b2 = new Image(107,36);
> b2.src = ""> > }
>
>
>
> //image swapping function:
> function hiLite(imgDocID, imgObjName, comment) {
> if (browserVer == 1) {
> document.images[imgDocID].src = "" + ".src");
> window.status = comment; return true;
> }}
> //end hiding -->
>
></script>
>
>Thats where I am using the function in CF
>
><A Login')"
> Login')"
>href="" target="Right" class="sml"> <img
>border="0" name="b" src=""> >
>Can anyone explain me when a link is active how can I keep the Redbutton
>not the white one??
>
>
>
>Shahzad.Butt
>Ph: +44 (0) 1992 701 722
>Fax: +44 (0) 1992 701 604
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

