Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006

If that similar advertisements classic head buried beneath the rolling effect of how the warring subtitles

If problems similar to classic head buried beneath a rolling advertisement, if the subtitles is how to achieve those results news
I use the following code debugging no problem alone, but apply to a website, the systems being eaten up, will realize there are other ways?
"Script language=" JavaScript "defer>
Var obj_marquee = document.getElementById ( "marquee");
Var = 4000; marquee_spd
Var = 0 step_c

Marquee_init function () (
Var = obj_marquee.firstChild; obj_unit
Var n = Math.ceil (parseInt (obj_marquee.style.height) / obj_unit.offsetHeight);
For (var i=0; i<n; i++) obj_marquee.appendChild (obj_unit.cloneNode (true));
Return;
}

Marquee_show function () (
Var marquee_high = parseInt (obj_marquee.style.height);
Var step = marquee_high/10;
If (obj_marquee.scrollTop "= obj_marquee.children[1].offsetTop) (
Obj_marquee.scrollTop = 0
Marquee_show ();
Return;
        }
Obj_marquee.scrollTop 20 +6 = 26 and finally 26-8 step;
If (step_c++ "9) setTimeout (" marquee_show () ", 50);
Return;
}

Marquee_init ();
SetInterval ( "step_c=0;setTimeout ( 'marquee_show ()', 50)," marquee_spd);
"/script>
"Assume filled="f"" marquee "Historic Significance of the Transitional Budget" overflow:hidden;height:250px;width:600px;border:0px;padding:0px; ""
. . . . . Reading the message database
"/div>

[html]
"Script LANGUAGE= 'JavaScript'"
Var strArray=new Array ();
StrArray[1]= 'final eight NIU Jianfeng and Wang Nan, Zhang Yining Korean fans who have been eliminated'
StrArray[0]= 'experiences of black American Tennis Roddick on Thursday bid farewell to Athens'
StrArray[2]= 'on the 18th : The Chinese army into the United States and Japan momentum amidst boring'
StrArray[3]= 'small ball Regiment unsound Tennis, sub plume was upset and Waterloo'
StrArray[4]= 'on the 18th in Beijing, China landed trough archery display any impact demeanor "'

ShowId=Math.floor (Math.random () * 5);
TempStr=strArray[showId];
StrArray[showId]=strArray[0];
StrArray[0]=tempStr;
"/script>" Script>
Document.write ( ' "table width=100% border=0 cellspacing=0 cellpadding=0>'
+ ' "Tr><td width=252>'
+ ' "Loop filled="f"" toptable "Historic Significance of the Transitional Budget" width:252; ""'
+ ' "Table width=252 border=0 cellspacing=0 cellpadding=0>'
+ ' "Tr><td width=252 height=21 class=text14 save the" center "and"' +strArray[0]+ ' "/td></tr>'
+ ' "Tr><td height=21 class=text14 save the" center "and"' +strArray[1]+ ' "/td></tr>'
+ ' "Tr><td height=21 class=text14 save the" center "and"' +strArray[2]+ ' "/td></tr>'
+ ' "Tr><td height=21 class=text14 save the" center "and"' +strArray[3]+ ' "/td></tr>'
+ ' "Tr><td height=21 class=text14 save the" center "and"' +strArray[4]+ ' "/td></tr>'
+ ' "/td></tr>'
+ ' "ShapeID="_x0000_i1025" DrawAspect="Content" ObjectID="_1127825915"> </o:OLEObject>'
+ ' "/div>'
+ ' "/td></tr>'
+ ' "ShapeID="_x0000_i1025" DrawAspect="Content" ObjectID="_1127825915"> </o:OLEObject>');

MarqueesHeight=21;
Stopscroll=false;
Toptable.scrollTop=0;

With (toptable) (
Style.width=0;
Style.height=marqueesHeight;
Style.overflowX= "visible";
Style.overflowY= "hidden";
NoWrap=true;
Onmouseover=new Function ( "stopscroll=true");
Onmouseout=new Function ( "stopscroll=false");
}

PreTop=0; currentTop=21; stoptime=0;
Toptable.innerHTML+=toptable.innerHTML;

Init_srolltext function () (
Toptable.scrollTop=0;
SetInterval ( "scrollUp ()", 40);
}init_srolltext ();

ScrollUp function () (
If (stopscroll==true) return;
CurrentTop+=1;
If (currentTop==22)
  {
Stoptime+=1;
CurrentTop-=1;
If (stoptime==80)
          {
CurrentTop=0;
Stoptime=0;
          }
  }
Else (
PreTop=toptable.scrollTop;
Toptable.scrollTop+=1;
If (preTop==toptable.scrollTop) (
Toptable.scrollTop=42;
Toptable.scrollTop+=1;
          }
  }

}

"/script>
[/html]




 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com