Couplet.js
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:1k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. if (navigator.appName == "Netscape")
  2. document.ns = navigator.appName == "Netscape"
  3. window.screen.width>800 ? imgheight=160:imgheight=150
  4. window.screen.width>800 ? imgleft=10:imgleft=30
  5. window.screen.width>800 ? imgRight=10:imgRight=30
  6. function Adsload_Couplet()
  7. {
  8.   if (navigator.appName == "Netscape")
  9.     {
  10. document.AdsLayerLeft.pageY=pageYOffset+10;
  11. document.AdsLayerLeft.pageX=imgleft;
  12. document.AdsLayerRight.pageY=pageYOffset+10;
  13. document.AdsLayerRight.pageX=imgRight;Adsmove_Couplet();
  14.     }
  15.   else
  16.    {
  17. AdsLayerLeft.style.top=document.body.scrollTop+10;
  18. AdsLayerLeft.style.left=imgleft;
  19. AdsLayerRight.style.top=document.body.scrollTop+10;
  20. AdsLayerRight.style.right=imgRight;
  21. Adsmove_Couplet();
  22.    }
  23. }
  24. function Adsmove_Couplet()
  25. {
  26.   if(document.ns)
  27.    {
  28. document.AdsLayerLeft.top=pageYOffset+10
  29. document.AdsLayerLeft.left=imgleft;
  30. document.AdsLayerRight.top=pageYOffset+10
  31. document.AdsLayerRight.right=imgRight;
  32. setTimeout("Adsmove_Couplet();",80)
  33.    }
  34.   else
  35.   {
  36. AdsLayerLeft.style.top=document.body.scrollTop+10;
  37. AdsLayerLeft.style.left=imgleft;
  38. AdsLayerRight.style.top=document.body.scrollTop+10;
  39. AdsLayerRight.style.right=imgRight;
  40. setTimeout("Adsmove_Couplet();",80)
  41.   }
  42. }
  43. Adsload_Couplet();