网页飘窗
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script type="text/javascript" src="http://www.114yg.cn/static/js/jquery-1.7.2.min.js?t=20130922"></script>
</head>
<body>
<div id="float_icon" style="position: absolute; z-index: 99999; top: 164px; left: 484px; visibility: visible;"> <a href="http://qhcom.gov.cn/articleinfo/detail_16_92_2329.aspx" target="_blank"><img src="http://img.114yg.cn/group1/M00/08/0B/wKhSIVPglD-ANXdyAABJe2YLVHY611.jpg"></a> </div> <script type="text/javascript">var dirX =1,dirY =1;var posX =0,posY =0;document.getElementById("float_icon").style.top =0;document.getElementById("float_icon").style.left =0;float_icon.style.visibility ="visible";window.setInterval("moveIcon()",50);function moveIcon() {posX +=(2 *dirX);posY +=(2 *dirY);$("#float_icon").css("top",posY);$("#float_icon").css("left",posX);if(posX < 1 ||posX + document.getElementById("float_icon").offsetWidth >$(window).width())
{dirX =-dirX;}
if(posY < 1 ||posY + document.getElementById("float_icon").offsetHeight+5 >$(window).height())
{dirY =-dirY;}
}
</script>
</body>
</html>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。