进入主页以后自动播放声音 
<embed src="http://www.wowo-design.com/music.rm" hidden=true autostart=true loop=true> 

进入主页后自动最大话,省的去在自己单击了 
<script> 
self.moveTo(0,0) 
self.resizeTo(screen.availWidth,screen.availHeight) 
</script> 

显示现在时间的脚本 
<script language=vbscript> document.write now</script> 

显示最后修改时间的脚本 
<script> document.write(document.lastModified)</script> 

设为首页,加为收藏,加入频道,启动outlook发信 
<a style="cursor:hand"  
onclick="this.style.behavior="url(#default#homepage)"; 
this.setHomePage("yourURL"> 设为首页</a> 

<a style="cursor:hand" 
onclick="window.external.AddFavorite(location.href,document.title);"> 加入收藏</a> 

<a href=javascript:window.external.addChannel("typhoon.cdf")> 加入频道</a> 

<a href="youEmail"> 与我联系</a> 

Flash中在按钮上如何加“设为首页”“加入收藏”?action怎么写啊? 
on (release) { 
getURL("javascript:void(document.links[0].style.behavior='url(#default#homepage)');void document.links[0].setHomePage('wowo-design.com/" target="_blank"> http://www.wowo-design.com/');", "_self"); 


加入收藏: 
on(release) { 
getURL("javascript:window.external.AddFavorite('wowo-design.com/" target="_blank"> http://www.wowo-design.com/','wowo工作室')"); 


状态栏动态显示现在时间 
<script> 
function see(){ 
window.setTimeout("see()",1000); 
today = new Date(); 
self.status = today.toString(); 

</script> 
<body onload=see()> 

关闭窗口的脚本 
<a href=javascript:close()> [关闭窗口]</a> 

窗口定时关闭 
先将如下代码网页文件的<head> </head> 区: 
 <script language="JavaScript"> 
 function closeit() { setTimeout("self.close()",10000) //毫秒 } 
 </script> 
然后再在<body> </body> 标内加入如:<body onload="closeit()"> 

网页自动关闭 
 <html> 
 <head> 
 <object id=closes type="application/x-oleobject" 
 classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> 
 <param name="Command" value="Close"> 
 </object> 
 </head> 
 <body onload="window.setTimeout('closes.Click()',10000)"> 
 这个窗口会在10秒过后自动关闭,而且不会出现提示. 
 </body> 
 </html> 

按下F12键,直接返回首页 
<script> function look(){ 
if(event.keyCode==123){document.location.href=http://www.wowo-design.com/} 

if(document.onkeydown==null) 
{document.onkeydown=look} 
</script> 

后退,刷新,前进 
<input type=button value=后退 onclick=history.go(-1)> 
<input type=button value=刷新 onclick=history.go(-0)> 
<input type=button value=前进 onclick=history.go(+1)> 

设定时间弹出窗口,4000=4秒,当然你可以自定义 
<script> function l() { 
window.open("yourURL","name","width=500,height=150,border=0") 

setTimeout("l()",4000) 
</script> 

随机替换图片<script> 
 document.write('<img src="img/'+parseInt(Math.random()*(5)) 
 +'.gif"height="40" width="50"> ') 
</script> 

图片文件名为0.gif 1.gif 2.gif 3.gif 4.gif 

防止表格被撑破的代码 

<table width=100 border=1> 
<tr> <td style="word-break:break-all"> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</td> </tr> 

Dreamweaver里画细线标格 
<table style="border-collapse: collapse"> 

有没有可能用层来遮住FLASH? 
1.在flash的parameters里加入 <param name="wmode" value="transparent"> 
2.<body onblur=self.focus()> 

如何让Flash按钮同时打开两个网页 
最简单的办法,最一个按扭,把 
on(press){ 
getURL("http://www.wowo-design.com";,_blank); 
getURL("http://www.sina.com";,_blank); 

加在按扭上 

怎样点不同的链接在同一个Iframe里显示? 
<table width="510" border="0" cellspacing="0" cellpadding="0"> 
<tr> 
<td width="218" align="center" bgcolor="#eeeeee"> <a href="http://www.wowo-design.com"; target="manager"> blueidea</a> 
</td> 
<td width="292" align="center" bgcolor="#eeeeee"> <a href="http://www.blueidea.com/bbs"; target="manager"> bbs</a> </td> 
</tr> 
<tr> 
<td height="200" colspan="2"> <iframe border=0 frameborder=0 framespacing=0 height=200 marginheight=0 marginwidth=0 name=manager scrolling="NO" noresize src="http://www.wowo-design.com"; width=500 vspale="0"> </iframe> </td> 
</tr> 
</table> 

节日倒计时 
<Script Language="JavaScript"> 
   var timedate= new Date("October 1,2002"); 
   var times="国庆节"; 
   var now = new Date(); 
   var date = timedate.getTime() - now.getTime(); 
   var time = Math.floor(date / (1000 * 60 * 60 * 24)); 
   if (time > = 0) 
   document.write("现在离"+times+"还有: "+time +"天") 
</Script> 

随机变换背景图象(一个可以刷新心情的特效) 
在<head> </head> 之间加上如下代码: 
<Script Language="JavaScript"> 
   image = new Array(4); //定义image为图片数量的数组 
   image [0] = 'tu0.gif' //背景图象的路径 
   image [1] = 'tu1.gif' 
   image [2] = 'tu2.gif' 
   image [3] = 'tu3.gif' 
   image [4] = 'tu4.gif' 
   number = Math.floor(Math.random() * image.length); 
   document.write("<BODY BACKGROUND="+image[number]+"> "); 
</Script> 

select挡住div的解决方法 
在div里加入下面的代码,根据需要调整就可以了。 
<iframe src="javascript:false" scrolling="no" frameborder="0" style="z-index:-1;position:absolute; top:5px; left:2px;width:168;height:100px;"> 
</iframe> 

2007年8月11添加 

服务器上如何定义连接 

MM_www_STRING ="driver={Microsoft access Driver (*.mdb)};dbq=" & server.mappath("../data/www.mdb") 

链接到 

response.redirect"login.asp" 
location.href="xx.asp" 

取得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 

posted on 2007-08-29 20:18  mecn  阅读(490)  评论(0编辑  收藏  举报