Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 |
<plugin name="soundinterface" url="plugins/soundinterface.swf"> <onloaded="garden.mp3" /> </plugin> <plugin name="playbutton" url="btn_star.jpg" onclick="playsound(garden.mp3);" /> <plugin name="stopbutton" url="btn_stop.jpg" onclick="stopsound(garden.mp3);" /> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<plugin name=soundinterface"
url="plugins/soundinterface.swf"
rootpath="sounds/"
/>
<hotspot name="s1" url="spot.png"
onclick="playsound(auto,tada.mp3);"
onover="playsound(auto,over.mp3);"
onout="playsound(auto,out.mp3);"
/>
<hotspot name="s2" url="spot.png"
onclick="stopallsounds();
loadpano(next.xml,null,MERGE,BLEND(1));
playsound(auto,newsound.mp3);"
/>
|
|
|
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 64 |
<plugin name="soundinterface" url="plugins/soundinterface.swf" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="0" alpha="1.00" blendmode="normal" smoothing="true" origin="" edge="" x="" y="" width="500" height="375" scale="1" onloaded="" onover="" onhover="" onout="" ondown="" onup="" onclick="" rootpath="" /> <plugin name="stopbutton" url="stop-sound.png" keep="false" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="0" alpha="1.00" blendmode="screen" smoothing="true" origin="bottom" edge="center" x="+210" y="40" width="" height="" scale="1" onloaded="" onover="set(blendmode,add);" onhover="showtext(Stop sound);" onout="set(blendmode,screen);" ondown="" onup="" onclick="stopsound(mymusik);" /> <plugin name="playbutton" url="play-sound.png" keep="false" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="0" alpha="1.00" blendmode="screen" smoothing="true" origin="bottom" edge="center" x="+160" y="40" width="" height="" scale="1" onloaded="" onover="set(blendmode,add);" onhover="showtext(Play sound);" onout="set(blendmode,screen);" ondown="" onup="" onclick="playsound(mymusik,chica.mp3);" /> |
|
|
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 |
<plugin name="bt2"
url="nav/sound.png"
alpha="0.85"
zorder="2"
origin="bottom"
edge="center"
y="30" x="-105"
visible="false"
onhover="showtext(Musique On);"
onclick="action(sound)" />
<plugin name="bt3"
url="nav/mute.png"
alpha="0.85"
zorder="2"
origin="bottom"
edge="center"
y="30" x="-105"
visible="true"
onhover="showtext(Musique Off);"
onclick="action(mute)" />
<action name="sound">
playsound(mymusik,chant.mp3,loops);
set(plugin[bt3].visible,true);
set(plugin[bt2].visible,false);
</action>
<action name="mute">
stopsound(mymusik);
set(plugin[bt3].visible,false);
set(plugin[bt2].visible,true);
</action>
|
Hi,Edit: One thing still puzzles me. Why is the soundinterface plugin 500 x 375px ? Is it meant to include its own buttons ?
)