473,376 Members | 987 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,376 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 1449


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...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.