Jeg har samlet lidt forskælligt javascript, gennem tiden og nu har jeg valgt et dele det med jer. tag et kig og se om der er noget i kan bruge.
-=ADD Favorite=-
javascript:window.external.AddFavorite('
http://www.gratis-ting.dk/index.html',%20'Gratis-Ting.dk%20-%20Kik%20forbi!')
-=Close button=-
Button link: <form><input TYPE="button" VALUE="Close Window" onClick="window.close()"></form>
<BR>
Text link: <a href="javascript:window.close()"><B>CLOSE WINDOW</B></a>
<BR>
Image link: <a href="javascript:window.close()"><IMG SRC="closeme.gif" BORDER=0 ALT="CLOSE ME"></a>
-=PassWord=-
<script language="javascript">
<!--Beginning of JavaScript
function password() {
Ret=prompt('You need a password to enter this page',"The password is: password. Try some wrong entries first.")
if(Ret=="password") {
} else {
alert('Wrong Password. Try Again.')
location = "javascript:password()"
}
}
// End of JavaScript-->
</script>
</head><BODY
onLoad="password(); return true;">
-=Auto close=-
<!-- This goes in your body tag -->
<body onLoad="setTimeout(window.close, 3000)">
<!-- Change the number, 3000 = 3 seconds -->
-=Load leveing=-
<!-- This goes in your body tag -->
<body onUnload="window.open('hello.htm', 'newWindow', 'scrollbars=0,resizable=0,height=120,width=170')">
-=Auto load=-
<meta http-equiv="REFRESH" content="5; url=
http://lorte.net">
ikke højre klik:
<script language="JavaScript">
function click() {
if ((event.button==2) & (navigator.appName=="Microsoft Internet Explorer")) {
alert('Hjemmesiden er copyright MIG') } }
document.onmousedown=click
</script>
-=link ikke understreget=-
<a href="links/dokument2.htm" style="text-decoration:none">Dette er et link</a>