GENERATOR ZDROJAKOV

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

125
p125.html / p125.zip
Generator jednoduchych skriptov
12007b
NN 4.04

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code (p125.html):

<html> <head> <title>JavaScript DESTINATION - P125</title> </head> <frameset rows="16%,85%" border=0 framespacing=0 frameborder=0> <frame scrolling=no src="p125-1.html" name="up"> <frame scrolling=auto src="p125-2.html" name="scripter"> </frameset> </html>

Zdrojovy tvar / Source code (p125-1.html):

<html> <head> <title></title> </head> <body> </body> </html>

Zdrojovy tvar / Source code (p125-2.html):

<html> <head> <title>JavaScript DESTINATION - P125</title> <script language="javascript"> <!-- window.name="scripter"; function launchToolbar() { open("p125-3.html","up"); } function viewPage() { view=open("",""); view.document.open(); view.document.write(document.forms[0].elements[0].value); view.document.close(); } function statusName() { window.status='http://www.javascript.sk/p125.html'; } // --> </script> </head> <body onLoad="launchToolbar();statusName()" text="000000" link="ff0000" vlink="ff0000" alink="0000ff" bgcolor="555555"> <font face="arial" font size=-2> <CENTER> <form> <table><tr><td valign=top> &nbsp &nbsp <a href="javascript:history.back()" onmouseover="window.status='Back In History ';return true"><img src="images/previous.gif" width=19 height=10 border=0></a> <a href="javascript:viewPage()" onmouseover="window.status='View';return true"><img src="images/btview.gif" width=48 height=10 border=0></a> <input name="reset" type="image" src="images/btreset.gif" width=48 height=10 border=0> <a href="javascript:history.forward()" onmouseover="window.status='Forward In History ';return true"><img src="images/forward.gif" width=19 height=10 border=0></a> &nbsp &nbsp <font color="black"> <font face="arial, helvetica"> <font size=+2> <B>J A V A S C R I P T</B> <font size=-1> &nbsp S c r i p t e r &nbsp 1 . 0</left><right> <tr><td> <table><tr><td><textarea name="body" rows=14 cols=80></textarea> </form> </td></tr> </table> </td></tr> </table> </body> </html>

Zdrojovy tvar / Source code (p125-3.html):

<html> <head> <title></title> <script language="javascript"> <!-- var nl=getNewLine(); function getNewLine() { var agent=navigator.userAgent; if (agent.indexOf("Win")>=0) return "\r\n"; else if (agent.indexOf("Mac")>=0) return "\r"; return "\n"; } function getInput(func,form) { var text=form.body.value; if (document.forms[0].mode[0]) var mode=0; if (func==1) text+=outline(mode); form.body.value=text; } function outline(mode) { var ind=document.forms[0].select1.selectedIndex; if (ind==0) { alert(' JavaScript SCRIPTER 1.0 http://www.jaavscript.sk '); return ""; } if (ind==1) return ""; if (ind==2) { alert("Skript by mal byt umiestneny v hlave dokumentu a odkaz na skript v tele"); var prompt1=prompt("Nazov funkcie:", "openWindow"); prompt1=(prompt1)?prompt1:""; var prompt2=prompt("Napiste URL dokumentu pre toto okno:","p125-4.html"); prompt2=(prompt2)?"\("+"\""+prompt2+"\",":""; var prompt3=prompt("Umiestnenie okna (TARGET):",""); prompt3=(prompt3)?prompt3:""; var prompt4=prompt("Prisposobte si parametre okna:", "height=200,width=400,scrollbars=yes,resizable=yes"); prompt4=(prompt4)?"\""+prompt4:""; var prompt5=prompt("Odstrante nepotrebne funkcie okna:","status,menubar,toolbar,location"); prompt5=(prompt5)?"\,"+prompt5:""; var prompt7=prompt("Vlozte popis, ktory sa objavi v stavovom riadku:","Pozrite si tuto stranku"); prompt7=(prompt7)?" onMouseOver="+"\"window.status='"+prompt7+" ';return true"+"\"":""; var prompt6=prompt("Vlozte popis odkazu:","klikni sem"); prompt6=(prompt6)?"<a href="+"\""+"javascript"+"\:"+prompt1+"\()"+"\""+prompt7+">"+prompt6+"</a>":""; return "<script language="+"\""+"javascript"+"\""+">"+nl+nl+"function "+prompt1+"()"+nl+"\ {"+nl+" open "+prompt2+"\""+prompt3+"\","+prompt4+prompt5+"\")"+nl+"\ }"+nl+"</"+"script>"+nl+nl+prompt6+nl; } if (ind==3) { var prompt1=prompt("Vlozte text tlacidla","Zavri okno"); prompt1=(prompt1)?prompt1:""; return "<form>"+nl+"<input type="+"\""+"button"+"\""+" value="+"\""+prompt1+"\""+" onClick="+"\""+"window.close()"+"\""+">"+nl+"</form>"; } if (ind==4) return ''; if (ind==5) { alert("Tato znacka by mala byt umiestnena v tele dokumentu"); var prompt1=prompt("Vlozte popis odkazu:","Chod vpred"); prompt1=(prompt1)?prompt1:""; var prompt2=prompt("Vlozte text, ktory sa objavi v stavovom riadku:","Chod vpred v historii"); prompt2=(prompt2)?" onMouseOver="+"\"window.status='"+prompt2+" ';return true"+"\"":""; return "<a href="+"\""+"javascript"+"\:"+"history.forward()"+"\""+prompt2+">"+prompt1+"</a>" +nl; } if (ind==6) { alert("Tato znacka by mala byt umiestnena v tele dokumentu"); var prompt1=prompt("Vlozte popis odkazu:","Chod vzad"); prompt1=(prompt1)?prompt1:""; var prompt2=prompt("Vlozte text, ktory sa objavi v stavovom riadku:","Chod vzad v historii"); prompt2=(prompt2)?" onMouseOver="+"\"window.status='"+prompt2+" ';return true"+"\"":""; return "<a href="+"\""+"javascript"+"\:"+"history.back()"+"\""+prompt2+">"+prompt1+"</a>" +nl; } if (ind==7) { alert("Tato znacka by mala byt umiestnena v hlave dokumentu. Nebude fungovat, kym nebude ulozena v dokumente"); var prompt1=prompt("Vlozte pocet sekund predtym nez sa zmeni stranka:","15"); prompt1=(prompt1)?"http-equiv="+"\""+"refresh"+"\""+" content="+"\""+prompt1+"":""; var prompt2=prompt("Vlozte cielove URL:","next_doc.html"); prompt2=(prompt2)?" URL="+prompt2+"\"":""; return "<meta "+prompt1+";"+prompt2 +">"+nl; } if (ind==8) return''; if (ind==9) { alert("Tento skript by mal byt umiestneny az po URLku v odkazovej znacke A HREF"); var prompt1=prompt("Vlozte text, ktory sa objavi v stavovom riadku:", ""); prompt1=(prompt1)?" onMouseOver="+"\"window.status='"+prompt1+" ';return true"+"\"": ""; return prompt1; } if (ind==10) { alert("Tento skript by mal byt umiestneny v hlave dokumentu a posledny riadok umiestneny v tele dokumentu"); var prompt1=prompt("Vlozte popis stavoveho riadka:", "Vitajte na mojej stranke"); prompt1=(prompt1)?prompt1:""; return"<script language="+"\""+"javascript"+"\">"+nl+nl+"function statusName()"+nl+"\ {"+nl+" window"+"\.status='"+prompt1+"\';"+nl+"\ }"+nl+"</"+"script>"+nl+nl+"<body onLoad="+"\""+"statusName()"+"\""+">"; } if (ind == 11) { alert("Tento skript by mal byt umiestneny v hlave dokumentu a posledny riadok v tele dokumentu"); var prompt1=prompt("Vlozte text:", ""); prompt1=(prompt1)?"<script language="+"\""+"javascript"+"\">"+nl+nl+"var str="+"\""+"\""+nl+nl+ "function setMessage()"+nl+nl+"{"+nl+nl+" if (str == "+"\""+"\""+")"+nl+nl+" {"+nl+nl+ " for (var ii = 0; ii < 120; ii += 10) {str = str + "+"\""+" \""+"}"+nl+ " str = str + "+"\""+prompt1+"\""+nl+nl+" }"+nl+nl+" else"+nl+nl+" {"+nl+nl+ " str = str.substring(2, str.length)"+nl+nl+" }"+nl+nl+" window.status = str"+nl+nl+ " JSCTimeOutID = window.setTimeout('setMessage()',100)"+nl+nl+"}"+nl+nl+ "<"+"\/"+"script>"+nl+nl:""; return prompt1+"<body onload="+"\""+"JSCTimeOutID=window.setTimeout('setMessage()',500);"+"\""+">"; } if (ind==12) { alert("Tento skript by mal byt umiestneny v hlave dokumentu a posledny riadok v tele dokumentu") var prompt1=prompt("Vlozte rychlost scrollingu (10 a viac)", "10") prompt1=(prompt1)?prompt1:""; var prompt2=prompt("Vlozte text:",""); prompt2=(prompt2)?"<script language="+"\""+"javascript"+"\">"+nl+nl+ "var init_msg = "+"\""+prompt2+"\""+nl+ "var str = "+"\""+"\""+nl+ "var msg= "+"\""+"\""+ nl+"var leftmsg = "+"\""+"\""+nl+ "function setMessage()"+nl+"\{"+nl+" if "+"(msg == "+"\""+"\""+")"+nl+"\ {"+nl+ " str = "+"\""+" \""+nl+" msg = init_msg"+nl+" leftmsg = "+"\""+"\""+nl+"\ }"+nl+" if (str.length == 1) "+nl +"\ {"+nl+" while (msg.substring(0, 1) == "+"\""+" \""+")"+nl+"\ {"+nl+" leftmsg = leftmsg "+"\+ str"+nl +" str = msg.substring(0, 1)"+nl+ " msg = msg.substring(1, msg.length)"+nl+"\ }"+ nl+ " leftmsg = leftmsg "+"\+ str"+nl+" str = msg.substring(0, 1)"+nl+ " msg = msg.substring(1, msg.length)"+nl+" for (var ii = 0; ii < "+prompt1+"\; ii++) "+nl +"\ {str = "+"\""+" \""+" + str}"+nl+ " }"+nl+" else"+nl+" {"+nl+" str = str.substring(10, str.length) "+nl+" }"+nl+ " window.status = leftmsg + str"+nl+ " JSCTimeOutID = window.setTimeout('setMessage()',100)"+nl+"\}"+nl+ nl+ "<"+"\/"+"script>"+nl+nl:""; return prompt2+"<body onload="+"\""+"JSCTimeOutID=window.setTimeout('setMessage()',500);"+"\""+">"; } if (ind==13) return ''; if (ind==14) { alert("Tento skript moze byt umiestneny na lubovolnom mieste v tele, no nikdy nie vo vnutri tabulky."); return "Posledna zmena"+nl+nl+"<script language="+"\""+"javascript"+"\">"+nl+nl+ " document.write(document.lastModified)"+nl+nl+"</"+"script>"+nl; } if (ind==15) { alert("Tato znacka je umiestnena v hlave dokumentu a zabezpeci, ze sa dokument neulozi do cache. Uzitocne pre casto aktualizovane stranky.") return '<meta http-equiv="pragma" content="no-cache"> ' } if (ind==16) return ''; if (ind==17) { alert("Hypertextovy odkaz bol vlozeny do skriptu len pre prehladnost. Ak vasa sprava obsahuje apostrof, musite zmenit apostrofy obklopujuce vasu spravu na invertovane uvodzovky a vystrihnut hypertextovy odkaz z okolia spravy."); var prompt1=prompt("Vlozte spravu vystrazneho okna",""); prompt1=(prompt1)?prompt1:""; return '<a href="javascript:alert('+"'"+prompt1+"'"+')" onMouseOver="window.status='+"'"+'Klikni, aby si videl vystrahu'+"'"+';return true">Klikni sem</a>' } if (ind==18) return ''; } // --> </script> </head> <body onLoad="focus()" bgcolor="000000"> <CENTER> <form> <input name="mode" type="HIDDEN"> <select name="select1"> <option '0' >Vyber <option '1'>----------------------------- <option '2'>Otvor nove okno <option '3'>Zatvor okno <option '4'>------------------------------ <option '5'>Chod vpred <option '6'>Chod vzad <option '7'>Automaticka zmena stranky <option '8'>------------------------------ <option '9'>Text odkazu stavoveho riadka <option '10'>Popis textu stavoveho riadka <option '11'>Posun textu v stavovom riadku <option '12'>SlideShow v stavovom riadku <option '13'>----------------------------- <option '14'>Posledna zmena <option '15'>Zakaz Cache <option '16'>----------------------------- <option '17'>Vystrazne okno <option '18'>----------------------------- </select> <input type="BUTTON" value="Vygeneruj" onclick="getInput(1, opener.document.forms[0])"> </form> <p> <input name="box" type="TEXT" value="Select" cols=40 size="30"> <input name="box" type="TEXT" value="Select" cols=30 size="20" align=top> </body> </html>

Zdrojovy tvar / Source code (p125-4.html):

<html> <head> <title></title> </head> <body bgcolor="blue" text="white" link="red" vlink="purple" alink="green"> <h1>p125-4.html</h1> </font> </body> </html>
[ Navrat / BACK