当前位置:编程学习 > asp >>

在网页中实现OICQ里的头像选择的下拉框 (附例子)

答案:<html>
<head>
<title>模拟OICQ下拉头像</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>//writed by 钟钟 2001/2/27
var bV=parseInt(navigator.appVersion);
var IE4=((document.all)&&(bV>=4))?true:false;
var NS4=(document.layers)?true:false;

var z=0;
function LayerV(LayerName,V){
    E=eval('document.'+LayerName);
    if(IE4) E=eval('document.all.'+LayerName+'.style');
    E.visibility=(V?'visible':'hidden');
}

</script>
</head>

<body bgcolor="#FFFFFF">
<table width="90" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FF66FF">
        <tr>
          <td align="right"><font style="font-size:12px">模拟OICQ</font><a href=>        </tr>
      </table>
      </td>
  </tr>
  <tr>
    <td><div id="Zhong" style="position:relative ;visibility:hidden ;width:90px ;height:150px ;overflow:scroll;"><img src=http://old.zzzyk.com/article/Article/"img.gif" width=70 height=70><br>
<img src=http://old.zzzyk.com/article/Article/"img.gif" width=70 height=70><br>
<img src=http://old.zzzyk.com/article/Article/"img.gif" width=70 height=70><br></div></td>
  </tr>
</table>
<br><br><br><br><br><br><br><br><br>现在能支持IE4和NS4.0<br>
有时间我可以写多点,让它支持NS6.0和opera4.0
</body>
</html>

上一个:给一个类增加属性和方法?看看这个够不够?
下一个:请看用javascript设置和读取cookie的简单例子.....

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,