随机banner

  1. <html>
  2. <body>
  3.  
  4. <script type="text/javascript">
  5. image0="/i/eg_banner_logo.gif"
  6. href0="/index.html"
  7. alt0="jishuchi.com"
  8.  
  9. image1="/i/eg_banner_htmlref.gif"
  10. href1="http://www.jishuchi.com/tags/index.asp"
  11. alt1="HTML 4.01 / XHTML 1.0 参考手册"
  12.  
  13. image2="/i/eg_banner_jsref.gif"
  14. href2="http://www.jishuchi.com/js//js/js_reference.asp"
  15. alt2="JavaScript 参考手册"
  16.  
  17. len=3
  18.  
  19. now=new Date()
  20. now=now.getSeconds()
  21. rnd=now%len
  22.  
  23. image=eval("image"+rnd)
  24. href=eval("href"+rnd)
  25. alt=eval("alt"+rnd)
  26.  
  27. document.write("<a href='" + href + "'>")
  28. document.write("<img src='" + image + "' alt='" + alt + "'></a>")
  29. </script>
  30.  
  31. <h3>请刷新该页面,您会看到广告条的变化。</h3>
  32.  
  33. </body>
  34. </html>