⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main2.htm

📁 asp图书馆管理系统的一个源代码
💻 HTM
字号:
<html>
<head>
<title>main2</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script LANGUAGE="JavaScript">
<!--
step = 0;
obj = new Image();
function anim(xp,xk,smer) //smer = direction
{
obj.style.left = x;
x += step*smer;
if (x>=(xk+xp)/2) {
if (smer == 1) step--;
else step++;
}
else {
if (smer == 1) step++;
else step--;
}
if (x >= xk) {
x = xk;
smer = -1;
}
if (x <= xp) {
x = xp;
smer = 1;
}
// if (smer > 2) smer = 3;
setTimeout('anim('+xp+','+xk+','+smer+')', 50);
}
function moveLR(objID,movingarea_width,c)
{
if (navigator.appName=="Netscape") window_width = window.innerWidth;
else window_width = document.body.offsetWidth;
obj = document.images[objID];
image_width = obj.width;
x1 = obj.style.left;
x = Number(x1.substring(0,x1.length-2));   // 30px -> 30
if (c == 0) {
if (movingarea_width == 0) {
right_margin = window_width - image_width;
anim(x,right_margin,1);
}
else {
right_margin = x + movingarea_width - image_width;
if (movingarea_width < x + image_width) window.alert("No space for moving!");
else anim(x,right_margin,1);
}
}
else {
if (movingarea_width == 0) right_margin = window_width - image_width;
else {
x = Math.round((window_width-movingarea_width)/2);
right_margin = Math.round((window_width+movingarea_width)/2)-image_width;
}
anim(x,right_margin,1);
}
}
setTimeout("moveLR('picture',500,1)",10);
//-->
</script>
</head>

<body bgcolor="#ccddff" link="#FFFF00" vlink="#FFFF00" alink="#FFFF00">
<div id="Layer1" style="height: 76; left: 86; position: absolute; top: 111; width: 414; z-index: 1">
<p align="center"><font color="red" size="5"><strong>&nbsp;</strong><font size="7" color="gold"><strong><u><font style="BACKGROUND-COLOR: red"><a href="../new.asp">图</a></font></u>&nbsp;&nbsp;&nbsp;&nbsp;    
<u><font style="BACKGROUND-COLOR: red"><a href="../new.asp">书</a></font></u>&nbsp;&nbsp;&nbsp;&nbsp;    
<font style="BACKGROUND-COLOR: red"><u><a href="../new.asp">馆</a></u></font>     
</strong></font></font></p></div>  
   
<A href="../Help.asp">  
<IMG border=0 height=80 src="../image/manager.gif" name="picture" width=39 style="position: absolute; top:230; left:30" alt="“嘿!抓住管理员有奖!”">  
</a>   
 
<div id="Layer1" style="height: 20; left: 520; position: absolute; top: 380; width: 50; z-index: 1"> 
<img src="http://www.chinadns.com/cgi-bin/Count.cgi?ft=3&dd=E&df=wu115096-2.dat"> 
</div>  
 
</body>   
</html>   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -