I'm pretty familiar with languages but javascript/jquery is just one thing that fucks me in the ass every time, I have no idea what I'm doing and I never seem to pick it up as I bumblefuck my way through it for some reason, probably because I spend 90% of the time figuring out why the effect doesnt show up period.
All I'm trying to do is take a wordpress menu, and add a fade-in fade-out effect to the background image like this site.. mouse over the menu
Amplify - 5 in 1 Portfolio Theme Preview - ThemeForest
As you know wordpress lists all the pages simply by calling
However, when it outputs it it is as follows
Here is the CSS. Basically it shows the tabs with no background, on mouseover there is a blue background image. The current tab always has the image.
I swear though I've tried all sorts of examples and I've googled this fucking shit the last 2 hours, I'm so hating JS right now
Would someone mind helping me write the 2 seconds of script that will allow me to do this? i can paypal you 5 bux or something
Thanks
All I'm trying to do is take a wordpress menu, and add a fade-in fade-out effect to the background image like this site.. mouse over the menu
Amplify - 5 in 1 Portfolio Theme Preview - ThemeForest
As you know wordpress lists all the pages simply by calling
Code:
<ul id="nav">
<?php wp_list_pages('title_li='); ?>
</ul>
However, when it outputs it it is as follows
Code:
<ul id="nav">
<li class="page_item page-item-4 current_page_item"><a href="http://xxx.com/travis" title="Home">Home</a></li>
<li class="page_item page-item-2"><a href="http://xxx.com/travis/about/" title="About Me">About Me</a></li>
<li class="page_item page-item-6"><a href="http://xxx.com/travis/contact/" title="Contact Me">Contact Me</a></li>
</ul>
Here is the CSS. Basically it shows the tabs with no background, on mouseover there is a blue background image. The current tab always has the image.
Code:
/* navigation */
#nav {
width: 550px;
float: left;
font-size: 13px;
margin: 91px 0 0 60px;
}
#nav li {
float: left;
margin: 0 4px 0 0;
}
#nav li a {
display: block;
padding: 10px 20px;
}
#nav li a:hover, #nav li.current_page_item a {
color: #fff;
text-decoration: none;
background: url(../img/bg-nav-hover.png) repeat-x 0 0;
}
I swear though I've tried all sorts of examples and I've googled this fucking shit the last 2 hours, I'm so hating JS right now
Would someone mind helping me write the 2 seconds of script that will allow me to do this? i can paypal you 5 bux or something
Thanks
