js隐藏显示图片fucntion

    1.隐藏时不会折叠

<script language="javascript"

>function displayforall(){
document.getElementById("pic").style.visibility="visible";

}
 function hideforall(){
document.getElementById("pic").style.visibility="hidden";}
   function displayforie(){
  document.all.pic.style.visibility="visible";
  }
    function hideforie(){

document.all.pic.style.visibility="hidden";}</script>

2.隐藏时折叠

<SCRIPT LANGUAGE="JavaScript">

function displayforall()
{
document.getElementById("pic").style.display="block";

}
       function hideforall()
{
document.getElementById("pic").style.display="none";
}
function displayforie()
{
  document.all.pic.style.display="block";
}
function hideforie()
{
  document.all.pic.style.display="none";
}

</SCRIPT>

触发function: onmouseover, onmouseout, onclick

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页