I am using a free SL script that reads urls from a notecard. When the owner clicks the prim it gives the possibility to change the url. When anyone else clicks it, it should open the link. string card="bookmarks";
integer i=0;
integer pointer=0;
list URLs; //list your URL's in a notecard named "bookmarks"
list Hover;
key owner;
integer listenID;
default
{
state_entry()
{
llSetText("Loading bookmarks", <1,1,1>, 1.0);
llGetNotecardLine(card, i);
owner=llGetOwner();
}
touch_start(integer times)
{
key who=llDetectedKey(0);
if(who==owner)
{
llDialog(owner, "Open URL or select new target?", ["Open", "Prev", "Next"], 1001);
listenID=llListen(1001, "", owner, "");
} else {
llLoadURL(llDetectedKey(0), "Load "+llList2String(Hover, pointer), llList2String(URLs, pointer));
}
}
dataserver(key query, string data)
{
if(data!=EOF)
{
list temp=llCSV2List(data);
Hover+=llList2String(temp, 0);
URLs+=llList2String(temp, 1);
i++;
llGetNotecardLine(card, i);
} else {
llSetText(llList2String(Hover, pointer), <1,1,1>, 1.0);
}
}
listen(integer channel, string name, key ID, string message)
{
llSetTimerEvent(60);
if(message=="Open")
{
llLoadURL(llGetOwner(), "Load "+llList2String(Hover, pointer), llList2String(URLs, pointer));
} else if(message=="Prev")
{
pointer++;
if(pointer==llGetListLength(Hover))
{
pointer=0;
}
} else if(message=="Next")
{
pointer--;
if(pointer<0)
{
pointer=llGetListLength(Hover);
pointer--;
}
}
llSetText(llList2String(Hover, pointer), <1,1,1>, 1.0);
llListenRemove(listenID);
}
changed(integer change)
{
if(change && CHANGED_INVENTORY)
{
llResetScript();
}
}
timer()
{
llListenRemove(listenID);
}
} 1 questions: for some reason the dialog for opening says : Load web page ?, followed by Load http://etc.com – the Go to page doesn’t open any webpage, only if you click the link it will open the site. How do I get this Go to page working?