优快云 中的 OBJECTID 处理
<script type="text/javascript" language="javascript">
<!--
function getObject(objectId)
...{
if(document.getElementById)
...{
return document.getElementById(objectId)
}
else if(document.all&&document.all(objectId))
...{
return document.all(objectId)
}
else
...{
return false
}
}
function hideObject(objectId)
...{
var obj=getObject(objectId);
if(obj&&obj.style)
...{
obj.style.display="none";
return true
}
return false
}
function showObject(objectId)
...{
var obj=getObject(objectId);
if(obj&&obj.style)
...{
obj.style.display="";
return true
}
return false
}

function hideComment()...{
hideObject("commentForm");
hideObject("commentform");
return;
}

function showComment()...{
return;
}
//-->
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
本文介绍了一段用于优快云博客中处理OBJECTID的JavaScript代码,该代码实现了通过OBJECTID获取、显示及隐藏DOM元素的功能。适用于需要对特定元素进行操作的场景。
1万+

被折叠的 条评论
为什么被折叠?



