-=:._ Java scripts _.:=-
¨¨¨¨¨¨¨¨¨¨¨
-=\Animeret smiley der blinker i titellinien:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
<script type="text/javascript" language="JavaScript1.1">
<!-- START
self.blur();
function smil(){
document.title = "
";
setTimeout("blink()",1000);
}
function blink(){
document.title = "
";
setTimeout("smil()",1000);
}
// SLUT -->
</script>
-=\Tilbageknap med eget pic:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
<a href="JavaScript:history.back();"><img src="dit billede" border="0" alt="Tilbage"></a>
-=\Gør til startside:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨
<a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('
http://www.din url.dk');"><img src="dit billede" border="0" alt="Gør til startside."></a>
-=\Føj til foretrukne:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
<a href="javascript:window.external.AddFavorite('
http://www.wdin url.dk',%20'din sides navn%20Online');"><img src="dit billede" border="0" alt="Bogmærk min side"></a>
-=\fremmadknap med eget pic:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
<a href="JavaScript:history.forward();"><img src="dit billede" border="0" alt="Frem"></a>
-=\shake the window (virker ikke i alle browerer):
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
<script language="JavaScript">
<!--
function shakeme(n) {
if (navigator.appName == "Netscape") {
n = 0
}
if (window.top.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
window.top.moveBy(0,i);
window.top.moveBy(i,0);
window.top.moveBy(0,-i);
window.top.moveBy(-i,0);
}
}
}
}
// -->
</script>
-=\shake the window 2:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
function shakeit(n) {
if (document.forms[0].elements[0].checked) {x=4; y=12;}
if (document.forms[0].elements[1].checked) {x=8; y=12;}
if (document.forms[0].elements[2].checked) {x=13; y=6;}
if (document.forms[0].elements[3].checked) {x=20; y=8;}
if (self.moveBy) {
for (i = x; i > 0; i--) {
for (j = y; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
}
// -->
</script>
<form>
<font face="Arial,Helvetica" size="2"><b>Choose from the Richter Scale</b></font><br>
<input type="radio" name="level" value="1" checked="True"><font face="Arial,Helvetica" size="2"> Strenght 1</font><br>
<input type="radio" name="level" value="2"><font face="Arial,Helvetica" size="2"> Strenght 3</font><br>
<input type="radio" name="level" value="3"><font face="Arial,helvetica" size="2"> Strenght 5</font><br>
<input type="radio" name="level" value="4"><font face="Arial,helvetica" size="2"> Strenght 7</font>
<input type=button onClick="shakeit(this.form);" value="Start Earthquake effect">
</font>
</form>
-=\Tekstmenu med submenuer:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
<SCRIPT LANGUAGE=javascript>
// max antal submenuer i menuer
constMaxItem=3
function fnDispThis(active)
{
for (i=1; i < constMaxItem+1; i++)
{
if (i!=active)
{
document.all("sub"+i).style.display="NONE"
}
else
{
document.all("sub"+active).style.display="BLOCK"
}
}
}
</SCRIPT>
<table BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td class="format" onclick="fnDispThis(1)" style="Cursor:HAND;"><B>menu1</B><br>
<DIV id="sub1" style="Display:'NONE';">
<A href="en eller anden URL">submenu1</a><br>
<A href="en eller anden URL">submenu2</a><br>
<A href="en eller anden URL">submenu3</a><br>
</DIV>
</td>
</tr>
<tr>
<td class="format" onclick="fnDispThis(2)" style="Cursor:HAND;"><B>menu2</B><br>
<DIV id="sub2" style="Display:'NONE';">
<A href="en eller anden URL">submenu4</a><br>
<A href="en eller anden URL">submenu5</a><br>
<A href="en eller anden URL">submenu6</a><br>
</DIV>
</td>
</tr>
<tr>
<td class="format" onclick="fnDispThis(3)" style="Cursor:HAND;"><B>menu3</B><br>
<DIV id="sub3" style="Display:'NONE';">
<A href="en eller anden URL">submenu7</a><br>
<A href="en eller anden URL">submenu8</a><br>
<A href="en eller anden URL">submenu9</a><br>
</DIV>
</td>
</tr>
</table>
-=\Print this page button:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
<SCRIPT Language="Javascript">
function printit(){
if (NS)
{
window.print() ;
}
else
{
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6, 2);
}
}
</script>
<SCRIPT Language="Javascript">
var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);
if (VERSION > 3) {
document.write('<form><input type=button value="Print this Page" name="Print" onClick="printit()"></form>');
}
</script>