Monday, November 08, 2010 at 12:00 AM.
scripting2Suite.utilities.randomScriptingHeader.buildHomePageCallback
on buildHomePageCallback (adrdata) { <<Changes <<7/18/10; 8:48:13 PM by DW <<Test script for callbacks. Called before every home page build on scripting.com. local (adrtable = @scripting2Suite.utilities.randomScriptingHeader.graphics); local (adrsub = @adrtable^ [random (1, sizeof (adrtable^))]); local (img = "<img src=\"" + nameof (adrsub^) + "\" width=\"" + adrsub^.width + "\" height=\"" + adrsub^.height + "\" border=\"0\" alt=\"Header graphic for this weblog.\">"); wp.newtextobject (img, @adrdata^.prefs.headerImage); return (true)}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.