Jump to content

! jquery code is not working except firefox


sweetysweety
 Share

Recommended Posts

hi guys,i have a jquery code.it is working only firefox.other browsers are not see the code.i search in web but nothing appears.can anyone help me to solve this problem??here is my code:

$(function() {[/size][/font][/color][color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif][size=3]    var $el, leftPos, newWidth;	    $mainNav2 = $("#example-two");    $mainNav2.append("<li id='magic-line-two'></li>");    var $magicLineTwo = $("#magic-line-two");var top=parseInt($magicLineTwo.css("top"))var bottom=parseInt($magicLineTwo.css("bottom"))var totalHeight=top+bottom;    $magicLineTwo	    .width($("#current_page_item_two").width())	    .height(totalHeight)	    .css("left", $("#current_page_item_two a").position().left)	    .data("origLeft", $magicLineTwo.position().left)	    .data("origWidth", $magicLineTwo.width())	    .data("origColor", $(".menuItem a").attr("rel"));    $("#example-two li ").find("a").mousedown(function() {[/size][/font][/color][color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif][size=3]	    $el = $(this);	    leftPos = $el.position().left;	    newWidth = $el.parent().width();	    $magicLineTwo	  .css("visibility",'visible')	  .stop().animate({				    left: leftPos,				    width: newWidth,		   opacity:1	    },{duration:1000,easing:"swing"});    }, function() {	    $magicLineTwo.stop().animate({		    left: $magicLineTwo.data("origLeft"),		    width: $magicLineTwo.data("origWidth")	    },{duration:1000,easing:"swing"});       });   });[/size][/font][/color][color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif][size=3]

you can see the test of my site at:http://www.terranartworks.com/testsite/tsv1/index.html

Link to comment
Share on other sites

the first thing I see when visiting your page is numerous 404 errors for * jquery-1.6.1.js* jquery.effects.core.js* js/jquery-1.4.2.min.js so, first thing is making sure all your paths are correct. secondly, i would consider only use one version of jquery at a time.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...