469,343 Members | 5,380 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,343 developers. It's quick & easy.

VB.NET/Netscape/Javacript Mouseover Problem

Hi -
The following works *fine* in IE, but not in Netscape (7.1):

btnOverview.Attributes.Add("onMouseOver", "document.all.btnOverview.src
='Buttons/netOverviewOn.jpg';")
btnOverview.Attributes.Add("onMouseOut", "document.all.btnOverview.src
='Buttons/netOverviewOff.jpg';")

The above is done in the Page_Load event of the aspx.vb file. (Line
breaks are the result of the Google text editor.)

I've tried various ways of specifying the image and been all over the
web (including Netscape's Javascript online reference) and nothing
makes the above work in Netscape....

**My thanks**

Jules

Jul 23 '05 #1
3 1355


JJ****@hotmail.com wrote:

The following works *fine* in IE, but not in Netscape (7.1):

btnOverview.Attributes.Add("onMouseOver", "document.all.btnOverview.src
='Buttons/netOverviewOn.jpg';")
btnOverview.Attributes.Add("onMouseOut", "document.all.btnOverview.src
='Buttons/netOverviewOff.jpg';")

The above is done in the Page_Load event of the aspx.vb file. (Line
breaks are the result of the Google text editor.)


All you need is probably
btnOverview.Attributes.Add("onmouseover",
"this.src = 'Buttons/netOverviewOn.jpg';")
btnOverview.Attributes.Add("onmouseout",
"this.src = 'Buttons/netOverviewOff.jpg';")
but that is a guess, we would need to seee the client-side HTML and
script that arrives at the browser and not the server-side VB.NET code.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
Martin -

THAT WORKS!!

(using "this.src")

Also, I upgraded to Netscape 7.2 from 7.1 but I have no idea whether or
not that contributed...

I have a client-side mouseover now in in IE/NS from attributes added to
the imagebutton in the aspx.vb file.

**THANK** YOU!!!!

Alison

Jul 23 '05 #3


JJ****@hotmail.com wrote:

THAT WORKS!!

(using "this.src")

Also, I upgraded to Netscape 7.2 from 7.1 but I have no idea whether or
not that contributed...


I am sure it didn't contribute.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jean-Gael GRICOURT | last post: by
5 posts views Thread by Simon Wigzell | last post: by
4 posts views Thread by Jesse Wade | last post: by
17 posts views Thread by Paul | last post: by
3 posts views Thread by Annette Acquaire | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.