BELPSKOR KSZNT:
<script language="JavaScript"> <!--
function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); }
function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; }
function SetCookie (name, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); }
function DeleteCookie(name) { var exp = new Date(); FixCookieDate (exp); exp.setTime (exp.getTime() - 1); var cval = GetCookie (name); if (cval != null) document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString(); }
var b = GetCookie("z") if (b == null) { storage() } function storage() { var c = prompt("Krlek, rd be a neved s legkzelebb megismerlek!","") var thenewdate = new Date (); thenewdate.setTime(thenewdate.getTime() + (5*24*60*60*1000)); SetCookie('z',c,thenewdate); }
function change() { var c = prompt("Krlek, rd be a neved s legkzelebb megismerlek!","") var thenewdate = new Date (); thenewdate.setTime(thenewdate.getTime() + (5*24*60*60*1000)); SetCookie('z',c,thenewdate); location = "koszfelis.htm" }
var z = GetCookie('z'); document.write("<center>Hello, "+z+".<br>" +"<a href='javascript:change()'>Ha akarsz, vltoztass nevet.</a></center>") //-->
</script>
HTTRKP:
<SCRIPT language=JavaScript1.2> if (document.all) document.body.style.cssText="background: url(IDE RD BE A HTTR HTTP CMT!) no-repeat fixed center center" </SCRIPT>
KEDVENCEKHEZ:
<TABLE class=module cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=side></TD> <TD class=modtitle width="100%"></TD> <TD class=side></TD></TR> <TR> <TD class=modbody colSpan=3> <SCRIPT language=JavaScript> <!-- innen /* Letltve a ThomasWebMuhely javascript archvumbl: http://mitglied.lycos.de/thomaswebmuhely/ */ var url = "http://mitglied.lycos.de/thomaswebmuhely/"; var title = "Az oldalad nevt rd ide";
function click() { if (event.button==2) { if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { window.external.AddFavorite (url,title); } else { var msg = "Add hozz a kedvenceidhez!"; if(navigator.appName == "Netscape") msg += "\n (CTRL-D)"; alert(msg); } } } document.onmousedown=click //--> </SCRIPT>
KERES AZ OLDALON:
<script language="JavaScript"> <!--
var n = 0;
function findInPage(str) {
if (str == "") return false;
if (document.layers) {
if (!window.find(str)) {while(window.find(str, false, true)) n++;} else n++;
if (n == 0) alert("Ez a sz \""+ str +"\" nem tallhat az oldalon."); }
if (document.all) { var txt = window.document.body.createTextRange(); var found = txt.findText(str);
for (var i = 0; i <= n && found != false; i++) { txt.moveStart("character", 1); txt.moveEnd("textedit"); }
if (found) { txt.moveStart("character", -1); txt.findText(str); txt.select(); txt.scrollIntoView(); n++; }
else { if (n > 0) { n = 0; findInPage(str); }
else alert("Ez a sz \""+ str +"\" nem tallhat az oldalon."); }
return false; } }
//--> </script> <form name="search"> <font size=3> <input name="string" type="text" size=15 onChange="n = 0;"> </font> <input type="button" value="Keres" onClick="return findInPage(document.search.string.value);" name="button"> </form>
KEZDLAP KD:
<a href="javascript:void" onMouseDown="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.sajt lapod cime">Legyen ez a kezdõlapod</a>
NAPSZAK KSZNT:
<script language="Javascript"> <!-- day = new Date() hr = day.getHours() hr1 = hr - 12
if (hr < "6") { document.write("Menj aludni!! Hajnali "+hr+" ra van. Ez mg tl korai!") }
else if (hr < "12") { document.write("J reggelt. Most "+hr+" ra mlt, dlelõtt") }
else if (hr < "13") { document.write("Ebdidõ! Most "+hr+" ra van, dlutn") }
else if (hr < "17") { document.write("dvzllek. Most van "+hr1+" ra, dlutn") }
else if (hr < "22") { document.write("J estt. Most "+hr1+" ra van") }
else if (hr > "21") { document.write("J jszakt. Mr "+hr1+" ra van ,este. Menj aludni.") }
//-->
</script>
NYOMTAT KD:
<script language="Javascript1.2"> <!-- var message = "NYOMTAT";
function printpage() { window.print(); }
document.write("<form><input type=button " +"value=\""+message+"\" onClick=\"printpage()\"></form>");
//--> </script>
TALLZS:
<SCRIPT LANGUAGE="JavaScript">
function whatFile() { window.location= 'file:///' + document.form1.cmuds.value; } // End --> </script> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <form name=form1> <input type=file name="cmuds"> <input name="button" type=button onClick="whatFile()" value="Open File"> </form> <p> <center> </center> |
UTOLS MDOSTS:
<SCRIPT LANGUAGE="JavaScript"><!-- function makeArray0() { for (i = 0; i<makeArray0.arguments.length; i++) this[i] = makeArray0.arguments[i]; this.length=makeArray0.arguments.length; } var days = new makeArray0("vasrnap","htfõ","kedd","szerda","cstrtk","pntek","szombat"); var months = new makeArray0('janur','februr','mrcius','prilis','mjus','jnius','jlius', 'augusztus','szeptember','oktber','november','december'); function y2k(number) { return (number < 1000) ? number + 1900 : number; } function magyarit(datum){ var adatum = new Date(datum); return (y2k(adatum.getYear())+". " +months[adatum.getMonth()]+""+adatum.getDate()+", " +days[adatum.getDay()]); } document.write("Az utols mdosts ideje: "+magyarit(document.lastModified)); //--></SCRIPT> |