Change font size
It is currently Mon May 27, 2019 2:02 am

Forum rules


Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Website Load on Click!
PostPosted: Tue Sep 09, 2008 3:19 am 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 843
to make this work you need to put the url in the description field of the prim like this:

make sure you leave the http:// off the URL in the description, then drop this script into the prim.

string site;
string onload_mess;
default {
    state_entry() {
        site = "http://"+llGetObjectDesc();//This makes the string "site" to what is after the =. To change the site change the objects description.
        onload_mess = "Would you like to go to\n"+site+" ?";//Thisis the message that is displayed when the llloadURL function is used.
        llSetText("Touch me to go to "+site,<0,0,1>, 1);///This creates the hovering text above it.
    touch_start(integer total_number) {//When the object is touch this event is called
        llLoadURL(llDetectedKey(0),onload_mess,site);//This makes the blue popup appear that has the option to go to the website
    changed(integer change) {//If the object has changed
        if(change & CHANGED_OWNER) {//If the object has changed its owner.
            llResetScript();//Reset script

 Post subject: Re: Website Load on Click!
PostPosted: Sat Sep 13, 2008 5:30 pm 
OSG Elite
User avatar

Joined: Thu Jul 31, 2008 2:48 am
Posts: 394
Thanx nebadon, been meaning to drop a prim to launch the in-viewer browser for some time, well, a few days since I drop on my own region :D
Thing is, I get a busy cursor that won't stop when I go to compile the script.
My Region-server log shows that the script compiles fine and I can close the prim editor and click on the prim and it works alright, am posting from the in-world viewer Media Browser. But still a good five minutes later the busy cursor. Gets annoying :?:
Do you or anyone know if this is another problem with the viewer [am using SL Official 1.19.1(4)] or is it some other miscommunication btwn Region and Viewer?

Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of