js错误!!IE下提示 “缺少对象,行:36 字符:5 代码:0 ”.各位大侠帮忙看看,谢谢啦!!!! 10
functionpucker_show(name,no,hiddenclassname,showclassname){for(vari=1;i<11;i++){if(do...
function pucker_show(name, no, hiddenclassname, showclassname) {
for (var i = 1; i <11; i++)
{
if (document.getElementById(name + i) != null) {
document.getElementById(name + i).className = hiddenclassname;
}
}
document.getElementById(name + no).className = showclassname;
}
function openShutManager(oSourceObj, oTargetObj, shutable, oOpenTip, oShutTip) {
var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj;
var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj;
var openTip = oOpenTip || "";
var shutTip = oShutTip || "";
if (targetObj.style.display != "none") {
if (shutable) return;
targetObj.style.display = "none";
if (openTip && shutTip) {
sourceObj.innerHTML = shutTip;
}
} else {
targetObj.style.display = "block";
if (openTip && shutTip) {
sourceObj.innerHTML = openTip;
}
}
}
$(document).ready(function () {
$('.sidelist').mousemove(function () {
$(this).find('.i-list').show();
$(this).find('h3').addClass('hover');
});
$('.sidelist').mouseleave(function () {
$(this).find('.i-list').hide();
$(this).find('h3').removeClass('hover');
});
}); 展开
for (var i = 1; i <11; i++)
{
if (document.getElementById(name + i) != null) {
document.getElementById(name + i).className = hiddenclassname;
}
}
document.getElementById(name + no).className = showclassname;
}
function openShutManager(oSourceObj, oTargetObj, shutable, oOpenTip, oShutTip) {
var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj;
var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj;
var openTip = oOpenTip || "";
var shutTip = oShutTip || "";
if (targetObj.style.display != "none") {
if (shutable) return;
targetObj.style.display = "none";
if (openTip && shutTip) {
sourceObj.innerHTML = shutTip;
}
} else {
targetObj.style.display = "block";
if (openTip && shutTip) {
sourceObj.innerHTML = openTip;
}
}
}
$(document).ready(function () {
$('.sidelist').mousemove(function () {
$(this).find('.i-list').show();
$(this).find('h3').addClass('hover');
});
$('.sidelist').mouseleave(function () {
$(this).find('.i-list').hide();
$(this).find('h3').removeClass('hover');
});
}); 展开
展开全部
这种情况很多,包括发布后的很多大网站都有
1.检查是否申明对象
2.如果用了js框架 查下出错的前后对象是否浏览器支持(js框架中有可能存在浏览器问题)
1.检查是否申明对象
2.如果用了js框架 查下出错的前后对象是否浏览器支持(js框架中有可能存在浏览器问题)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询