// Example to show how a basic HTML page can be read // from a notecard and then displayed on the face of a prim. // // Will also request a tinyurl to give to users on touch // - useful for non-viewer 2.0 clients - they can still // see the data/page but in an external browser instead. // // Kimm Paulino, Jan 2011 // Note that the HTML can only be 1024 characters long - no more! integer HTML_FACE_DISPLAY = 2; // See http://wiki.secondlife.com/wiki/Face string HTML_DEFAULT = "HTML on a Prim Example
Kimm Paulino, Jan 2011
"; // Used when processing notecard-based questions only string HTML_NOTECARD_NAME="htmlpage"; key gNCQueryId; integer gNCLine; string gHtmlPage=""; string gTinyUrl = ""; key gUrlReqId; check_notecards() { integer nccount = llGetInventoryNumber (INVENTORY_NOTECARD); integer i; string htmlnote; gHtmlPage = ""; for (i=0 ; i