Hi Stu,
I think I've done what your looking to do. Click the last scene in this tour to see the pop up image.
http://www.360photopro.com/media/lbj/
Here's the code.
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
<!-- moon walk image -->
<data name="moon-walk_html">
<html>
<img src="images/moon-walk.jpg" width="1000" height="632"/>
</html>
</data>
<action name="show_moon-walk_html">
set(plugin[moon_menu8].enabled,false);
set(plugin[moon-walk_html].alpha,0);
set(plugin[moon-walk_html].textblur,15);
set(plugin[moon-walk_html].blur,15);
set(plugin[moon-walk_html].visible,true);
set(plugin[moon-walk_html].enabled,true);
tween(plugin[moon-walk_html].alpha,1,0.3);
tween(plugin[moon-walk_html].textblur,0,0.3);
tween(plugin[moon-walk_html].blur,0,0.3);
</action>
<action name="hide_moon-walk_html">
set(plugin[moon-walk_html].enabled,false);
set(plugin[moon_menu8].enabled,true);
tween(plugin[moon-walk_html].alpha,0,0.3,null,set(plugin[moon-walk_html].visible,false));
tween(plugin[moon-walk_html].textblur,20,0.3);
tween(plugin[moon-walk_html].blur,20,0.3);
</action>
<plugin name="moon-walk_html"
url="%SWFPATH%/plugins/textfield.swf"
keep="true"
visible="false" enabled="false" handcursor="true" capture="true" children="false"
zorder="0"
alpha="0.00" blendmode="normal"
smoothing="true"
origin="center" edge=""
x="0" y="0"
width="1000" height="632"
scale="1"
onloaded=""
onover=""
onhover="showtext(Click to Close);"
onout=""
ondown=""
onup=""
onclick="action(hide_moon-walk_html);"
autosize="center"
background="true"
backgroundcolor="0x000000"
blur="20"
bordercolor="0"
borderwidth="0"
css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
glow="0"
glowcolor="16777215"
html="data:moon-walk_html"
roundedge="0"
selectable="true"
shadow="1"
textblur="20"
textglow="0"
textglowcolor="16777215"
textshadow="0"
/>
|
I can help you though email or Skype if you have any trouble getting it to work.
Phil
hi Phil, et al,
I've got this far with Phil's code:
www.360imagery.co.uk/VT/aerial/nottingham_high_school/v.2/
2 questions:
1. The border is missing on the right-hand edge of the photo when it pops up - as though the box is the wrong dimensions (image itself is 940x445 pixels) - how do I amend this? This is the original:
2. How do I convert the camera button, as per Phil's code example, into a floating hotspot within the panorama itself?
Here's the Hotspot code:
<!-- START hotspot image pop up -->
<data name="valley_road_html">
<html>
<img src="images/valley_road.jpg" width="940" height="455"/>
</html>
</data>
<action name="show_valley_road_html">
set(plugin[valley_road_hotspot].enabled,false);
set(plugin[valley_road_html].alpha,0);
set(plugin[valley_road_html].textblur,15);
set(plugin[valley_road_html].blur,15);
set(plugin[valley_road_html].visible,true);
set(plugin[valley_road_html].enabled,true);
tween(plugin[valley_road_html].alpha,1,0.3);
tween(plugin[valley_road_html].textblur,0,0.3);
tween(plugin[valley_road_html].blur,0,0.3);
</action>
<action name="hide_valley_road_html">
set(plugin[valley_road_html].enabled,false);
set(plugin[valley_road_hotspot].enabled,true);
tween(plugin[valley_road_html].alpha,0,0.3,null,set(plugin[valley_road_html].visible,false));
tween(plugin[valley_road_html].textblur,20,0.3);
tween(plugin[valley_road_html].blur,20,0.3);
</action>
<plugin name="valley_road_html"
url="%SWFPATH%/plugins/textfield.swf"
keep="true"
visible="false" enabled="false" handcursor="true" capture="true" children="false"
zorder="0"
alpha="0.00" blendmode="normal"
smoothing="true"
origin="center" edge=""
x="0" y="0"
width="940" height="445"
scale="1"
onloaded=""
onover=""
onhover="showtext(click to close,STYLE3);"
onout=""
ondown=""
onup=""
onclick="action(hide_valley_road_html);"
autosize="center"
background="false"
backgroundcolor="0x000000"
blur="20"
bordercolor="0"
borderwidth="0"
css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
glow="0"
glowcolor="16777215"
html="data:valley_road_html"
roundedge="0"
selectable="true"
shadow="1"
textblur="20"
textglow="0"
textglowcolor="16777215"
textshadow="0"
/>
<!-- END hotspot image pop up -->
<!-- START hotspot image pop up BUTTON -->
<plugin name="valley_road_button"
parent=""
url="images/valley_road_HS.png"
align="rightbottom"
zorder="1"
x="+50" y="80"
ox="" oy=""
width="48" height="49"
scale="1.00"
onover=""
onout=""
onhover="showtext(Valley Road Playing Fields photograph,STYLE3);"
onclick="action(show_valley_road_html);"
/>
<!-- END hotspot image pop up BUTTON -->
thanks
Stu