/    Sign up×
Community /Pin to ProfileBookmark

Fire fox will work but not IE

the point was to get a site for a company a template of a highlighted menu bar but to no reguard it. it works in netscape and firefox but doesnt show the current page for IE any ideas????????????????? ? 😡

<style type=”text/css”>

table
{
border-style: groove;
}
td
{
border-style: groove;
}

a:link
{
background-color: #000000;
color: #000000;
}

a:visited
{

color: #FF0000;
}

a:hover
{
text-decoration: underline;
background-color: #000000;
color: #FF0000;
}

a.selected
{
text-decoration: underline overline;
background-color: #000000;
color: #FF0000
}

</style>
<SCRIPT type=”JavaScript”>
<!–
function highlightLink()
{
//Get filename from the URL
thisPage = document.URL.substring(document.URL.lastIndexOf(“/”)+1 ,document.URL.length);

//Loop through all the links
for (i=0; i < document.links.length; i++ )
{
//Get only the filename from the href of navigation link
pageLink = document.links[i].href.substring(document.links[i].href.lastIndexOf(“/”)+1 ,document.links[i].href.length);

//if the current filename & the link-ed file name are the same, change the background color of that link
if (thisPage == pageLink)
{
//selected is the name of a class that I have defined, that sets background color to grey
document.links[i].className = “selected”;
}

}

}
//–>

</SCRIPT>
<body onload=”highlightLink()”>
<div id=”navigationDiv”>
<table>
<tr>
<td>
<A HREF=”home.html” >home</A>
</td>
<td>
<A HREF=”contact.html” >contact</A>
</td>
<td>
<A HREF=”links.html” >links</A>
</td>
</tr>
</table>
</div>

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @AngeredMailMan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...