[
b]Hier habe ich einen Vor-Button[/b]
<a href="javascript:history.forward()"onMouseOver="window.status='Vorwärts';return true;" onMouseOut="window.status=''">Vor</a>
Hier hebe ich einen Zurück-Button
<a href="javascript:history.back()"onMouseOver="window.status='Zurück';return true;" onMouseOut="window.status=''">Zurrück</a>
Hier siehst du Dein Text in der Statuszeile<SCRIPT LANGUAGE="JavaScript">
<!--
window.status="HIER EUREN TEXT REINSCHREIBEN"
// -->
</SCRIPT>
Hier Zeigt die Uhrzeit in einem Kasten an
<script language="JavaScript">
//<!--
var datum = new Date()
var std = datum.getHours()
function Uhr_anzeigen()
{
var Datum = new Date()
var std = Datum.getHours()
var min = Datum.getMinutes()
var sec = Datum.getSeconds()
Zeit = ((std < 10) ? " 0" : " ") + std
Zeit += ((min < 10) ? ":0" : ":") + min
Zeit += ((sec < 10) ? ":0" : ":") + sec
Zeit += " Uhr"
document.uhr.zeit.value = Zeit
timerid = setTimeout("Uhr_anzeigen()",1000)
}
//-->
</script>
<form NAME="uhr">
<b><p><input TYPE="text" NAME="zeit" SIZE="10" VALUE></p>
</b>
</form>
<script LANGUAGE="JavaScript">
//<!--
Uhr_anzeigen();
//-->
</script>
Scrollbar wechselt ständig die Farbe
<html>
<body bgcolor=#000000 text=#ffffff link=#ccff88 vlink=ccff88 alink=#ccff88>
<script>
// (C) 2000 by CodeLifter.com
//
http://www.codelifter.com
// Free for all users, but leave in this header
// blink speed in miliseconds
var rate = 333;
// true to start automatically, else false
var DoIt = true
// the three blink colors
var Color1 = "#FF0000"
var Color2 = "#00FF00"
var Color3 = "#0000FF"
// the color if/when turned off
var ColorX = "#C0C0C0"
var i = 0;
function doTriStateRainbow(){
if (document.all){
if (DoIt){
i++;
if (i==1) C = Color1
if (i==2) C = Color2
if (i==3) C = Color3
document.body.style.scrollbarBaseColor = C
if (i>2) i=0;
timer=setTimeout('doTriStateRainbow()', rate)
}else{
document.body.style.scrollbarBaseColor = ColorX
}
}
}
</script>
<body onload="doTriStateRainbow()">
Blinkende Scroll-Leiste aus und an schalten<BR>
<a href="#" onClick="DoIt=false">AUS</a> / <a href="#" onClick="DoIt=true;doTriStateRainbow()">AN</a>
<BR>
</body></html>
Maus zeigt immer in die Richtung
<SCRIPT LANGUAGE="JavaScript">
<!-- Dieses Script wurde erhalten bei
www.mauscodes.de -->
<!-- Begin
var x, y, xold, yold, xdiff, ydiff;
var dir = Array();
dir[0] = "n-resize";
dir[1]="ne-resize";
dir[2]="e-resize";
dir[3]="se-resize";
dir[4] = "s-resize";
dir[5]="sw-resize";
dir[6]="w-resize";
dir[7]="nw-resize";
document.onmousemove = FindXY;
function display(direction) {
document.body.style.cursor = dir[direction];
}
function FindXY(loc) {
x = (document.layers) ? loc.pageX : event.clientX;
y = (document.layers) ? loc.pageY : event.clientY;
xdiff = x - xold;
ydiff = y - yold
if ((xdiff < 2) && (ydiff < -2)) display(0);
if ((xdiff < 2) && (ydiff > 2)) display(4);
if ((xdiff > 2) && (ydiff < 2)) display(2);
if ((xdiff < -2) && (ydiff < 2)) display(6);
if ((xdiff > 2) && (ydiff > 2)) display(3);
if ((xdiff > 2) && (ydiff < -2)) display(1);
if ((xdiff < -2) && (ydiff > 2)) display(5);
if ((xdiff < -2) && (ydiff < -2)) display(7);
xold = x;
yold = y;
}
// End -->
</script>
Mehr folgen noch.
http://www.redpad.de.tl