473,387 Members | 1,890 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,387 software developers and data experts.

Help mouse over a link to change a diffrent cell's background in Netscape

Ok here is working code in IE,

<td ID="TD1" width="478" height="553"
background="images/GUYONDOC.JPG" valign="top">. . . </td>
<a href="texana.htm"
onmouseout="document.images['texana'].src='images/Dot1.bmp';
TD1.background='images/GUYONDOC.JPG';"
onmouseover="document.images['texana'].src='images/Dot2.bmp';
TD1.background='images/jw_cow.jpg';
test.background='images/jw_cow.jpg';">
<img border="0" src="images/Dot1.bmp" width="14" height="14"
NAME="texana">TEXANA WESTERN HISTORY</a>

The link image changes fine in both ie and netscape. But the
Background of TD1 only changes in IE. Please help get this working in
Netscape

Thank you
Jul 20 '05 #1
1 4218
jc********@hotmail.com (Justin) writes:
Ok here is working code in IE,
.... which really don't say very much about the correctness of the code
....
<td ID="TD1" width="478" height="553"
background="images/GUYONDOC.JPG" valign="top">. . . </td> TD1.background='images/GUYONDOC.JPG';"
Referring to a named element as a property of the global object only
"works" in IE.
The link image changes fine in both ie and netscape. But the
Background of TD1 only changes in IE. Please help get this working
in Netscape


I assume you mean Netscape 6+ (i.e., a browser based on Mozilla),
since Netscape 4 can't access the td element at all.

Change the TD1.background... line to
---
document.getElementById("TD1").style.backgroundIma ge =
"url('images/GUYONDOC.JPG')";
---

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Chris Beall | last post by:
I'm displaying an image that is also a link against a black background. In Netscape 7.1, the current background color is displayed as a horizontal bar below the image. This allows :hover effects...
1
by: Anna K. | last post by:
Hi Experts, I'm new to JavaScript and web-based apps development, so I'll tell you right off that I don't really know my way around it as of yet. I'm trying to create a code library set with...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
3
by: Yeah | last post by:
Through CSS, is there a way to change the color of a table cell on a hover? By the way, the cell also contains a link - the text link and table cell mouseover should both be clickable to the link's...
4
by: jereme.goblue | last post by:
The web page at http://www.rossowinspections.com/ has an issue with the left menu. The left menu has 7 links. One of the links doesn't work. Using Firefox 1.5 the Fees link isn't a clickable...
2
by: Dave Ekhaus | last post by:
hi i'm new to javascript. i'm hoping to get some help and find out if what i want to do is possible and - assuming it is, get some tips on how to accomplish the task. ok - assume i have a...
33
by: STILL LEARNING | last post by:
I'm not sure if this can even be done, but what prompts the question is my desire to be able to create an "Uber Link" script/code of some sort, such that even if the html page contains nothing but...
2
by: markszlazak | last post by:
In the following script, a control displays (black box) in each table cell once you mouse over the cell. Mouse down on the control to change the mode of the table. Drag the mouse over cells in the...
1
oranoos3000
by: oranoos3000 | last post by:
hi I want to have cell from table that a picture is its background and text inside that is link I want to while pointer of mouse is go on this link ,background dont show but text of cell is...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.