WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Internet

Internet Rat & Tat bei Internetproblemen

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 09.12.2002, 07:06   #11
Dr. Mabuse
Elite
 
Registriert seit: 23.03.2000
Alter: 64
Beiträge: 1.058


Standard

Wegen

Code:
function chkc(){
var o=new Date();

var url1 = "1/info.html";
var url2 = "2/info.html";
var url3 = "3/info.html";
var url4 = "4/info.html";
var url5 = "5/info.html";
var url6 = "6/info.html";
var url7 = "7/info.html";

   o.setDate(o.getDate()+30);

   if (document.cookie.indexOf("tip=1") != -1){
	   document.cookie="tip=2;expires="+o.toUTCString();
	   return url2;
   }else{
	   if (document.cookie.indexOf("tip=2") != -1){
		   document.cookie="tip=3;expires="+o.toUTCString();
		   return url3;
	   }else{
		   if (document.cookie.indexOf("tip=3") != -1){
			   document.cookie="tip=4;expires="+o.toUTCString();
			   return url4;
		   }else{
			   if (document.cookie.indexOf("tip=4") != -1){
				   document.cookie="tip=5;expires="+o.toUTCString();
				   return url5;
			   }else{
				   if (document.cookie.indexOf("tip=5") != -1){
					   document.cookie="tip=6;expires="+o.toUTCString();
					   return url6;
				   }else{
					   if (document.cookie.indexOf("tip=6") != -1){
						   document.cookie="tip=7;expires="+o.toUTCString();
						   return url7;
					   }else{				   
						document.cookie="tip=1;expires="+o.toUTCString();
						return url1;
					   }
				   }
			   }
		   }
	   }
   }
   }

bver=navigator.appVersion.split(";");

function totdstart(urlto){
	if(bver[1].match("5.")){
		rtip=window.showModalDialog(''+urlto,null,"dialogWidth:430px;dialogHeight:280px;center:1;scroll:0;help:0;status:0");
	}
	else{
		rtip=window.showModalDialog(''+urlto,null,"dialogWidth:430px;dialogHeight:300px;center:1;scroll:0;help:0");
	}
}

	function totdinit(a){
		if (document.all){
			totdstart(a);
		}
		else
		{
			document.body.insertAdjacentHTML('beforeEnd','<Div Id="etotd" style="width:140;position:absolute;top:0;left:0;BACKGROUND-COLOR:#B71717;BORDER-BOTTOM:#5C0000 solid 2px;BORDER-LEFT:#FE5E5E solid 2px;BORDER-RIGHT:#5C0000 solid 2px;BORDER-TOP:#FE5E5E solid 2px;font-family:Arial;font-size:8pt;font-weight:bold;text-align:center;padding-top:2px;padding-bottom:2px;color:#FFFFFF;cursor:default" onclick="enable()" onmouseover="mover()" onmouseout="mout()">Enable Tip of the Day</Div>');
		}

	function enable(){
		etotd.innerHTML="Tip of the Day enabled"; setTimeout('etotd.style.visibility="hidden";totdstart()',1000);
	}

	function mover(a){
		etotd.style.borderLeftColor="#5C0000"; etotd.style.borderRightColor="#FE5E5E"; etotd.style.borderBottomColor="#FE5E5E";
		etotd.style.borderTopColor="#5C0000"; etotd.style.paddingLeft="1px"; etotd.style.paddingTop="3px";
	}

	function mout(){
		etotd.style.borderLeftColor="#FE5E5E"; etotd.style.borderRightColor="#5C0000"; etotd.style.borderBottomColor="#5C0000";
		etotd.style.borderTopColor="#FE5E5E"; etotd.style.paddingLeft="0px"; etotd.style.paddingTop="2px";
	}
}

function open1of7(){
	totdinit(chkc()); t=setTimeout("self.close()",5000);
}
Dr. Mabuse ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 16:20 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag