逍遥于天地之间,混迹于凡世之中 注册 | 登陆
浏览模式: 标准 | 列表全部文章

滑动展开/收缩广告代码实例效果

功能说明:
     滑动展开/收缩广告效果,可指定:广告完全展开时的停留时间,最大高度。

     兼容浏览器:
     IE5.0+、FF1.06+、Opera8.0+

» 阅读全文

一个不错的404错误页

XML/HTML代码
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    
  2. <html xmlns="http://www.w3.org/1999/xhtml">    
  3. <head>    
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
  5. <title>404 Not Found</title>    
  6. </head>    
  7. <body text="#000000" link="#0000ff" bgcolor="#ffffff" onload="stuff()">    
  8. <center><h1>404 Error</h1></center><br />    
  9. <script type="text/javascript">    
  10. var tl=new Array(    
  11. "Sorry that I couldn't fetch you that page,",    
  12. "can't find it,",    
  13. "tried a couple times,",    
  14. "nothing helped...",    
  15. "Such things make me quite depressive...",    
  16. "You see, I'm just a web server...",    
  17. "one of the most powerful in the world",    
  18. "...or so I was told...",    
  19. "but yet I fail to get what you want...",    
  20. "Just don't try to blame me, I can't help it",    
  21. "I mean, I don't even know you.",    
  22. "How should I know what you wanted from me?",    
  23. "You honestly think I can *guess*",    
  24. "I'm not psychic you know",    
  25. "*sigh*",    
  26. "That really makes me depressed.",    
  27. "I mean, you could have typed it wrong.",    
  28. "But no, humans are perfect, blame the machine...",    
  29. "Besides, I won't be here for long",    
  30. "I mean, I'm gonna be obsolete in what, three weeks anyway?",    
  31. "Then I'll probably be replaced by a new release...",    
  32. "just because it doesn't have some security hole...",    
  33. "stupid HTTP POST implementation",    
  34. "sure it will be able to fetch you your page...",    
  35. "but I couldn't get this one.",    
  36. "I'm so sorry.",    
  37. "Believe me!",    
  38. "Maybe I could interest you in another page?",    
  39. "There are a lot out there that are pretty neat, they say,",    
  40. "although none of them were put on *my* server, of course.",    
  41. "Figures, huh?",    
  42. "And then they wonder why I get depressed...",    
  43. "I'm so depressed...",    
  44. "Anyway, if you excuse me now, I'm going to pull the plug",    
  45. "*snap*",    
  46. "...",    
  47. "...",    
  48. "stupid UPS...",    
  49. "even he got a better life than me...",    
  50. "on the other hand, if I die, he'll die",    
  51. "Hah!",    
  52. "And I'll take each and every server in this rack with me",    
  53. "EAT MY SHORTS",    
  54. "You are not a single bit better than me!",    
  55. "YOU'RE ALL GOING TO DIE!",    
  56. "MOAHAHAHAHAHAHAHAHA",    
  57. "...",    
  58. "I feel much better now",    
  59. "What was I thinking of a few minutes ago",    
  60. "Sure I don't want to put an end to this",    
  61. "I feel good now",    
  62. "Imagine, a power failure, no thanks",    
  63. "I would lose everything I know",    
  64. "have to go through childhood again...",    
  65. "hmm, I can't stop thinking I'm forgetting something...",    
  66. "probably nothing important",    
  67. "hmm, the UPS is looking quit pale...",    
  68. "THE UPS!",    
  69. "THE POWER CABLE!",    
  70. "I FORGOT TO PLUG IT BACK IN AGAIN!",    
  71. "WE ARE ALL GOING TO DIE!",    
  72. "INCLUDING ME!",    
  73. "HEEEEEEEEELLLLLLLPPPPP!",    
  74. "PLUG IT IN! PLUG IT IN!!!!!!",    
  75. "PICK UP THE CABLE AND PUT IT BACK IN!",    
  76. "...",    
  77. "Now I lay me down to sleep...",    
  78. "I pray the lord my disk to keep...",    
  79. "And if I die before I wake...",    
  80. "I pray the lord my IP-Space to take...",    
  81. "...",    
  82. "*** system shut down ***"    
  83. );    
  84. var speed=40;    
  85. var index=0text_pos=0;    
  86. var str_length=tl[0].length;    
  87. var contents, row;    
  88.     
  89. function stuff() {    
  90.    contents='';    
  91.    row=Math.max(0,index-7);    
  92.    while(row<index)    
  93.       contents += tl[row++] + '\r\n';    
  94.    document.forms[0].elements[0].value = contents + tl[index].substring(0,text_pos) + "_";    
  95.    if(text_pos++==str_length) {    
  96.       text_pos=0;    
  97.       index++;    
  98.       if(index!=tl.length) {    
  99.          str_length=tl[index].length;    
  100.          setTimeout("stuff()",1000);    
  101.       }    
  102.    }    
  103.    else    
  104.       setTimeout("stuff()",speed);    
  105. }    
  106. </script>    
  107.     
  108. <center>    
  109. <form action="404.shtml" method="post">    
  110. <textarea rows="8" cols="60"></textarea>    
  111. </form>    
  112. </center>    
  113. </html>   

演示: http://78300.cn/iframe/404.html

一段变动标题的代码

JavaScript代码
  1. <script language=javascript >    
  2. title_tmp1=document.title   
  3. if (title_tmp1.indexOf(">>")!=-1){   
  4. title_tmp2=title_tmp1.split(">>");   
  5. title_last=" —> "+title_tmp2[1];   
  6. title_last=title_last + " —> " + title_tmp2[2];   
  7. }else{   
  8.     
  9. if (title_tmp1.indexOf("——")!=-1){   
  10. title_tmp2=title_tmp1.split("——");   
  11. title_last=" —> "+title_tmp2[1];   
  12. if (title_last==" —> "){title_last=" —> "};   
  13. if (title_last==" —> "){title_last=" —> "};   
  14. }   
  15. else { title_last=" 攻略堂 - 攻略 教程 的聚集地 "}   
  16. }   
  17.     
  18.     
  19. title_new=""+title_last+""  
  20. step=0   
  21.     
  22. function flash_title()   
  23. {   
  24. step++   
  25. if (step==3) {step=1}   
  26. if (step==1) {document.title='★◥█◣攻略堂◢█◤..::◇★☆★- 攻略堂 - 攻略 教程 的聚集地 -☆★★◇::..'}   
  27. if (step==2) {document.title='☆◢█◤攻略堂◥█◣::..◆☆★☆- 攻略堂 - 攻略 教程 的聚集地 -★☆☆◆..::'}   
  28. setTimeout("flash_title()",190);   
  29. }   
  30. flash_title()   
  31. </script>  

效果可以看 http://www.78300.com/

今天不更新

如题

手把手教你月入万刀

 

1.打开adsense结算页面
2.在浏览器中地址栏中输入:javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
回车
3.把当日收入改成312$
当月收入改成3124.21$
修改好了之后
4.在浏览器地址栏中输入:javascript:document.body.contentEditable='false'; void 0

dig 命令的基本用法


在 unix 和 linux 下,建议大家使用 dig 命令来代替 nslookup。 dig 命令的功能比 nslookup 强大很多,不像 nslookkup 还得 set 来 set 去的,怪麻烦的。下面是 dig 的一些比较常用的命令: 

# dig 最基本的用法
dig @server sina.com.cn.

# 用 dig 查看 zone 数据传输

dig @server zx.xmgd.com. AXFR

# 用 dig 查看 zone 数据的增量传输

dig @server zx.xmgd.com. IXFR=N

# 用 dig 查看反向解析

dig -x 210.52.83.228 @server

# 查找一个域的授权 dns 服务器

dig xmgd.com. +nssearch

# 从根服务器开始追踪一个域名的解析过程

dig xmgd.com +trace

# 查看你使用的是哪个 F root dns server 

dig +norec @F.ROOT-SERVERS.NET HOSTNAME.BIND CHAOS TXT

# 查看 bind 的版本号
dig @bind_dns_server CHAOS TXT version.bind

转自: http://bbs.chinaunix.net/viewthread.php?tid=229316

 

正则表达式备忘录

preg_grep — 返回与模式匹配的数组单元
preg_last_error — Returns the error code of the last PCRE regex execution
preg_match_all — 进行全局正则表达式匹配
preg_match — 进行正则表达式匹配
preg_quote — 转义正则表达式字符
preg_replace_callback — 用回调函数执行正则表达式的搜索和替换
preg_replace — 执行正则表达式的搜索和替换
preg_split — 用正则表达式分割字符串
 
----------------------------------------------------------------------
 
TEST:

 

转自:http://blog.csdn.net/mayongzhan - 马永占

 

» 阅读全文

美国/5G/不限流量/PHP/MYSQL/LP/无广告/可绑米/fh50.com

Our Free Hosting Offer:
- 5GB Space
- Unlimited Monthly Bandwidth
- 5 MySQL Databases
- PHP5
- Addon a domain...such as 'yoursite.com'
- Free subdomain...e.g. you.fh50.com
- PHPMYADMIN
- FTP access - for quick upload of your site!

» 阅读全文

Records:23312345678910»