Afternoon ladies and gents, iv been working on my wordpress site recently and iv ran into an issue with my navbar, the rollovers have stopped working somewhere along the way from uploading it to now. the coding isnt actually mine, its from Psd2cssonline, iv been through the original code and compared it to what iv got now and I cant see anythin different with the rollovers
//
// psd2css.js
//
// This is where all the javascript required by your design is written.
//
// Originally generated at http://psd2cssonline.com
// December 3, 2012, 7:44 pm with psd2css Online version 1.95
$(document).ready(function(){
<script type="text/javascript" src="/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
// This is required for the PNG fix to work.
if (window.DD_belatedPNG)
DD_belatedPNG.fix('.pngimg');
// This is some javascript to stop IE from displaying the img alt attributes
// when you mouse over imagess. If you would like IE to display the alt attributes,
// just comment out the following 4 lines. Don't worry, if you leave this in
// place, your ALT attributes are still readable by the search engines.
var tmpalt;
$("img").hover(
function(){ tmpalt = $(this).attr( "alt" ); $(this).attr( "alt", "" ); },
function(){ $(this).attr( "alt", tmpalt ); });
// This is code to handle all of the _linkover events. It works by
// creating a special Wrap class, adding it to the link and linkover
// divs of each link and linkover pair, and assigning a hover event to
// that.
$("#Layer-8").addClass("Wrap-7-8").hide();
$("#Layer-7").addClass("Wrap-7-8");
$(".Wrap-7-8").hover(
function(){ $("#Layer-8").show(); $("#Layer-7").hide(); },
function(){ $("#Layer-7").show(); $("#Layer-8").hide(); });
$("#Layer-10").addClass("Wrap-9-10").hide();
$("#Layer-9").addClass("Wrap-9-10");
$(".Wrap-9-10").hover(
function(){ $("#Layer-10").show(); $("#Layer-9").hide(); },
function(){ $("#Layer-9").show(); $("#Layer-10").hide(); });
$("#Layer-12").addClass("Wrap-11-12").hide();
$("#Layer-11").addClass("Wrap-11-12");
$(".Wrap-11-12").hover(
function(){ $("#Layer-12").show(); $("#Layer-11").hide(); },
function(){ $("#Layer-11").show(); $("#Layer-12").hide(); });
$("#Layer-14").addClass("Wrap-13-14").hide();
$("#Layer-13").addClass("Wrap-13-14");
$(".Wrap-13-14").hover(
function(){ $("#Layer-14").show(); $("#Layer-13").hide(); },
function(){ $("#Layer-13").show(); $("#Layer-14").hide(); });
$("#Layer-16").addClass("Wrap-15-16").hide();
$("#Layer-15").addClass("Wrap-15-16");
$(".Wrap-15-16").hover(
function(){ $("#Layer-16").show(); $("#Layer-15").hide(); },
function(){ $("#Layer-15").show(); $("#Layer-16").hide(); });
iv spent a few hours messing about already so any help you can give me would be really appreciated!
Bookmarks