javascriptÎÄ×ÖÖð×ÖÊä³ö¾«¼ò°¸Àý

µ¼Óï javascriptÖð×ÖÊä³ö°¸Àý ¶¯Ì¬ÎÄ×ÖÌáʾvartxtArr=[& 39;»¶Ó­À´µ½°®Ë¼×ÊÔ´Íø£¬¹ÙÍøµØÖ·£ºhttp: www aseoe com & 39;,& 39;רעWebÇ°¶Ë¿ª·¢ÓëPHP±à³ÌÉè¼Æ& 39;],x=1,y=0,txt=txtArr[y],timer=null,timer1=null,cu

javascriptÖð×ÖÊä³ö°¸Àý

  1. //¶¯Ì¬ÎÄ×ÖÌáʾ 
  2.             var txtArr = ['»¶Ó­À´µ½°®Ë¼×ÊÔ´Íø£¬¹ÙÍøµØÖ·£ºhttp://www.aseoe.com/''רעWebÇ°¶Ë¿ª·¢ÓëPHP±à³ÌÉè¼Æ'], 
  3.                 x = 1, 
  4.                 y = 0, 
  5.                 txt = txtArr[y], 
  6.                 timer = null
  7.                 timer1 = null
  8.                 cue = $('.menutext');  
  9.             function changTxt() { 
  10.                 if (x == txt.length+1) { 
  11.                     clearTimeout(timer1); 
  12.                     timer1 = setInterval(function(){ 
  13.                         y += 1; 
  14.                         if (y > txtArr.length - 1) y = 0; 
  15.                         cue.text(''); 
  16.                         txt = txtArr[y]; 
  17.                         x=0; 
  18.                     },5500);                     
  19.                 } 
  20.                 cue.text(txt.substring(0,x)); 
  21.                 x+=1; 
  22.                 clearTimeout(timer); 
  23.                 timer = setTimeout(function(){ 
  24.                     changTxt(); 
  25.                 },600); 
  26.             } 
  27.             changTxt(); 

 µã»÷²é¿´°¸Àý

http://www.aseoe.com/ true javascriptÎÄ×ÖÖð×ÖÊä³ö¾«¼ò°¸Àý http://www.aseoe.com/show-12-892-1.html report <£¿php echo strlen($content) / 2; ?> javascriptÖð×ÖÊä³ö°¸Àý ¶¯Ì¬ÎÄ×ÖÌáʾvartxtArr=[& 39;»¶Ó­À´µ½°®Ë¼×ÊÔ´Íø£¬¹ÙÍøµØÖ·£ºhttp: www aseoe com & 39;,& 39;רעWebÇ°¶Ë¿ª·¢ÓëPHP±à³ÌÉè¼Æ& 39;],x=1,y=0,txt=txtArr[y],timer=null,timer1=null,cu
TAG:javascript Öð×ÖÊä³ö
±¾Õ¾»¶Ó­ÈκÎÐÎʽµÄתÔØ£¬µ«ÇëÎñ±Ø×¢Ã÷³ö´¦£¬×ðÖØËûÈËÀͶ¯³É¹û
תÔØÇë×¢Ã÷£º ÎÄÕÂתÔØ×Ô£º°®Ë¼×ÊÔ´Íø http://www.aseoe.com/show-12-892-1.html

[Ç°¶Ë²å¼þÍƼö] Plugin

1 2 3 4
  • jQueryʵÏÖÖð×ÖÖð¾äÏÔʾ²å¼þl-by-l.min.js
  • jQuery´ø·½Ïò¸ÐÖªµÄÊó±ê»¬¹ýͼƬ±ß¿òÌØЧ²å¼þ
  • jQuery HotKeys¼àÌý¼üÅÌ°´ÏÂʼþkeydown²å¼þ
  • ÏìӦʽÎÞÏÞÂÖ²¥jQueryÐýתľÂí²å¼þ
ÏìӦʽÎÞÏÞÂÖ²¥jQueryÐýתľÂí²å¼þ
webÇ°¶Ë¿ª·¢
°®Ë¼×ÊÔ´Íø Copyright 2012-2014 Www.Aseoe.Com All rights reserved.(½úICP±¸13001436ºÅ-1)