The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled Javascript Code
Posted by: Phil | January 8, 2011 @ 10:10am
Javascript Code
[
Download
]
function searchCookie(name) { if (document.cookie) { var KeksListe = document.cookie.split(';'); for (var i = 0; i < KeksListe.length; i++) { var Keksname = KeksListe[i].substring(0, KeksListe[i].search('=')); if (Keksname == name) { return (Keksliste[i]); } else { return null; } } } else alert("Es wurden keine Cookies gefunden"); } function readCookie() { var name = prompt("Name des zu suchenden Cookies", ""); if (name != "") { var cookie = searchCookie(name); if (cookie != "") { var Keksname = cookie.substring(0, cookie.search('=')); var Kekswert = cookie.substring(cookie.search('=') + 1, cookie.length); alert("Keks gefunden \n" + "Er hat den Namen : " + Keksname + "\n" + "Er hat den Wert : " + Kekswert); } else alert("Keks konnte nicht gefunden werden!"); } }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.44 / 8
75 Votes
http://codebin.yi.org/1044
page generated in 0.01 seconds