Simple enough. Get rid of the javascript function stuff I gave you. Ignore the id="link1" part, and simply put onClick="this.className='menulinked'"
Sooo....delete:
And now the links =Code:var selected=0 function color(num){ var name="link" var el="" if (document.getElementById(name+selected)){ name="link"+selected el=document.getElementById(name) if (el.className=="menulinked") el.className="menulink" } name="link"+num el=document.getElementById(name) el.className="menulinked" selected=num }
Code:<a href="./myPage.html" target="myFrame" onClick="this.className='menulinked'">Click ME!</a>



Reply With Quote

Bookmarks