473,322 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 1446


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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Eqbal Z | last post by:
Hi, I have the following code, and onmouseover/onmouseout etc. does not work in netscape 4.7. <div id="divUpControl"><a href="javascript:void(0);" onMouseOver="PerformScroll(-7);"...
1
by: Jean-Gael GRICOURT | last post by:
I am trying to capture mouse events when entering and leaving a DIV layer. This test code works fine with IE 6.0 and Opera 7.21 but fails with Mozilla/Netscape. The strange thing is that the mouse...
5
by: Simon Wigzell | last post by:
I pulled some 3rd party code off the internet that makes a span visible on mouseover of a link. It works fine in IE, doesn't work for Netscape, it goes into "Unknown", see it here :...
4
by: Jesse Wade | last post by:
Hello people. Does the world need another DHTML popup calendar? Probably not, but I'm writing one anyway. It's unique in that it allows drag selection of a range of dates. Works great on IE6 but...
5
by: danny.myint | last post by:
I was under the assumption that javascript loads all the <head></head> elements before processing the <body> tag in Mozilla/Netscape/Firefox. It doesn't seem like it, with my problem. I have...
6
by: christian9997 | last post by:
Hi I would be very helpful if someone could help me with this code. It works fine in IE but when I display it in Netscape or Firefox and I move the mouse from one menu to the other the gap...
17
by: Paul | last post by:
HI! I am trying to dynamically add content into Div tags with the use of JavaScript. it loads the page but adds a few characters. the script is below. <script language="JavaScript">...
3
by: Annette Acquaire | last post by:
I have and image map with a dozen hotspot links on it that I'm trying to get to open a new image over existing one on mouseover of each COORD. The only thing I was able to do was swap image on...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.