Hi,
Does anybody knows if it could be possible to define a dinamic url in the style ?
I know it can be done when I don't even generate the layers, by using an action with a for that creates the layers and define the attributes, but I just want to set up the url atrribute in the style :
Code
<layer name="thumb_room1" x="015" y="063" style="thumb" />
<style name="thumb" keep="true" align="topleft" width="64" height="64"
url="if(name,
subtxt(thumb_name,name,6,50);
txtadd(thumb_url ,'%HTMLPATH%/panos/', get(thumb_name),'.tiles/thumb.jpg');
copy(layer[get(name)].url, thumb_url);
);"
onclick="if(name,
subtxt(scene_name,name,6,50);
txtadd(linkedscene ,'scene_', get(scene_name));
loadscene(get(linkedscene),null,MERGE,BLEND(1)););
if(hview,lookat(get(hview),get(vview),get(fovview)),
lookat(get(view.hlookat),get(view.vlookat),get(view.fov)););
"
onover="
if(name,
subtxt(scene_name,name,6,30);
txtadd(linkedscene ,'scene_', get(scene_name));
copy(layer[tooltip_buts].html, scene[get(linkedscene)].title);
set(layer[tooltip_buts].visible, true);
tween(layer[tooltip_buts].alpha, 1.0, 0.5);
asyncloop(hovering, copy(layer[tooltip_buts].x,mouse.stagex); copy(layer[tooltip_buts].y,mouse.stagey););
);
"
onout="tween(layer[tooltip_buts].alpha, 0.0, 0.25, default, set(layer[tooltip_buts].visible,false), copy(layer[tooltip_buts].x,mouse.stagex); copy(layer[tooltip_buts].y,mouse.stagey); );"
/>
Alles anzeigen