PHP特效应用珍藏代码

常用特效类

1.主页遥控器

文件一.(t1.html)

1
2
3
<script language="JavaScript">
window.open("t2.html","_blank","width=200","height=200","scroll=no"); 
</script>

文件二.(t2.html)

1
2
3
4
<script language="JavaScript">
function op(add){if (window.opener){window.opener.document.location = add;}} 
</script> 
<a href=# onClick="op('link1.html')">地址1 </a><br><a href=# onClick="op('link2.html')">地址2 </a><br><a href=# onClick="op('http://music.jx165.com')">地址3 </a>

2.只弹一次的窗口

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script>
function get_cookie(Name) { 
var search = Name + "=" 
var returnvalue = ""; 
if (document.cookie.length > 0) {offset = document.cookie.indexOf(search) 
if (offset != -1) {offset += search.length;end = document.cookie.indexOf(";", offset); 
if (end == -1)end = document.cookie.length;returnvalue=unescape(document.cookie.substring(offset, end))} 
} 
return returnvalue; 
} 
function jx165ad(){ 
if (get_cookie('jx165ad')==''){ 
document.cookie="jx165ad=yes" 
window.open("ad.html","_blank","width=200","height=200","scroll=no"); 
} 
else {} 
} 
</script> 
<body> 
<script> 
jx165ad(); 
</script>

3.鼠标放在连接上强行点击

1
2
3
4
<script> 
function mClk2() {var source=event.srcElement;if (source.tagName=="A"){source.click();self.focus();}} 
document.write("<div onmouseover=mClk2();>"); 
</script>
版权所有:为网站而疯狂-给站长一个五星级的家转载请注明来源,谢谢!

还不快抢沙发       我也不甘寂寞

欢迎留言

友情提示:
1、请勿发表色情、违法、商业广告等信息,谢谢。
2、留言想要有头像?请看 “我” 的。