Monday, November 08, 2010 at 12:04 AM.


	<<Thu, 04 Mar 1999 03:04:25 GMT by AR
		<<config.mainresponder.urls is no longer referenced - we look at the page table instead
on cowSkullLink (linetext, msgnum) {
	local (picturelink = mainResponder.discuss.cowSkullImage ());
	local (pta = html.getPageTableAddress ());
	local (url = pta^.responderAttributes.urls^.discussMsgReader);
	local (htmltext = "", indentlevel = 0);
	on add (s) {
		htmltext = htmltext + string.filledString ("\t", indentlevel) + s + "\r"};
	add ("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"); indentlevel++;
	add ("<tr>"); indentlevel++;
	add ("<td>" + linetext + "</td>");
	add ("<td valign=\"top\" width=\"22\">" + "<a href=\"" + url + msgnum + "\">" + picturelink + "</a>" + "</td>");
	add ("</tr>"); indentlevel--;
	add ("</table>"); indentlevel--;
	return (htmltext)}
<<bundle //test code
	<<dialog.alert (cowSkullLink ("blah blah blah", 716))

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.