onMouseOver="makevisible(this,0)" onMouseOut="makevisible(this,1)">
禁止图片下载 <A HREF="javascript:void(0)" onMouseover="alert('对不起,此图片不能下载!')"> <IMG SRC="2.gif" Align="center" Border="0" width="99" height="50"></A>
页嵌页 <iframe width=291 height=247 src="main.files/news.htm" frameBorder=0></iframe>
隐藏滚动条 <body style="overflow-x:hidden;overflow-y:hidden"
CSS文字阴影(定义在<TD>中) .abc{ FILTER: dropshadow(color=#666666, offx=1, offy=1, positive=1); FONT-FAMILY: "宋体"; FONT-SIZE: 9pt;COLOR: #ffffff; }
列表/菜单 onchange="location=this.options[this.selectedIndex].value"
<iframe id="frm" src="k-xinwen.html" scrolling="no" width="314" height="179"></iframe> <img src="xiangshang.jpg" onMouseOver="sf=setInterval('frm.scrollBy(0,-2)',1)" onMouseOut="clearInterval(sf)" width="31" height="31"> <img src="xiangxia.jpg" onMouseOver="sf=setInterval('frm.scrollBy(0,2)',1)" onMouseOut="clearInterval(sf)" width="31" height="31" >
reurl=server.htmlencode(request.ServerVariables("HTTP_REFERER"))
服务器上如何定义连接 MM_www_STRING ="driver={Microsoft access Driver (*.mdb)};dbq=" & server.mappath("../data/www.mdb")
链接到 response.redirect"login.asp" location.href="xx.asp"
onClick="window.location='login.asp'" onClick="window.open('')"
取得IP userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR") If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR")
sql="update feedbak set hit=hit+1 where id="&request("id") conn.execute(sql)
截取字符是否加... function formatStr(str,len) if(len(str)>len) str = left(str,len) + "..." end if formatStr = str end function
接收表单 If Ucase(Request.ServerVariables("REQUEST_METHOD")) = "POST" then end if
图片宽度 <script language="javascript"> <!-- var flag=false; function DrawImage(ckp){ var image=new Image(); image.src=ckp.src; if(image.width>0 && image.height>0) {flag=true; if(image.width>120){ ckp.width=120; }else{ ckp.width=image.width; } ckp.alt=image.width+"×"+image.height; } } //--> </script> I'll be Back 22:18:06 <img src="<%=formPath%>/<%=rs("photoname")%>" border="0" onload="javascript:DrawImage(this);">
跳转 <meta http-equiv=refresh content='0; url=/distributor/distributor.aspx'>
溢出栏的设制 visible:超出的部分照样显示; hidden:超出的部分隐藏; scrool:不管有否超出,都显示滚动条; auto:有超出时才出现滚动条;
onMouseOver:鼠标移到目标上; onMouseUp:按下鼠标再放开左键时; onMouseOut:鼠标移开时; onMouseDown:按下鼠标时(不需要放开左键); onClink:点击时; onDblClick:双击时; onLoad:载入网页时; onUnload:离开页面时; onResize:当浏览者改变浏览窗口的大小时; onScroll:当浏览者拖动滚动条的时。
CSS样式 a:link:表示已经链接; a:hover:表示鼠标移上链接时; a:active:表示链接激活时; a:visited:表示己点击过的链接。
跳出对话框链接 javascript:alert('lajflsjpjwg') 后退:javascript:history.back(1) 关闭窗口:javascript:window.close(); 窗口还原 function restore(){ window.moveTo(8,8); window.resizeTo(screen.width-24,screen.availHeight-24); }
head区是指首页HTML代码的<head>和</head>之间的内容。
|