[hunchentoot-devel] blinking hunchentoot logo
Patrick May
pjm at spe.com
Sun Nov 9 19:10:30 UTC 2008
Here's a quick hack to display a blinking logo. Put this JavaScript
in the head element of your page:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var blinkInterval = 5 * 1000; // five seconds
var blinkTime = 1 * 1000; // one second
var logoFile = "hunchentoot-logo.png";
var blinkImageFiles = new Array
("hunchentoot-logo-blink-1.png",
"hunchentoot-logo-blink-2.png",
"hunchentoot-logo-blink-3.png",
"hunchentoot-logo-blink-4.png");
var imageCount = blinkImageFiles.length;
function startBlink()
{
setInterval("blink()",blinkInterval);
}
function blink()
{
var index = Math.floor(imageCount * Math.random());
var imageFile = blinkImageFiles[index];
document["HunchentootLogo"].src = imageFile;
setTimeout("unBlink()",blinkTime);
}
function unBlink()
{
document["HunchentootLogo"].src = logoFile;
}
// End -->
</script>
Put a named image tag in the body of your page like this:
<img border="0" src="hunchentoot-logo.png" name="HunchentootLogo"/>
That's it. I've attached the images hacked from the Hunchentoot logo
on the website. Hopefully they'll get through the mail list
software. Now to modify this to use parenscript....
Regards,
Patrick
----
pjm at spe.com
S P Engineering, Inc.
Large scale, mission-critical, distributed OO systems design and
implementation.
(C++, Java, Common Lisp, Jini, middleware, SOA)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hunchentoot-logos.tar.gz
Type: application/x-gzip
Size: 5451 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20081109/807e167a/attachment.bin>
-------------- next part --------------
More information about the Tbnl-devel
mailing list