/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
setNav = function(){ var _html = ""; _html += "<ul id='nav'>"; _html += " <li class='Home'><a href='/' title=''>Home</a></li>"; _html += " <li class='About'><a href='/' title=''>About</a></li>"; _html += " <li class='News'><a href='/' title=''>News</a></li>"; _html += " <li class='Contact'><a href='/' title=''>Contact</a></li>"; _html += "</ul>"; document.write(_html); }