超强弹窗代码

时间:2010-05-25 22:32 作者:弹窗代码 点击:
兼容所有浏览器弹窗代码

  

 

  1. //保持如phpzy.js  
  2. function openpopup(){   
  3. document.writeln("<script language=\'javascript\'>   ;  
  4. document.writeln("var sVarPopWin=true;    ;  
  5. document.writeln("function PlayJsAdPopWin()    ;  
  6. document.writeln("{    ;  
  7. document.writeln("if( sVarPopWin )    ;  
  8. document.writeln("{    ;  
  9. document.writeln("popwin=window.open(\"http://5200898.taobao.com\",\"\;    ;  
  10. document.writeln("}    ;  
  11. document.writeln("}    ;  
  12. document.writeln("setTimeout(\"PlayJsAdPopWin()\", 3000 );    ;  
  13. document.writeln("</script>;  
  14. }   
  15.  
  16. function get_cookie(Name) {  
  17. var search = Name + "="  
  18. var returnvalue = "";  
  19. if (document.cookie.length > 0) {  
  20. offset = document.cookie.indexOf(search)  
  21. if (offset != -1) { // if cookie exists  
  22. offset += search.length  
  23. // set index of beginning of value  
  24. end = document.cookie.indexOf(";", offset);  
  25. // set index of end of cookie value  
  26. if (end == -1)  
  27. end = document.cookie.length;  
  28. returnvalue=unescape(document.cookie.substring(offset, end))  
  29. }  
  30. }  
  31. return returnvalue;  
  32. }  
  33.  
  34. function helpor_net(){  
  35. if (get_cookie('popped')==''){  
  36. openpopup()  
  37. document.cookie="popped=yes" 
  38. }  
  39. }  
  40. //helpor_net();每天弹一次   
  41.  
  42. var sVarPopWin=true;      
  43. function PlayJsAdPopWin()      
  44. {      
  45. if( sVarPopWin )      
  46. {      
  47. popwin=window.open("http://5200898.taobao.com",";      
  48. }      
  49. }      
  50. setTimeout("PlayJsAdPopWin()", 5000 ); //进入5秒后弹出  
  51. //包含进去就可以了。 

 转载保留:http://www.phpzy.com/liulanqichuangkou/5615.html


标签(Tag):强弹代码 js弹窗代码 弹窗代码
------分隔线----------------------------
推荐内容
热点内容