「SCRIPT5007:Object expected」というエラーがInternet Explorer 9で発生しました。 2つの同じエラーがあります。一つはbegginingで$(文書)であり、他は次のようにマークされている「< - ここでエラー」JSエラー「IE9でのみオブジェクトが必要です」
<script>
$(document).ready(function(){
var imagePath = "/sites/all/modules/custom/sixdegrees_right_menu/images/";
$(".menu-holder").mouseover(function()
{
//$(this).children(".menu-title").children(".menu-bg").hide();
//$(this).children(".menu-title").children(".menu-name").css({"float":"none"});
//$(this).children(".menu-title").children(".menu-text").css({"float":"none"});
var imgSrc = $(this).children(".menu-icon").find("img").attr("src");
imgSrc = imgSrc.replace(imagePath, "");
imgSrc = imagePath + "h-" + imgSrc;
$(this).children(".menu-icon").find("img").attr("src", imgSrc);
<- error here
//$(this).children(".menu-title").children(".menu-name").children("img").animate({"left": "0px"}, "slow");
//$(this).children(".menu-title").children(".menu-text").animate({"left": "0px"}, "slow");
});
});
</script>
も、私は主張することができない限り、私はそれを削除するための十分な権限を持っていないいくつかのコメント行をそこに持っています何か。
関連するHTMLを投稿できますか? – jbabey
あなたのIDEであなたが持っている「find and replace」のインスタンスを使用して、$を検索してjQueryで置き換えます。私はちょうどあなたがおそらくいくつかのMVCフレームワークまたは何かをインストールしていることを推測するつもりです。タイプのために – Ohgodwhy