script
About Me

Script siåt Espen å Kristian

klokka   
 
 
<body onLoad="startclock()">
<script Language="JavaScript">
<!-- This Script Created by Randy Bennett: http://home.thezone.net/~rbennett/utility/javahead.htm -->
<!-- For this and 100s of other Free Javascripts, check out: -->
<!-- Free-Javascripts.com @ http://www.free-javascripts.com/ -->
<!-- Begin
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
  //I added the following line to see if i could get 9 hours to show as 09 hours
        timeValue = ((timeValue <10)? "0":"") + timeValue
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " pm" : " am"
document.clock.face.value = timeValue;
timerID = setTimeout("showtime()",100);
timerRunning = true;
}
function startclock() {
stopclock();
showtime();
}
// End -->
</SCRIPT>
<br><br>
<CENTER><B><FONT COLOR="#FFFFFF">The current time is:</FONT></B></CENTER><br><br>
<CENTER>
<FORM name="clock">
<input type="text" name="face" size=11 value="">
</FORM>
</CENTER>
 
 
 
 
 
 
hangman 
 
<body onload="count();">
<table border=1><tr>
 <form name="hang"><td align="center" colspan=13>
<font face="Comic Sans MS, Arial, Helvetica" color="teal" size="+1"><b>HANGMAN</b></font></td></tr>
 <input type="hidden" name="word" value="">
<script language="javascript">
<!-- This Script Created by D10n...(for Becky Flesher): http://members.xoom.com/yoboseyo/js/ -->
<!-- For this and 100s of other Free Javascripts, check out: -->
<!-- Free-Javascripts.com @ http://www.free-javascripts.com/ -->
var words=new Array();
words[0] = "GEORGE WASHINGTON";
words[1] = "JOHN ADAMS";
words[2] = "THOMAS JEFFERSON";
words[3] = "JAMES MADISON";
words[4] = "JAMES MONROE";
words[5] = "JOHN QUINCY ADAMS";
words[6] = "ANDREW JACKSON";
words[7] = "MARTIN VAN BUREN";
words[8] = "WILLIAM HENRY HARRISON";
words[9] = "JOHN TYLER";
words[10] = "JAMES POLK";
words[11] = "ZACHARY TAYLOR";
words[12] = "MILLARD FILLMORE";
words[13] = "FRANKLIN PIERCE";
words[14] = "JAMES BUCHANAN";
words[15] = "ABRAHAM LINCOLN";
words[16] = "ANDREW JOHNSON";
words[17] = "ULYSSES GRANT";
words[18] = "RUTHERFORD HAYES";
words[19] = "JAMES GARFIELD";
words[20] = "CHESTER ARTHUR";
words[21] = "GROVER CLEVELAND";
words[22] = "BENJAMIN HARRISON";
words[23] = "GROVER CLEVELAND";
words[24] = "WILLIAM MCKINLEY";
words[25] = "THEODORE ROOSEVELT";
words[26] = "WILLIAM HOWARD TAFT";
words[27] = "WOODROW WILSON";
words[28] = "WARREN HARDING";
words[29] = "CALVIN COOLIDGE";
words[30] = "HERBERT HOOVER";
words[31] = "FRANKLIN ROOSEVELT";
words[32] = "HARRY TRUMAN";
words[33] = "DWIGHT EISENHOWER";
words[34] = "JOHN KENNEDY";
words[35] = "LYNDON JOHNSON";
words[36] = "RICHARD NIXON";
words[37] = "GERALD FORD";
words[38] = "JIMMY CARTER";
words[39] = "RONALD REAGAN";
words[40] = "GEORGE BUSH";
words[41] = "BILL CLINTON";
alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
ltr=0; ltc=0;
for (i=0;i<2;i++)
 { document.write("<tr>");
   for (j=0;j<13;j++)
    { a='<td><tt><input type="button" value=" ';
      a+=alpha.substring(ltr,ltr+1)+' " onclick="';
      document.write(a+'letter(this);"></tt></td>'); ltr++; };
   document.write("</tr>"); };
var rnd=Math.floor(Math.random()*words.length);
document.hang.word.value=words[rnd].toUpperCase();
document.write('<tr><td colspan=13 align="center"><tt><font size=+2>');
for (i=0;i<words[rnd].length;i++)
 { a=words[rnd].substring(i,i+1);
   if (alpha.indexOf(a,0)>-1) { a="*"; ltc++; };
   document.write('<input type="button" value="'+a+'">'); };
document.write('</font></tt></td></tr>');
function letter(l)
 { a=l.value.substring(1,2); l.value="   "; dh=document.hang;
   if (a!=" ")
    { w=dh.word.value;
      b=w.indexOf(a,0); f=1; dhl=dh.left;
      while (b>-1)
       { dh.elements[b+27].value=a;
         b=w.indexOf(a,b+1); f=0; ltc--; };
      dhl.value-=f;
      if (dhl.value==0)
       for (j=0;j<26;j++)
        dh.elements[j+1].click();
    }; };
function count()
 { dh=document.hang; dhc=dh.clock; dhl=dh.left;
   dhc.value-=1; v=dhl.value*ltc*dhc.value
   if (v>0)
    setTimeout("count();",1000);
   else
    { msg="Congratulations!";
      if (dhl.value<0)
       msg="You Have No More Tries!";
      if (ltc>0)
       msg="Time Out! Answer:\n"+dh.word.value;
      dhl.value="0";
      alert(msg);
    }; };
</script>
<tr><td align="center" colspan=5>TURNS LEFT:<input type="button" value="10" name="left"></td>
<td colspan=5 align="center">TIME REMAINING:<input type="button" value="60" name="clock"></td>
<td colspan=3 align="center"><input type="button" value="Again" onclick="location='hangman.html';">
</td></form></tr></table>
 
 
 
 
 
Dice Roller
 
 
 
<CENTER>
<FONT SIZE="5" COLOR="Red">Dice Roller</FONT><P>
<table name="die_roller" border="2" cellpadding="5">
<tr>
<td colspan="2" align="middle"><B>What type of die?</B></td>
<td colspan="2" align="middle"><B>How many dice to roll?</B></td>
</tr>
<tr>
<td valign="top" align="middle">
<form name="die_type">
<p><input type="radio" name="sides" onclick="die = 3"><B>3 Sided</B>
<p><input type="radio" name="sides" onclick="die = 4"><B>4 Sided</B>
<p><input type="radio" name="sides" onclick="die = 5"><B>5 Sided</B>
<p><input type="radio" checked name="sides" onclick="die = 6"><B>6 Sided</B>
<p><input type="radio" name="sides" onclick="die = 8"><B>8 Sided</B>
</td>
<td valign="top" align="middle">
<p><input type="radio" name="sides" onclick="die = 10"><B>10 Sided</B>
<p><input type="radio" name="sides" onclick="die = 12"><B>12 Sided</B>
<p><input type="radio" name="sides" onclick="die = 20"><B>20 Sided</B>
<p><input type="radio" name="sides" onclick="die = 30"><B>30 Sided</B>
<p><input type="radio" name="sides" onclick="die = 100"><B>100 Sided</B>
</form>
</td>
<td valign="top" align="middle">
<form name="die_number">
<p><input type="radio" name="number" onclick="dice = 1"><B>1</B>
<p><input type="radio" name="number" onclick="dice = 2"><B>2</B>
<p><input type="radio" checked name="number" onclick="dice = 3"><B>3</B>
<p><input type="radio" name="number" onclick="dice = 4"><B>4</B>
<p><input type="radio" name="number" onclick="dice = 5"><B>5</B>
</td>
<td valign="top" align="middle">
<p><input type="radio" name="number" onclick="dice = 6"><B>6</B>
<p><input type="radio" name="number" onclick="dice = 7"><B>7</B>
<p><input type="radio" name="number" onclick="dice = 8"><B>8</B>
<p><input type="radio" name="number" onclick="dice = 9"><B>9</B>
<p><input type="radio" name="number" onclick="dice = 10"><B>10</B>
</form>
</td>
</tr>
<form name="die_form">
<tr>
<td align="middle" colspan="4">
<input type="button" value="Roll Dice" name="button" onclick="
dice_roll(die, dice)">
<input type="text" size="10" name="text">
</td>
</tr>
</form>
</table>
</CENTER>
 
 
sett denne siden som startside
 
<A HREF="http://www.DinUrl.com" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.DinUrl.com');">Sett som startside</A>
 
 
 
kalkulator som rekner ut hvilken dag du ble født
 
 
<html>
<head><script LANGUAGE="JavaScript">
<!--
//Author: Michael Gudaitis
//e-mail: sparrow@erols.com
//You may use this script free of charge so long as
//this copyright information stays intact.
//copyright 1998
function cala_day(form) {
       
        var nSwitch = 0
        var nMonth = parseInt(form.month.value)
        var nDay =  parseInt(form.day.value)
        var nYear =  parseInt(form.year.value)
       
        if(!(nYear % 4) && (nMonth > 2)) {
                nSwitch = 1
        }              
        var nDayOfWeek = cala_weekday(nMonth, nDay, nYear)
       
        if(nSwitch) {
                nDayOfWeek++
                nSwitch = 0
        }
       
        day_display(form, nDayOfWeek)
}
function cala_weekday( x_nMonth, x_nDay, x_nYear) {
        if(x_nMonth >= 3){     
                x_nMonth -= 2
        }
        else {
                x_nMonth += 10
        }
        if( (x_nMonth == 11) || (x_nMonth == 12) ){
                x_nYear--
        }
        var nCentNum = parseInt(x_nYear / 100)
        var nDYearNum = x_nYear % 100
       
        var nPart1 = parseInt(2.6 * x_nMonth - .2)
       
        var nZeller = (parseInt(nPart1 + x_nDay + nDYearNum + (nDYearNum / 4) + (nCentNum / 4) - 2 * nCentNum)) % 7
       
        if(nZeller < 0){
                nZeller += 7
        }
       
        return nZeller
}
function day_display(form, x_nDayOfWeek) {
        if(x_nDayOfWeek == 0) {
                form.birthday.value = "Saturday"
                return
        }
        if(x_nDayOfWeek == 1) {
                form.birthday.value = "Sunday"
                return
        }
        if(x_nDayOfWeek == 2) {
                form.birthday.value = "Monday"
                return
        }
        if(x_nDayOfWeek == 3) {
                form.birthday.value = "Tuesday"
                return
        }
        if(x_nDayOfWeek == 4) {
                form.birthday.value = "Wednesday"
                return
        }
        if(x_nDayOfWeek == 5) {
                form.birthday.value = "Thursday"
                return
        }
        if(x_nDayOfWeek == 6) {
                form.birthday.value = "Friday"
                return
        }
        form.birthday.value = "Not a valid date."
}
//-->
</script>
<title>JavaFILE</title>
<base target="leftframe">
</head>
<body BGCOLOR="#ffffff" link="#CC0033" vlink="#333399" alink="#FF0000" <!--content start-->
<p align="center"><img src="http://www.javafile.com/images/banner.GIF"
alt="banner.GIF (2826 bytes)"></p>
<table WIDTH="96%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
  <tr>
    <td WIDTH="100%">Ever wonder what day you were born on? Well, you can find out with this
    neat little script. Simply type your bithdate in the algorithingie below, and it will tell
    ya'...honest!<font FACE="ARIEL,HELVETICA" SIZE="-1"><p align="center"></font>Author: <a
    href="Michael" >mailto:sparrow@erols.com">Michael Gudaitis</a>&nbsp;&nbsp; <a
    href="Download" >http://www.javafile.com/javascripts/clocks/calc3.zip">Download the Script</a><font
    FACE="ARIEL,HELVETICA" SIZE="-1"></p>
    <p>To use this algorithm, input your date of birth (MM/DD/YYYY), press &quot;ok&quot; and
    then <i>boom</i> the day of the week in which you were born on appears. </p>
    <form>
      <div align="center"><center><table WIDTH="225" BORDER="1" ALIGN="CENTER">
        <tr>
          <td WIDTH="250" COLSPAN="2" ALIGN="center" bgcolor="#0000FF"></font><font SIZE="-1"
          color="#FFFFFF" FACE="ARIEL,HELVETICA"><b>Zeller's Algorithm</b></font><font
          FACE="ARIEL,HELVETICA" SIZE="-1"></td>
        </tr>
        <tr>
          <td WIDTH="100" bgcolor="#FF0000"><font color="#FFFF00"><font SIZE="2"><b>Month:</b><input
          TYPE="Text" NAME="month" SIZE="4"><br>
          <br>
          <b>Day:</b><input TYPE="Text" NAME="day" SIZE="4"><br>
          <br>
          <b>Year:</b><input TYPE="Text" NAME="year" SIZE="4"></font> </font></td>
          <td WIDTH="125" ALIGN="center" bgcolor="#FF0000"><font color="#FFFF00"><br>
          <font SIZE="2"><b>Example:</b></font> <br>
          <font SIZE="2"><i><b>11-1-1970</b><br>
          <b>Sunday</b></i><br>
          <br>
          <b>Your were born on a</b></font> <br>
          <input TYPE="Text" NAME="birthday" SIZE="10"> </font></td>
        </tr>
        <tr>
          <td COLSPAN="2" ALIGN="center" bgcolor="#0000FF"><input TYPE="button" VALUE="OK"
          ONCLICK="cala_day(this.form)"><input TYPE="reset"></font></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
<!--content stop-->
</body>
</html>
 
 
 
 
 
 
 
 

 

 

tell a friend

 

<!-- Start Bravenet.com Service Code -->
<script language="javascript">
function p(){window.open('http://pub31.bravenet.com/announce/show.php?usernum=2616525944&cpv=2',
'bnettaf','width=525,height=570,top=10,left=150,toolbars=no,resizable=1');}
</script>
<div align="center"><a href="javascript: p();"><img title="Free Tell A Friend from Bravenet" alt="Free Tell A Friend from Bravenet" src="http://images.bravenet.com/cp/announce.gif" border="0" /></a>&nbsp;<a title="Free Tell A Friend from Bravenet" href="http://www.bravenet.com"><img src="http://images.bravenet.com/cp/bn-announce.gif"  alt="Free Tell A Friend from Bravenet" border="0"></a>
</div>
<!-- End Bravenet.com Service Code -->

 

 

 

 

utkoble markering

 

<script language="JavaScript1.2">

 

function disableselect(e){
return false
}

function reEnable(){
return true
}

// IE4+
document.onselectstart=new Function ("return false")

// NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>

 

 

 

ingen kopiering

 

 

<script type="text/javascript">
<!--
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
}
var text = "Beklager, men høyre klikk funksjonen er slått av.";
document.onmousedown = rtclickcheck
function rtclickcheck(keyp){
if (document.layers && keyp.which == 3) {
    alert(text);
    return false;}

if (document.all && event.button == 2) {
    alert(text);
    return false;}}
//-->
</script>

 

 

 

 

 

passord

 

<html>

<head><script language="javascript">

<!-- BEGIN Script 
// This script is copyright 1997... if there are problems, contact Jwegated   
// at jwegated@psynet.net of http://www.psynet.net/jwegated   
// where to go if wrong password...   
var wrong="http://www.javafile.com/javascripts/browsers/pass1.htm";   
// password...   
var password="SKRIV PASSORD HER";   
// prompts the user this...   
var name = prompt("WHAT is the password???","ka e passore");   
// if... else statement... right, confirm this, wrong, go to wrong...   
if (name == password) {(confirm("Welcome!"))}   
else {location.href=wrong}   
// END Script -->   
   
</script>

<title>JavaFILE</title>
<base target="leftframe">
</head>

<body BGCOLOR="#ffffff" link="#CC0033" vlink="#333399" alink="#FF0000" <!--content start-->

<p align="center"><img src="http://www.javafile.com/images/banner.GIF"
alt="banner.GIF (2826 bytes)"></p>

<table WIDTH="96%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
  <tr>
    <td WIDTH="100%">See if you can figure out &quot;what&quot; the password is...real tuff
    one huh :)&nbsp; In the source, you'll see where to type in the url for wrong
    answers...for the demo here, we just make you go in circles :)<font FACE="ARIEL,HELVETICA"
    SIZE="-1"><p align="center"></font><font size="3">Author: <font color="#000000"><a
    href="&nbsp;&nbsp;&nbsp'>http://www.psynet.net/jwegated">jwegated</a>&nbsp;&nbsp;&nbsp; <a
    href="http://www.javafile.com/javascripts/browsers/pass1.zip">Download the Script</a></font></font><font
    FACE="ARIEL,HELVETICA" SIZE="-1"></p>
    <p>Welcome to the password protected page! </font></td>
  </tr>
</table>
<!--content stop-->
</body>
</html>

 

 

JavaFILE

banner.GIF (2826 bytes)

See if you can figure out "what" the password is...real tuff one huh :)  In the source, you'll see where to type in the url for wrong answers...for the demo here, we just make you go in circles :)

Author: jwegated    Download the Script

Welcome to the password protected page!