很多网站都有,今天改造了一下,减少了没用的代码,方便以后自己用。
演示地址:http://www.kevinliyong.com...
下载地址:http://www.kevinliyong.com...
类似sohu焦点网的小窗口
由于客户需要,所以做了这个小东西,很简单,基本没有用到js。
演示地址:http://www.kevinliyong.com...
下载地址:http://www.kevinliyong.com...
解压密码: www.kevinliyong.com
<HTML>
<HEAD>
<TITLE>网页小挂件</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<!--<SCRIPT language=Javascript src="js/msn.js"></SCRIPT>可以写成js-->
<script language="javascript">
document.writeln("<div id=\"msn\" style=\"Z-INDEX:99999; LEFT:0px; WIDTH:141px; POSITION:absolute; TOP:0px; HEIGHT:352px;\">");
document.writeln("<img src=\"http://www.kevinliyong.com...;" hspace=\"5\" width=\"141\" height=\"352\" align=\"absMiddle\" vspace=\"1\"\/><\/div>");
msn.style.top=document.body.clientHeight-141;
msn.style.left=document.body.clientWidth-225;
moveR();
function moveR() {
msn.style.top=document.body.scrollTop+document.body.clientHeight-352;
msn.style.left=document.body.scrollLeft+document.body.clientWidth-151;
setTimeout("moveR();",80)
}
function closeDiv(){
msn.style.visibility='hidden';
}
</script>
</HEAD>
<BODY style="MARGIN: 0px; TEXT-ALIGN: center">
<table width="778" height="153" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<td> </td>
</tr>
</table>
<table width="778" height="1030" border="0" cellpadding="0" cellspacing="0" bgcolor="F4F4F4">
<tr>
<td height="1030"> </td>
</tr>
</table>
</BODY></HTML>





