can please explain going wrong here. when visits /page.php#mobile hyperlink on homepage i'd 1 of relevant actions take place
$(function() { if ( document.location.href.indexof('#mobile') > -1 ) { $('#div1').animate({ backgroundcolor: "#f00" }, "slow"); $('#div1').animate({ backgroundcolor: "#fff" }, "slow"); else if ( document.location.href.indexof('#pc') > -1 ) { $('#div2').animate({ backgroundcolor: "#f00" }, "slow"); $('#div2').animate({ backgroundcolor: "#fff" }, "slow"); } }); right nothing seems working?
Comments
Post a Comment