ruldolphin
07-28-2004, 10:50 AM
I'm trying to use an included file for the pages on my site. This particular one displays items on the right site of each page. I'm trying to make the link change a color when on the current page. I've got that part down, but I'm trying to figure out why it won't work with my bullet. Here's the code, it may help explain:
var Conference = "<div id='navcontainer'><ul id='navlist'><li><a href='conference.htm'>Compliance Conference 2004</a></li></ul></div>";
function sidepanel() {
document.write('<center>');
document.write('<br><BR><img src="ALICOBuilding.jpg" width="140" height="190" align=center alt="ALICO Home Office"> ');
document.write('<br><br><br><br>');
document.write('<a href="http://www.adobe.com/products/acrobat/readstep2.html" target="_new"> ');
document.write('<img src="get_adobe_reader.gif" border=0></a><br> ' );
document.write(Conference);
document.write('</center>');
}
if (filenam.indexOf("conference.htm") >= 0)
{
Conference = "<div id='navcontainer'><ul id='navlist'><li><a href='conference.htm'class='current' >Compliance Conference 2004</a></li></ul></div>";
sidepanel();
document.write(Conference);
}
'Navcontainer' and 'navlist' are used to replace a blue arrow with a pink arrow when the link is hovered over. But if I include this arrow the link stay the same color no matter what. If i remove the arrow, the link changes the way I want it to. Any ideas?
var Conference = "<div id='navcontainer'><ul id='navlist'><li><a href='conference.htm'>Compliance Conference 2004</a></li></ul></div>";
function sidepanel() {
document.write('<center>');
document.write('<br><BR><img src="ALICOBuilding.jpg" width="140" height="190" align=center alt="ALICO Home Office"> ');
document.write('<br><br><br><br>');
document.write('<a href="http://www.adobe.com/products/acrobat/readstep2.html" target="_new"> ');
document.write('<img src="get_adobe_reader.gif" border=0></a><br> ' );
document.write(Conference);
document.write('</center>');
}
if (filenam.indexOf("conference.htm") >= 0)
{
Conference = "<div id='navcontainer'><ul id='navlist'><li><a href='conference.htm'class='current' >Compliance Conference 2004</a></li></ul></div>";
sidepanel();
document.write(Conference);
}
'Navcontainer' and 'navlist' are used to replace a blue arrow with a pink arrow when the link is hovered over. But if I include this arrow the link stay the same color no matter what. If i remove the arrow, the link changes the way I want it to. Any ideas?