当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 如题:当鼠标在节点上能显示节点的提示,谢谢! ......
    摘要: 我想安装microsoft shell controls and automation(shell32.dll),在delphi中选project import type library命令,在对话框中选import microsoft shell controls and automation类型库,点install后,在编译时出现cannot assign to read-only p......


如何在网站首页两端悬挂两个FLASH动画

请问如何在网站首页两端悬挂两个FLASH动画?

NO.1   作者: csecong

<script   language=JavaScript>function   leftmove()   {   if(navigator.appName   ==   Netscape){   document.myleft.top=10;   document.myleft.left=15;   document.myRight.top=10;   document.myRight.left=pageXOffset+window.innerWidth-120;   setTimeout(leftmove();,800)   }   else   {   myleft.style.top=10;   myleft.style.left=15;   myRight.style.top=10;   myRight.style.left=document.body.scrollLeft+document.body.offsetWidth-120;   setTimeout(leftmove();,800)   }   }   function   closeI()   { document.all.duiLian1.style.visibility=hidden;   document.all.duiLian2.style.visibility=hidden;}   if   (navigator.appName   ==   Netscape){   if(document.body.offsetWidth>800){    
  document.write("<layer   id=duiLian1   top=10   left=5   width=102   height=300><iframe   src=adv.htm   width=101   height=510   scrolling=no   frameborder=0   marginwidth=0   marginheight=0></iframe><img   src=images/closeL.gif   width=49   height=11   align=right   onclick=closeI();   style=cursor:   hand;></layer>");}    
  document.write("<layer   id=myleft   top=400   left=15   width=80   height=80><iframe   src=adv1.htm   width=80   height=80   scrolling=no   frameborder=0   style=border:   1px   solid   #999999;   marginwidth=0   marginheight=0></iframe></layer>");    
  document.write("<layer   id=myRight   top=400   right=15   width=80   height=80><iframe   src=adv1.htm   width=80   height=80   scrolling=no   frameborder=0   style=border:   1px   solid   #999999;   marginwidth=0   marginheight=0></iframe></layer>");    
  leftmove();   }else{   if(document.body.offsetWidth>800){  
  document.write("<div   id=duiLian1   style=position:   absolute;width:102;top:10;left:5;visibility:visible;z-index:1><iframe   src=adv.htm   width=101   height=360   scrolling=no   frameborder=0   marginwidth=0   marginheight=0></iframe><img   src=images/closeL.gif   width=49   height=11   align=right   onclick=closeI();   style=cursor:   hand;></div>");    
  document.write("<div   id=duiLian2   style=position:   absolute;width:102;top:10;right:5;visibility:visible;z-index:1><iframe   src=advx.htm   width=101   height=360   scrolling=no   frameborder=0   marginwidth=0   marginheight=0></iframe><img   src=images/closeR.gif   width=49   height=11   onclick=closeI();     style=cursor:   hand;></div>");}    
  document.write("<div   id=myleft   style=position:   absolute;width:80;top:400;left:15;visibility:   visible;z-index:   1><iframe   src=adv1x.htm   width=100   height=100   scrolling=no   frameborder=0   style=border:   1px   solid   #999999;></iframe></div>");    
  document.write("<div   id=myRight   style=position:   absolute;width:80;top:400;left:15;visibility:   visible;z-index:   1><iframe   src=adv1x.htm   width=100   height=100   scrolling=no   frameborder=0   style=border:   1px   solid   #999999;></iframe></div>");leftmove();   }</script>  
 

NO.2   作者: hety521

<div   id=couplet_left   style=position:   absolute;visibility:hidden;z-index:1>  
  <EMBED   src=左边flash   quality=high   PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"   TYPE="application/x-shockwave-flash"   WIDTH="115"   HEIGHT="260"   id=zddl   wmode=opaque></EMBED>  
  </div>  
   
  <div   id=couplet_right   style=position:   absolute;visibility:hidden;z-index:1>  
  <EMBED   src="右边flash"   quality=high   PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"   TYPE="application/x-shockwave-flash"   WIDTH="115"   HEIGHT="260"   id=zddl   wmode=opaque></EMBED>  
  </div>  
   
  <SCRIPT   FOR=zddl   EVENT=FSCommand()   LANGUAGE=JavaScript>  
  couplet_left.style.visibility=hidden;  
  couplet_right.style.visibility=hidden;  
  </script>  
   
  <script   src=/zdcouple.js></script>  
   
  <script   LANGUAGE=JavaScript>  
  try{  
  aryADSeq.push("doCouplet()");  
  }catch(e){  
  doCouplet();  
  }  
  </script>  
  这是前面部分的。还有一个JS文件zdcouple.js  
  代码:  
   
   
  function   doCouplet(){  
  if(document.body.offsetWidth>800){  
  couplet_left.style.visibility=visible;  
  couplet_right.style.visibility=visible;      
      couplet_left.style.top=80;  
      couplet_left.style.left=2;  
      couplet_right.style.top=80;  
      couplet_right.style.right=2;  
  }  
  }


 ·存储过程的密码忘了,怎么办    »显示摘要«
    摘要: 存储过程的密码忘了,怎么办 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE