![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#2
|
||||
|
||||
|
Quote:
Code:
<div id="navbar"> <ul id="nav"> [*]Home <?php wp_list_pages('title_li=&depth=4&sort_column=menu_order'); ?> [*]Categories <ul><?php wp_list_categories('sorderby=name&depth=4&title_li='); ?>[/list] [/list] </div> Code:
<script type="text/javascript"><![CDATA[//><!--
sfHover = function() {
if (!document.getElementsByTagName) return false;
var sfEls = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
HTH,
__________________
Charles "Rubeus Hagrid" Clarkson StudioPress on Facebook I'm not really a smart person. I just play one on the Internet. Please use the HTML
or PHP tags for pasting code.Please make your links click-able: this_is_annoying.com http://this_is_not_annoying.com. |
| Thread Tools | |
| Display Modes | |
|
|
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us