首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Flash >

————flash以致网页输入框光标闪动过快————

2012-12-30 
————flash导致网页输入框光标闪动过快————flash网页输入框光标闪动过快,我把flash删了光标就正常了,但是fl

————flash导致网页输入框光标闪动过快————
flash网页输入框光标闪动过快,
我把flash删了光标就正常了,
但是flash是导航不能删啦~~~~~~
怎么办啊?有什么解决的问题,
各位大虾帮帮忙啊!
[解决办法]
转载自http://blog.sina.com.cn/s/blog_79a08b290100t635.html
原因 光标 与 js 滚动图片冲突

<script>
  var speed=5//速度数值越大速度越慢
  www_qpsh_com2.innerHTML=www_qpsh_com1.innerHTML
  function Marquee(){
  if(www_qpsh_com2.offsetWidth-www_qpsh_com.scrollLeft<=0)
  www_qpsh_com.scrollLeft-=www_qpsh_com1.offsetWidth
  else{
  www_qpsh_com.scrollLeft++
  }
  }
  var MyMar=setInterval(Marquee,speed)
  www_qpsh_com.onmouseover=function() {clearInterval(MyMar)}
  www_qpsh_com.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
    
   
  function StopMove()
  {
  clearInterval(MyMar)
  }
  
  function StartMove()
  {
  MyMar=setInterval(Marquee,speed)
  }
  
  </script>  

 

文本框:

  this.name.Attributes.Add("onblur", "StartMove()");
  this.name.Attributes.Add("onfocus", "StopMove()");
  this.pwd.Attributes.Add("onblur", "StartMove()");
  this.pwd.Attributes.Add("onfocus", "StopMove()");
  this.code.Attributes.Add("onblur", "StartMove()");
  this.code.Attributes.Add("onfocus", "StopMove()");  


 


热点排行