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


on siteInButton (rect, buttonname, buttontext, webaddress) {
	local (atts);
	cardEditor.newObject (card.types.buttonType, buttonname, buttontext, webaddress);
	cardEditor.getObjectAttributes (buttonname, @atts);
	atts.rect = rect;
	atts.lang = 'NURL';
	atts.enab = true;
	atts.flag = false; <<it's not the default button
	atts.font = "geneva";
	atts.size = 9;
	atts.styl = 0;
	atts.fram = false;
	atts.just = 1;
	atts.sdwd = 0;
	atts.tran = false;
	atts.visi = true;
	cardEditor.setObjectAttributes (buttonname, @atts)}

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.