Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Free Nodelet Hack: Display a "fortune" stringby jdporter (Paladin) |
on Aug 14, 2006 at 17:03 UTC ( [id://567284]=note: print w/replies, xml ) | Need Help?? |
I love those funny quotes. I thought it would be cool to have one of them displayed on every PerlMonks page. So I came up with the following Free Nodelet Hack, which displays a string, chosen at random from a list. If you integrate this with your Free Nodelet, then each time a page is loaded one of the fortunes is displayed in the nodelet. (Actually, the <p id="fortune_p"></p> could be anywhere, such as in your Personal Nodelet.)
We're building the house of the future together.
In Section
Perl Monks Discussion
|
|