STATUS KDOK
EZEK A SCRIPTEK A TLCA FLTT JELENNEK MEG,MSKPPEN A HONLAPOD ALJN A BNGSZBEN.
EGYSZER MODUL <> JEL MG.KI KELL RAKNI VALAMELYIK OLDALRA.HA MS SCRIPTET IS HASZNLSZ AKKOR AKADHAT.
PLDK KITLTSRE:
typ = new initArray(4) typ[0]="HELL!" INNENTL IRHATOD A SAJT SZVEGEDET typ[1]="ITT CSABEK!" typ[2]="EZ ITT A CSINLD MAGAD OLDALA!" typ[3]="EZ PEDIG AZ IRGP EFFEKT!"
var speed = 100 var speed2 = 2000 GYORSASG
RGP:
<script language="JavaScript">
<!--
var current = 0 var x = 0 var speed = 100 var speed2 = 2000
function initArray(n) { this.length = n; for (var i =1; i <= n; i++) { this[i] = ' ' } }
typ = new initArray(4) typ[0]="HELL!" typ[1]="ITT CSABEK!" typ[2]="EZ ITT A CSINLD MAGAD OLDALA!" typ[3]="EZ PEDIG AZ IRGP EFFEKT!"
function typewrite() { var m = typ[current]
window.status = m.substring(0, x++) + "_"
if (x == m.length + 1) { x = 0 current++
if (current > typ.length - 1) { current = 0 }
setTimeout("typewrite()", speed2) }
else { setTimeout("typewrite()", speed) } }
typewrite() //-->
</script>
RGP (1MS UTN R):
<script language="JavaScript"> <!--
var current = 0 var x = 0 var speed = 100 var back = 20 var speed2 = 2000 var back2 = 1500
function initArray(n) { this.length = n; for (var i =1; i <= n; i++) { this[i] = ' ' } }
typ = new initArray(4) typ[0]="Els zenet " typ[1]="Msodik zenet" typ[2]="Harmadik zenet" typ[3]="Utols negyedik zenet"
function typewrite() { var m = typ[current]
window.status = m.substring(0, x++)
if (x == m.length + 1) { setTimeout("erase()", back2) }
else { setTimeout("typewrite()", speed) } }
function erase() { var m = typ[current]
window.status = m.substring(0, x--)
if (x < 0) { current++ setTimeout("typewrite()", speed2)
if (current > typ.length - 1) { current = 0 } }
else { setTimeout("erase()", back) } } typewrite() //-->
</script>
BALRL JOBBRA HALAD SZVEG:
<script language="Javascript"> <!-- var x = 0 var speed = 70 var text = "DVZLLEK A CSINLD MAGAD OLDALON!." var course = 120 var text2 = text
function Scroll() { window.status = text2.substring(0, text2.length)
if (course < text2.length) { setTimeout("Scroll2()", speed) }
else { text2 = " " + text2
setTimeout("Scroll()", speed); } }
function Scroll2() { window.status = text2.substring(x, text2.length)
if (text2.length - x == text.length) { text2 = text x = 0
setTimeout("Scroll()", speed); }
else { x++ setTimeout("Scroll2()", speed); } }
Scroll() //--> </script>
BETNKNT R GP:
<script language="Javascript"> <!--
function initArray(n) { this.length = n; for (var i =1; i <= n; i++) { this[i] = ' ' } }
slide = new initArray(4) slide[0]="zenet 1" slide[1]="zenet 2" slide[2]="zenet 3" slide[3]="vgl zenet 4"
var delay1 = 3 var delay2 = 3000
var text = slide[0] + " " var str = " " var leftmsg = "" var nextmsg = 0
function setMessage() { if (str.length == 1) {
while (text.substring(0, 1) == " ") {
leftmsg += str str = text.substring(0, 1) text = text.substring(1, text.length) }
leftmsg += str str = text.substring(0, 1) text = text.substring(1, text.length)
for (var x = 0; x < 120; x++) { str = " " + str } }
else { str = str.substring(10, str.length) }
window.status = leftmsg + str
if (text == "") {
str = " " nextmsg++
if (nextmsg > slide.length) { nextmsg = 0 }
text = slide[nextmsg] + " " leftmsg = ""
setTimeout('setMessage()',delay2) }
else { setTimeout('setMessage()',delay1) } }
setMessage(); //--> </script>
VLTAKOZ:
<script language="JavaScript"> <!--
var currentmsg = 0 var MsgTime = 2000 var MsgEndTime = 4000
function initArray(n) { this.length = n; for (var i =1; i <= n; i++) { this[i] = ' ' } }
msg = new initArray(4) msg[0]="Ez az 1. zenet" msg[1]="Most jn a msodik" msg[2]="Itt van a harmadik zenet" msg[3]="s vgl a negyedik sor."
function msgrotator() { window.status = msg[currentmsg]
if (currentmsg > msg.length - 1) { currentmsg = 0 setTimeout("msgrotator()", MsgEndTime) }
else { currentmsg = currentmsg + 1 setTimeout("msgrotator()", MsgTime) } }
msgrotator(); //-->
</script>
VGTELEN:
<SCRIPT LANGUAGE="JavaScript">
<!--
var x = 0 var y = 0 var z = 140 var delay = 70 var text = " Ez egy ide-oda scrolloz " +"fnyjsg. llandan lthat, amig az oldalt " +"nzi valaki. " +"Szmtalan sort kapcsolhatsz hozz." while (y ++ < z) { text = " " + text }
function scroller() { window.status = text.substring(x++, text.length); if (x == text.length) { x = 0; } setTimeout("scroller()", delay); }
scroller(); //--> </SCRIPT> |