Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

active link in ns 4.7 +background in ns

Status
Not open for further replies.

avivit

Technical User
Jul 5, 2000
456
IL
1.I've read every possible thread I found here and in other forums, and found that all besides the active link
style is working in NS4.7. It's red no matter what.
Does anyone know how to solve it?
I tried to change the order of the active, link, and visited styles.
2. Changing A ceratin link background-color ON EVENT in NS4.7.
Is it possible?
Thanks in advance

The code:

<style type=&quot;text/css&quot;>
a.defaultMainLinkColors:active
{text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 14px;
color:#008080}

a.defaultMainLinkColors:link
{text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 14px;
color:#008080}
a.defaultMainLinkColors:visited
{text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 14px;
color:#008080}
</style>

<script language=&quot;javascript&quot;>
function chgLinkbgColor(specificLink)
{//What shell I write for netscape?
}
</script>

...
<body>
<a href=&quot; class=&quot;defaultMainLinkColors&quot; id=&quot;link1&quot; onclick=&quot;chgLinkbgColor(this);&quot;>
<img src=&quot;pic.gif&quot; border=&quot;0&quot;>
first link
</a>

<a href=&quot; class=&quot;defaultMainLinkColors&quot; id=&quot;link2&quot; onclick=&quot;chgLinkbgColor(this);&quot;>
<img src=&quot;pic.gif&quot; border=&quot;0&quot;>
second link
</a>
</body>
 
I found something in that should be a start for what I need regarding the background:
It is mentioned theer that the following code should work for NS4.
It does not. Did I do something wrong? The evnet is not in place?
Please help.
Thanks...
<html>
<head>
<title>Untitled</title>
<script language=&quot;Javascript&quot;>
function chg(idName)
{eval(idName).bgColor='yellow';
}
</script>
</head>
<body>
<div id=&quot;myId&quot; onclick=&quot;chg('title1')&quot;>jjhjjj</div>
</body></html>

I also tried: onclick=&quot;javascript:chg('title1')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top