打个盹

You are being watched.

一些做网页的技巧

代码片段 🔥 5

1、数据集不为空则显示

<% 
if not (rs.eof and rs.bof) then ’检测记录集是否为空 
%> 
<%else%> 
当前无日志 
<%end if%>

2、登录后返回并刷新源网页

<% 
url=request.ServerVariables("HTTP_REFERER") 
%> 
Response.write("<script language=javascript>alert(’感谢您留言!’)</script> 
<meta http-equiv=’refresh’ content=’0;URL="& Url &"’>") 

3、打开页面,光标定位于于输入框

<body onload="l();"> 
<form name="form"> 
<input name="name" type="text"> 
</form> 
<script language="javascript"> 
function l() 
{ 
document.form.name.focus(); 
} 
</script> 

4、鼠标经过时的图片特效

<SCRIPT language=JavaScript1.2> 
<!-- 
function high(which2){ 
theobject=which2 
highlighting=setInterval("highlightit(theobject)",50) 
} 
function low(which2){ 
clearInterval(highlighting) 
which2.filters.alpha.opacity=40 
} 

function highlightit(cur2){ 
if (cur2.filters.alpha.opacity<100) 
cur2.filters.alpha.opacity+=35 
else if (window.highlighting) 
clearInterval(highlighting) 
} 
</script> 
<img src="bg.gif" class="../images/logo.png" onmouseout=low(this) 
onmouseover=high(this) style="FILTER: alpha(opacity=40)"/>

5、继续……

回梦游仙·千年缘