cs: Javas!

Beitrag lesen

1. Script (Auswahl) :

var gameMode = 3;                 // 1: all alone, 2: human vs. human, 3: computer vs. human, 4: computer vs. computer
var gameScore = 15;               // maximum score
var gameSpeed = 30;               // speed: 1 - 60 (higher values = slower)
var gameSound = true;             // sound: true = on, false = off
var gameWidth = 400;              // game width (pixels)
var gameHeight = 250;             // game height (pixels)
var gameBorderWidth = 2;          // game border width (pixels)
var gameBorderStyle = "solid";    // game border style ("solid", "dashed", "dotted")
var gameBorderColor = "#FFFFFF";  // game border color

var compHandicap = 2;             // computer handicap: 0 - 4 (higher values = less skilled)

var areaColor = "#000064";        // game area color
var barColor = "#5A7FCA";         // bar color
var ballColor = "#FFFFFF";        // ball color
var boxColor = "#000064";         // dialog-box color

2. Script:

var tx = new Array ("Sylvie", "ich", "liebe", "Dich!");
var txcount=4;

var i=1;
var wo=0;
var ud=1;
function animatetitle()
{
window.document.title=tx[wo].substr(0, i)+"_";
if (ud==0) i--;
if (ud==1) i++;
if (i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (i==tx[wo].length+10) {ud=0;i=tx[wo].length;}
// if (window.document.title.length < 20 ) window.document.title=window.document.title+"-";
// if (window.document.title.length == 20 ) window.document.title=window.document.title+"]";
// if (window.document.title.length == 21 ) setTimeout("window.document.title='Animierter Seitentitel '; ",1000);

parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("animatetitle()",100);
}

Der Erste ist viel zu lang, um es zu posten. Wenn es trotzdem nötig sein soll, würde ich es auch machen (aber anders)!

mfg