Pionowy scroll w JavaScript the, marquees, także, scroll, javascript, pionowy, width, marqueewidth=150
specify, speed, faster
var, the, marquees, także, scroll, javascript, w, pionowy, width, z, marqueewidth=150
specify, speed, faster
var, larger, is, height
var, speed=2
specify, contents
var, marqueecontents=tu, marquee, wpisać, możesz, dowolny, tekst, marqueeheight=150
specify, pixels
var, in, możliwością, uwzględniania, poczty, formatowaniem, stron, odnośnikami, do, innych, tylko, a, dowolnym, zammieszczać, regenerate2
if, itp, znaku, nie, scrollit
if, regenerate
windowlocationreload
function, width=ampmarqueewidth, documentlayers
settimeoutwindowonresize=regenerate450
intializemarquee
function, móżna, stylów, apostrofu
if, intializemarquee
documentcmarquee01documentcmarquee02documentwritemarqueecontents
documentcmarquee01documentcmarquee02documentclose
thelength=documentcmarquee01documentcmarquee02documentheight
scrollit
function, documentall
documentwriteltmarquee, documentall
documentwrite+marqueecontents+
function, documentcmarquee01documentcmarquee02top=thelength1
documentcmarquee01documentcmarquee02top=speed
settimeoutscrollit100
else
documentcmarquee01documentcmarquee02top=marqueeheight
scrollit
windowonload=regenerate2
ltscript, styloacutew, moacuteżna, apostrofu
if, style=quotwidth+marqueewidth+height+marqueeheight+quotgt+marqueecontents+ltmarqueegt
function,
specify, documentlayers
settimeoutquotwindowonresize=regeneratequot450
intializemarquee
function, scrollamount=+speed+, intializemarquee
documentcmarquee01documentcmarquee02documentwritemarqueecontents
documentcmarquee01documentcmarquee02documentclose
thelength=documentcmarquee01documentcmarquee02documentheight
scrollit
function, height=ampmarqueeheight, name=quotcmarquee01quotgt
ltlayer, documentcmarquee01documentcmarquee02topgt=thelength1
documentcmarquee01documentcmarquee02top=speed
settimeoutquotscrollitquot100
else
documentcmarquee01documentcmarquee02top=marqueeheight
scrollit
windowonload=regenerate2
ltscriptgt
ltilayer, name=quotcmarquee02quot, height=ampmarqueeheightgtltlayergt
ltilayergt
nbsp, direction=quotupquot, language=quotjavascript12quotgt
specify,
Niedziela 19 Maj 2024r.
Godz 00:00:00
Postów: 251
Pionowy scroll w JavaScript
<script language="JavaScript1.2">
//Specify the marquee's width (in pixels)
var marqueewidth=150
//Specify the marquee's height
var marqueeheight=150
//Specify the marquee's scroll speed (larger is faster)
var speed=2
//Specify the marquee contents
var marqueecontents='Tu możesz wpisać dowolny tekst z dowolnym formatowaniem, także możliwością uwzględniania stylów, a także odnośnikami do innych stron, poczty, itp. Nie móżna tylko zammieszczać znaku apostrofu.'
if (document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}
}
window.onload=regenerate2
</script>
<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01">
<layer name="cmarquee02" width=&{marqueewidth}; height=&{marqueeheight};></layer>
</ilayer>
Darmowy hosting zapewnia PRV.PL