scriptwelt.org das JavaScript Archiv

Navigation
Startseite
Audio & Sound
Formulare
Cookies
Fenster & Frame
Grafik & Text
Navigation
Suche Scripts
Fun und Spiele
Buttons
Diverse
Tutorials

Kontakt
eine Mail an ScriptWelt.org
Webhosting
Tipps zur Providerwahl und zum Webspace

JavaScript in eine HTML Datei einbinden

Sind JavaScripts sicher?

Links zum Thema JavaSript

Impressum
impressum
Buttons / blinkender Button II

Hebt einen Button durch blinkende Schrift hervor. Leicht zu implementieren.
Autor: John Farquharson
zur Demo

in <head> einfügen

<script type="text/javascript">
<!--
//Written by John Farquharson twisepk@yahoo.com
//This script may be used freely provided this notice

var the_col = [ "#000000", "#AD4A18", "#FF0000", "#FF9C4A", "#FFFF10", "#52B552", "blue", "#730063", "#808080", "#FFFFFF" ];
var index = 0;
var the_timeout;
function glimMer(){
window.document.my_form.the_button.style.color = the_col[index];
if (index >= the_col.length){index = 0;}
index++;
the_timeout = setTimeout('glimMer();', 80);//glimmer color delay speed
}
//-->
</script>

<body> durch den Eventhandler <body onLoad="glimMer();"> ergänzen.

als Besispiel:

<form name = "my_form">
<input type="button" name="the_button" value="Start"
onClick="location.href='http://www.scriptwelt.org'">
</form>