This is a great site. I'm having a some trouble with this specific script.
I'm going to paste the whole html file so you can just preview it.
<html>
<head>
<title>Test</title>
<script language="JavaScript">
<!--
var selectedLink;
function selectLink(lnk) {
if (selectedLink) selectedLink.style.fontWeight='normal';
lnk.style.fontWeight='bold';
selectedLink=lnk;
}
//-->
</script>
<style type="text/css">
a:link {
color: #003366
}/* unvisited link */
a:visited {
color: #000000
}/* visited link */
.stepbrother2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:13px;
text-align: left;
color: #000000;
font-weight: normal;
}
</style>
</head>
<body>
<span class="stepbrother2"><a href="#" onClick="selectLink(this)">Why Perhsing</a> |
<a href="#" onclick="selectLink(this)">Prodcuts and Services</a></span>
</body>
</html>
Problem: What I essentially want this script to do is when i click on a link, the link will be bolded and "not" underlined, while the other link will "not" be bolded but it will be underlined.
Currently, I have it set to both links being underlined in both instances.
Please help. thanks
I'm going to paste the whole html file so you can just preview it.
<html>
<head>
<title>Test</title>
<script language="JavaScript">
<!--
var selectedLink;
function selectLink(lnk) {
if (selectedLink) selectedLink.style.fontWeight='normal';
lnk.style.fontWeight='bold';
selectedLink=lnk;
}
//-->
</script>
<style type="text/css">
a:link {
color: #003366
}/* unvisited link */
a:visited {
color: #000000
}/* visited link */
.stepbrother2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:13px;
text-align: left;
color: #000000;
font-weight: normal;
}
</style>
</head>
<body>
<span class="stepbrother2"><a href="#" onClick="selectLink(this)">Why Perhsing</a> |
<a href="#" onclick="selectLink(this)">Prodcuts and Services</a></span>
</body>
</html>
Problem: What I essentially want this script to do is when i click on a link, the link will be bolded and "not" underlined, while the other link will "not" be bolded but it will be underlined.
Currently, I have it set to both links being underlined in both instances.
Please help. thanks