MacBook Air Gewinnspiel
 
Navigation
» Startseite
» Webhilfe-News
» Webhilfe-Board
» Gewinnspiele
» Geldverdienen
Downloads
» Eigene Scripts
» Programme
» Schriftarten
» Templates
» Grafiken
Tools & Codes
» HTML-Codes
» Generatoren
» Contentnapping
Script - Archiv
» PHP-Scripts
» Java-Scripts
» Perl-Scrips
» ASP-Scripts
» Hinzufügen
Tutorials
» HTML
» Photoshop
» PHP
» Sonstiges
» Eintragen
Anzeige
Service
» Counterservice
» Promotion
» PagerankCheck
» Grusskarten Service
» Büchertipps
Award
» Anmeldung
» Gewinner
Onlinegames
» Web:mafia
» Hangomat
Community
» Board
» Gästebuch
» Spenden
» Impressum
» Sitemap
» Kontakt
» Link Us
Pagerank Check
URL (mit http://)

 

ilch Text Manager
Menü: zurück zum Hauptmenü / Codeschnipsel eintragen / zurück
mit Hilfe eines Cookies werden Besucher auf eine bestimmt Webseite umgeleitet
Code
0:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var expDays = 30;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

var favorite = GetCookie('animal');

if (favorite != null) {
switch (favorite) {
case 'cat' :  url = 'coo2.html'; // change these!
       break;
case 'dog' :  url = 'coo2.html';
       break;
case 'gerbil' : url = 'coo2.html';
  break;
case 'gopher' : url = 'coo2.html';
  break;
}
window.location.href = url;
}
//  End -->
</script>

zwischen <BODY> und </BODY>
Die Verwendung des Formulars ist optional. Hier kann ein Besucher anklicken, auf welche Seite er zukünftig direkt umgeleitet werden möchte.

<center>
<form>
<table><tr><td>
Please choose your Favorite Pet:<br>
<input type=checkbox name="cat" onClick="SetCookie('animal', this.name, exp);">Cat<br>
<input type=checkbox name="dog" onClick="SetCookie('animal', this.name, exp);">Dog<br>
<input type=checkbox name="gerbil" onClick="SetCookie('animal', this.name, exp);">Gerbil<br>
<input type=checkbox name="gopher" onClick="SetCookie('animal', this.name, exp);">Gopher<br>
</td></tr>
</table>
</form>
</center>


Demo



Geschrieben von Freshmaker_01

zurück
  


Script © by ilch.de



Sie haben eine Frage? Wir helfen ihnen gerne in unserem Board!
Tipps

Partner
» Dreamcodes.com
» Webmaster-World.com
» RefTracker.de
» fun2000.de
» Spidanet.de
» webmaster-dlx.de
» wecone.de/


» Alle Partner (48)
» Partner werden
Tipps

Foren-Archiv
Statistik: Besucher gesamt: 784.050 Besucher heute: 329 Besucher gestern: 536 gerade online: 32 Copyright by Webhilfe.info  

http://www.dein-steckbrief.de - www.gewinnspielpage.de - www.butterbrotarchiv.de -