Forum Moderators: not2easy
-----------------------------------------
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
today = new Date();
day = today.getDay();
arday = new Array("<a href=..schedule/sunday.htm>", "<a href=..schedule/monday.htm>", "<a href=..schedule/tuesday.htm>", "<a href=..schedule/wednesday.htm>", "<a href=..schedule/thursday.htm>", "<a href=..schedule/friday.htm>", "<a href=..schedule/saturday.htm>");
document.write(arday[day] + "today's shows" + "</a>");
// End -->
</script>
¦ <a href="../schedule/index.htm" class="nav">weekly schedule</a>
¦ <a href="../whatson/index.htm" class="nav">what's on guide</a>
¦ <a href="../freshflash/index.htm" class="nav">fresh flash</a>
¦ <a href="../contactus.htm" class="nav">contact us</a>
-----------------------------------------
The arday javascript works fine insofar as that it correctly links to a different page for each day of the week ("../schedule/monday.htm" on Monday, for example). BUT, I've used the class "nav" to define the formatting properties of all links in this bit of code.
The class applies itself correctly to all links except the arday javascript defined "today's shows", which retains the default link formatting used elsewhere in my site.
How can I apply the class "nav" to the javascript-defined link?
If you're interested here's where I found the information:
[westciv.com...]