topical media & game development
basic-ajax-04-ImageLoader.js / js
function createImage()
{
var bookid = document.getElementById("ISBN").innerHTML;
var img = document.getElementById("secret");
img.src = "relayInformation.php?bookid=" + bookid;
img.width = 0;
img.height = 0;
}
function showCookie()
{
var cookie = getCookieInfo("AnonymousID");
alert(cookie);
}
function getCookieInfo(cookie)
{
RegularXp = "(?:; )?" + cookie + "=([^;]*);?";
var RegularXpExtract = new RegExp(RegularXp);
if (RegularXpExtract.test(document.cookie))
{
return decodeURIComponent(RegExp["$1"]);
}
else
{
return null;
}
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.