|
|
Quellcode |
1 2 3 4 5 6 |
Der Schwibbogenherd war das Zentrum des Bauernhauses. [p][/p]Der Rauch zog durch Diele und Dachboden [p][/p]und gelangte durch die "Uhlenlöker" am Giebel ins Freie. [p][/p]Dem Rauch ausgesetzte Fleischwaren wurden gut durchräuchert, [p][/p]die eingebrachte Ernte auf dem Boden getrocknet [p][/p]und der Holzwurm aus dem Gebälk vertrieben. |
Benutzerinformationen überspringen
Wohnort: Berlin
Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )
|
|
Quellcode |
1 2 |
text='Test "Test" test' onhover="showtext(get(text));" |
|
|
Quellcode |
1 |
onhover="showtext('Der Schwibbogenherd war das Zentrum des Bauernhauses. [p][/p]Der Rauch zog durch Diele und Dachboden [p][/p]und gelangte durch die Uhlenlöker [p][/p]am Giebel ins Freie. [p][/p]Dem Rauch ausgesetzte Fleischwaren [p][/p]wurden gut durchräuchert, die eingebrachte Ernte auf dem Boden getrocknet [p][/p]und der Holzwurm aus dem Gebälk vertrieben.',STYLE3,);"
|
Welches 'das' funktioniert nicht?Danke, aber das funktioniert leider so nicht:
Hier bitte:Kannst Du bitte meinen Text so hier posten, dass es funktioniert? Auch die im Text stehenden Anführungszeichen?
|
|
Quellcode |
1 2 3 4 5 6 |
onhover="showtext('Der Schwibbogenherd war das Zentrum des Bauernhauses.
[p][/p]Der Rauch zog durch Diele und Dachboden
[p][/p]und gelangte durch die "Uhlenlöker" am Giebel ins Freie.
[p][/p]Dem Rauch ausgesetzte Fleischwaren wurden gut durchräuchert,
[p][/p]die eingebrachte Ernte auf dem Boden getrocknet
[p][/p]und der Holzwurm aus dem Gebälk vertrieben.', STYLE3);"
|
Benutzerinformationen überspringen
Wohnort: Berlin
Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »toosten« (1. November 2016, 13:10)
Das escapen von Steuerzeichen funktioniert auch:
![]()
Quellcode
1onhover="showtext('Der Schwibbogenherd war das Zentrum des Bauernhauses. [p][/p]Der Rauch zog durch Diele und Dachboden [p][/p]und gelangte durch die Uhlenlöker [p][/p]am Giebel ins Freie. [p][/p]Dem Rauch ausgesetzte Fleischwaren [p][/p]wurden gut durchräuchert, die eingebrachte Ernte auf dem Boden getrocknet [p][/p]und der Holzwurm aus dem Gebälk vertrieben.',STYLE3);"
Benutzerinformationen überspringen
Wohnort: Berlin
Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )
Benutzerinformationen überspringen
Wohnort: Berlin
Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )
Zitat
Ersetzen Sie das Zeichen " durch die Zeichenfolge "
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »panox« (1. November 2016, 13:34)
Benutzerinformationen überspringen
Wohnort: Berlin
Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )
|
|
Quellcode |
1 |
onhover="showlog(); trace('Der Schwibbogenherd war das Zentrum des Bauernhauses. [p][/p]Der Rauch zog durch Diele und Dachboden [p][/p]und gelangte durch die "Uhlenlöker" [p][/p]am Giebel ins Freie. [p][/p]Dem Rauch ausgesetzte Fleischwaren [p][/p]wurden gut durchräuchert, die eingebrachte Ernte auf dem Boden getrocknet [p][/p]und der Holzwurm aus dem Gebälk vertrieben.',STYLE3);">
|
|
|
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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 |
<krpano version="1.19" title="Heimatmuseum Bargteheide-Raum Hauswirtschaft">
<include url="skin/vtourskin.xml" />
<include url="%SWFPATH%/plugins/showtext.xml" />
<plugin name="editor" url="%SWFPATH%/plugins/editor.swf" keep="true"></plugin>
<hotspot name="nadirlogo" keep="true" url="skin/logo.png" ath="0" atv="90" distorted="true" alpha="0.5" scale="0.5" rotate="15.0" enabled="false"></hotspot>
<events name="nadirlogo_automatic_rotation" keep="true" onviewchange="copy(hotspot[nadirlogo].rotate, view.hlookat);"></events>
<!-- <plugin name="options" url="%SWFPATH%/plugins/options.swf" keep="true" view="true" display="true" control="false" image="true" onloaded="open();"></plugin>
<plugin name="editor" url="%SWFPATH%/plugins/editor.swf" keep="true"></plugin> <plugin name="options" url="%SWFPATH%/plugins/options.swf" keep="true" view="true" display="true" control="false" image="true" onloaded="open();"></plugin>
-->
<!-- customize skin settings: maps, gyro, webvr, thumbnails, tooltips, layout, design, ... -->
<skin_settings maps="false"
maps_type="google"
maps_bing_api_key=""
maps_google_api_key=""
maps_zoombuttons="false"
gyro="true"
webvr="true"
webvr_gyro_keeplookingdirection="false"
littleplanetintro="false"
title="true"
thumbs="true"
thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
thumbs_opened="false"
thumbs_text="false"
thumbs_dragging="true"
thumbs_onhoverscrolling="false"
thumbs_scrollbuttons="false"
thumbs_scrollindicator="false"
thumbs_loop="false"
tooltips_buttons="false"
tooltips_thumbs="true"
tooltips_hotspots="true"
tooltips_mapspots="false"
deeplinking="false"
loadscene_flags="MERGE"
loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
loadscene_blend_next="SLIDEBLEND(0.5, 0, 0.75, linear)"
loadingtext="loading..."
layout_width="100%"
layout_maxwidth="814"
controlbar_width="-24"
controlbar_height="40"
controlbar_offset="20"
controlbar_offset_closed="-40"
controlbar_overlap.no-fractionalscaling="10"
controlbar_overlap.fractionalscaling="0"
design_skin_images="vtourskin.png"
design_bgcolor="0x2D3E50"
design_bgalpha="0.8"
design_bgborder="0"
design_bgroundedge="1"
design_bgshadow="0 4 10 0x000000 0.3"
design_thumbborder_bgborder="3 0xFFFFFF 1.0"
design_thumbborder_padding="2"
design_thumbborder_bgroundedge="0"
design_text_css="color:#FFFFFF; font-family:Arial;"
design_text_shadow="1"
/>
<!--
For an alternative skin design either change the <skin_settings> values
from above or optionally include one of the predefined designs from below.
-->
<!-- <include url="skin/vtourskin_design_flat_light.xml" /> -->
<!-- <include url="skin/vtourskin_design_glass.xml" /> -->
<!-- <include url="skin/vtourskin_design_ultra_light.xml" /> -->
<!-- <include url="skin/vtourskin_design_117.xml" /> -->
<!-- <include url="skin/vtourskin_design_117round.xml" /> -->
<!-- <include url="skin/vtourskin_design_black.xml" /> -->
<!-- startup action - load the first scene -->
<action name="startup" autorun="onstart">
if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
loadscene(get(startscene), null, MERGE);
if(startactions !== null, startactions() );
</action>
<events onloadcomplete="init" />
<action name="init">
set(showtext, action(showtext_panox,'%%1','%%2') );
set(verbergen, false);
</action>
<action name="showtext_panox">
if( verbergen,
,
showtext_xml( %1, %2);
);
</action>
<action name="change_verbergen">
switch( verbergen);
if( verbergen,
copy( url, url_show);
,
copy( url, url_hide);
);
</action>
<scene name="scene_3_Hauswirtschaft" title="Hauswirtschaft" onstart="" havevrimage="true" thumburl="panos/3_Hauswirtschaft.tiles/thumb.jpg" lat="" lng="" heading="">
<layer name="skin_btn_info" style="skin_glow" url="info.png" align="bottom" x="-420" y="19" scale="0.50" onclick="change_verbergen();" url_show="info.png" url_hide="info.png" />
<view hlookat="22.948" vlookat="0.724" fovtype="MFOV" fov="108.762" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<style name="hotspot_ani_white" url="%SWFPATH%/hotspot_ani_white_64x64x20.png" crop="0|0|64|64" framewidth="64" frameheight="64" frame="0" lastframe="19" onloaded="hotspot_animate();"></style>
<!-- hotspot animation action -->
<action name="hotspot_animate">
inc(frame,1,get(lastframe),0);
mul(ypos,frame,frameheight);
txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight));
delayedcall(0.0333, if(loaded, hotspot_animate() ) );
</action>
<!-- disable zooming by shift and control keys (to avoid zooming when using crtl+c or command+c to copy the hotspot text) -->
<control keycodesin="" keycodesout=""></control>
<!-- textfield with information about the currently dragged hotspot -->
<plugin name="hotspotinfo" url="%SWFPATH%/plugins/textfield.swf" html="" css="font-family:Courier;" borderwidth="0" align="left" width="200" height="80"></plugin>
<!-- the action for dragging the hotspot - call it once in the ondown event -->
<action name="draghotspot">
<![CDATA[
if(%1 != dragging,
spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery);
sub(drag_adjustx, mouse.stagex, hotspotcenterx);
sub(drag_adjusty, mouse.stagey, hotspotcentery);
draghotspot(dragging);
,
if(pressed,
sub(dx, mouse.stagex, drag_adjustx);
sub(dy, mouse.stagey, drag_adjusty);
screentosphere(dx, dy, ath, atv);
copy(print_ath, ath);
copy(print_atv, atv);
roundval(print_ath, 3);
roundval(print_atv, 3);
txtadd(plugin[hotspotinfo].html, '<hotspot name="',get(name),'"[br] ath="',get(print_ath),'"[br] atv="',get(print_atv),'"[br] ...[br] />');
delayedcall(0, draghotspot(dragging) );
);
);
]]>
</action>
<hotspot name="spot4" capture="true" style="hotspot_ani_white" ath="+180" atv="+10" ondown="draghotspot();"></hotspot>
<preview url="panos/3_Hauswirtschaft.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
<level tiledimagewidth="9472" tiledimageheight="9472">
<cube url="panos/3_Hauswirtschaft.tiles/%s/l5/%v/l5_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="4736" tiledimageheight="4736">
<cube url="panos/3_Hauswirtschaft.tiles/%s/l4/%v/l4_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="2304" tiledimageheight="2304">
<cube url="panos/3_Hauswirtschaft.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1152" tiledimageheight="1152">
<cube url="panos/3_Hauswirtschaft.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="640" tiledimageheight="640">
<cube url="panos/3_Hauswirtschaft.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
</image>
<image if="webvr.isenabled">
<cube url="panos/3_Hauswirtschaft.tiles/vr/pano_%s.jpg" />
</image>
<!-- place your scene hotspots here -->
<layer name="skin_btn_info" style="skin_glow" url="info.png" align="bottom" x="-420" y="19" scale="0.50" onclick="change_verbergen();" url_show="info.png" url_hide="info.png" />
<!-- Textstyle STYLE3 -->
<textstyle name="STYLE3"
font="Arial" fontsize.no-mobile="16" fontsize.mobile="26" italic="false"
background="true" backgroundcolor="0xFFFFFF"
border="true"
textalign="center"
roundedge="10"
shadow="4" shadowrange="4" shadowcolor="0x333333" shadowangle="70" shadowalpha="0.7" fadeintime="0.5"
yoffset.no-touch="-5"
yoffset.touch="-40"
padding="10"
xoffset="250"
yoffset="-60"
/>
<!-- Textstyle STYLE3 yoffset.no-touch="-5"
yoffset.touch="-40"
padding="10"
xoffset="150"
yoffset="-3"
/> -->
<hotspot name="hs1" capture="false" fillcolor="0xaaaaaa" fillalpha="0.0" borderwidth="3.0" bordercolor="0xaaaaaa" borderalpha="0.0" onhover="showtext(Pförtchenpfanne,STYLE3,);"
depth="1000"
polyline="false"
scaleflying="true"
tx="0"
ty="0"
tz="0"
>
<point ath="-23.283185" atv="3.354706" />
<point ath="-20.959386" atv="4.798115" />
<point ath="-20.086243" atv="7.796745" />
<point ath="-21.588116" atv="10.319473" />
<point ath="-23.451252" atv="10.654968" />
<point ath="-25.566479" atv="9.592913" />
<point ath="-25.905179" atv="5.460199" />
</hotspot>
<hotspot name="hs2" fillcolor="0xaaaaaa" fillalpha="0.0" capture="false" borderwidth="3.0" bordercolor="0xaaaaaa" borderalpha="0.0" onhover="showtext(Dampfentsafter,STYLE3,);"
depth="1000"
polyline="false"
scaleflying="true"
tx="0"
ty="0"
tz="0"
>
<point ath="-69.584951" atv="21.343867" />
<point ath="-66.616001" atv="19.057762" />
<point ath="-61.238516" atv="18.178987" />
<point ath="-55.545726" atv="19.763668" />
<point ath="-54.21163" atv="23.135007" />
<point ath="-55.100193" atv="26.91179" />
<point ath="-54.68702" atv="35.589672" />
<point ath="-60.399924" atv="38.385311" />
<point ath="-66.751948" atv="37.533629" />
<point ath="-69.006926" atv="35.704348" />
</hotspot>
<hotspot name="hs3"
fillcolor="0xaaaaaa" fillalpha="0.0" borderwidth="3.0" capture="false" bordercolor="0xaaaaaa" borderalpha="0.0"
onhover="showtext('Der Schwibbogenherd war das Zentrum des Bauernhauses.
[p][/p]Der Rauch zog durch Diele und Dachboden
[p][/p]und gelangte durch die "Uhlenlöker" am Giebel ins Freie.
[p][/p]Dem Rauch ausgesetzte Fleischwaren wurden gut durchräuchert,
[p][/p]die eingebrachte Ernte auf dem Boden getrocknet
[p][/p]und der Holzwurm aus dem Gebälk vertrieben.', STYLE3);"
[b]<!-- Anmerkung: Am 2.11.16 um 19:05 Uhr nach Klaus' Anmerkung unten verändert. Komma nach "durchräuchert" - Textattribut gelöscht. -->[/b]
depth="1000"
polyline="false"
scaleflying="true"
tx="0"
ty="0"
tz="0"
>
<point ath="13.881235" atv="-2.251757" />
<point ath="42.8531" atv="-2.175703" />
<point ath="42.746895" atv="14.221846" />
<point ath="13.605876" atv="19.464922" />
</hotspot>
</scene>
</krpano>
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »panox« (2. November 2016, 19:06)