Color Changer

5 Feb

<HTML>
<HEAD><META NAME=”GENERATOR” CONTENT=”Demo Change Color page”/>
<title>Doorpage</title>

<SCRIPT language=JavaScript src=”/viva.tv/global.js”></SCRIPT>

<script language=”JavaScript”>
<!–

this.name=”VIVA”;

aktuelle_uhr = 2;

function ImgUpdate()
{
rand = “”+Math.random();
document[“live”].src = “/cgi-bin/WebObjects/TVShow.woa/wa/resource?name=image_home&showType=TV&rand=”+rand;
document[“web”].src = “/cgi-bin/WebObjects/TVShow.woa/wa/resource?name=image_home&showType=WEB&rand=”+rand;
document[“welt”].src = “/cgi-bin/WebObjects/TVShow.woa/wa/resource?name=image_home&showType=WELT&rand=”+rand;
}

function anpassen(bgcolor, uhr)
{
document.bgColor = bgcolor;
ZeitLoeschen();
aktuelle_uhr = uhr;
ZeitAnzeigen();
}

function ZeitLoeschen()
{
if(document.all) {
if (aktuelle_uhr == 1)
document.all.MicrosoftUhr1.innerHTML = “”;
else if (aktuelle_uhr == 2)
document.all.MicrosoftUhr2.innerHTML = “”;
else
document.all.MicrosoftUhr3.innerHTML = “”;
} else if(document.layers)
{
Gesamt = ‘<span> </span>’;
if (aktuelle_uhr == 1) {
document.NetscapeUhr1.document.open();
document.NetscapeUhr1.document.write(Gesamt);
document.NetscapeUhr1.document.close();
} else if (aktuelle_uhr == 2) {
document.NetscapeUhr2.document.open();
document.NetscapeUhr2.document.write(Gesamt);
document.NetscapeUhr2.document.close();
} else {
document.NetscapeUhr3.document.open();
document.NetscapeUhr3.document.write(Gesamt);
document.NetscapeUhr3.document.close();
}
}
}

function ZeitAnzeigen()
{
var Jetzt = new Date();
var Stunden = Jetzt.getHours();
var Minuten = Jetzt.getMinutes();
var Sekunden = Jetzt.getSeconds();
var Vorstd = ((Stunden < 10) ? “0” : “”);
var Vormin = ((Minuten < 10) ? “0” : “”);
var Dot = ((Sekunden % 2 == 0) ? “:” : ” “);
var Uhrzeit = Vorstd + Stunden + Dot + Vormin + Minuten;
var Gesamt = “[ ” + Uhrzeit + ” h ]”;
if(document.all) {
if (aktuelle_uhr == 1)
document.all.MicrosoftUhr1.innerHTML = Gesamt;
else if (aktuelle_uhr == 2)
document.all.MicrosoftUhr2.innerHTML = Gesamt;
else
document.all.MicrosoftUhr3.innerHTML = Gesamt;
} else if(document.layers)
{
if (aktuelle_uhr == 1) {
document.NetscapeUhr1.document.open();
Gesamt = ‘<font color=”#FFFF00″ SIZE=4 FACE=”ARIAL”>’ + Gesamt + ‘</FONT>’;
document.NetscapeUhr1.document.write(Gesamt);
document.NetscapeUhr1.document.close();
} else if (aktuelle_uhr == 2) {
document.NetscapeUhr2.document.open();
Gesamt = ‘<font color=”#0166FF” SIZE=4 FACE=”ARIAL”>’ + Gesamt + ‘</FONT>’;
document.NetscapeUhr2.document.write(Gesamt);
document.NetscapeUhr2.document.close();
} else {
document.NetscapeUhr3.document.open();
Gesamt = ‘<font color=”#FE0000″ SIZE=4 FACE=”ARIAL”>’ + Gesamt + ‘</FONT>’;
document.NetscapeUhr3.document.write(Gesamt);
document.NetscapeUhr3.document.close();
}
}
}
// –>
</script>

</HEAD>
<BODY bgcolor=”#FFFF00″ leftmargin=”0″ marginheight=”0″ marginwidth=”0″ topmargin=”0″>

<table width=750 height=450 cellspacing=0 cellpassing=0 border=0>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td><a href=”/1.htm” onmouseover=”anpassen(‘#FE0000’,1)”><img name=”one” src=”/pic1.jpg” border=0 width=200 height=171></a></td>
<td></td>
<td><a href=”/2.htm” onmouseover=”anpassen(‘#FFFF00’,2)”><img name=”two” src=”/pic2.jpg” border=0 width=200 height=171></a></td>
<td></td>
<td><a href=”/3.htm” onmouseover=”anpassen(‘#0166FF’,3)”><img name=”three” src=”/pic3.jpg” border=0 width=200 height=171></a></td>
<td></td>
</tr>

</table>

<script language=”JavaScript”>
<!–
window.setInterval(“ZeitAnzeigen()”,1000);
window.setInterval(“ImgUpdate()”,600000);
// –>
</script>
<script>
printIVW(“/HTML_Homepage”,”” );
</script>
<noscript>
<img height=”0″ src=”/cgi-bin/ivw/CP/HTML_Homepage” width=”0″>
</noscript>
</BODY>
</HTML>

Demo:
color-changer.txt

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: