|
|
Quellcode |
1 2 3 4 5 6 7 |
<plugin name="text"
url="textfield.swf"
html="[div style='color:#FF0000;']test sfsdfsdfsdfsdf sdfsdfsdfsdfsdfsdf sdfsdfsdfsdfsdf[/div]"
align="lefttop" x="10" y="10"
width="200"
height="100"
/>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 |
<data name="info_html">
<textformat leftmargin="30" rightmargin="30">
<h2>Salvator Mundi</h2>
<br/> <img src="graphics/pic_image.jpg" hspace="20"/>
<p>This is dummy example text - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris aliquam feugiat metus, ut accumsan massa scelerisque eu. Ut facilisis cursus velit, eu hendrerit ipsum rutrum et. Pellentesque et ligula leo, in facilisis nisl. Sed vitae fringilla odio. Pellentesque congue nulla eu leo adipiscing sit amet congue tellus aliquet.
</p> <br/> <br/> <br/> <br/> <br/>
<a href="http://www.google.co.uk" target='_blank'> Click here for more information </a>
</textformat>
</data>
|

|
|
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 |
<style name="projectcredittext"
url="%CURRENTXML%/../_common/plugins/textfield.swf"
css="data:css1"
keep="true"
children="false"
visible="false"
width="180"
height="70"
backgroundcolor="0x00000033"
roundedge="5"
shadow="1"
borderwidth="2"
glow="4"
onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1.0,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
/>
<plugin name="project_credit_text_flash"
devices="flash"
style="projectcredittext"
selectable="false"
html="data:html1"
align="rightbottom"
x="10"
y="10"
/>
<plugin name="project_credit_text_html5"
devices="html5"
keep="true"
url="%CURRENTXML%/../_common/plugins/textfield.swf"
html="[div style='width:100%;height:100%;
background-color: #000;
border: 2px solid #fff;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
padding: 7px 3px 2px 7px;
font:bold 14px sans-serif;']
BLAH BLAH BLAH:
[br]
[span style='font:bold 12px sans-serif;']
MORE BLAH BLAH BLAH
[/span]
[p]
[span style='font:normal 12px sans-serif;']
Photography (c) John Doe
[/span]
[/p]
[/div]"
align="rightbottom" x="30" y="30"
roundedge="5" shadow="2"
borderwidth="2"
bordercolor="0xFFFFFF"
backgroundcolor="transparent"
width="200"
height="70"
/>
<data name="html1">
<p>
BLAH BLAH BLAH,<br/><a href="http://www.krpano.com" target="_blank">MORE BLAH BLAH</a>
</p><br/>
<p class="copyrightcredit">
Photography © (works) John Doe
</p>
</data>
<data name="css1">
p{color:#FFFFFF; font-family:Arial; font-size:14; font-weight:bold; margin-left:7; text-align:left; }
a { font-size:12; text-decoration:underline; color:#cccccc; font-weight:bold; }
a:hover { color:#ff6500; text-decoration:none;}
.copyrightcredit{ font-size:11; font-weight:normal;}
</data>
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »bpc94609« (4. März 2011, 02:33)
try & # 1 6 9 ; (without the spaces)
Zitat
One quick question though before my working example: how the heck do you put a (c) copyright symbol in the HTML5 version? Using "©" breaks the XML. :(
This does not work localy Local / Offline Usage.
Zitat
Another quick question: My web link in the Flash version does not work. The example here at krpano's site does work. I copied and pasted the example, but no dice from my site. Ideas? (edit: trying event:openurl() brings no joy, either)
)...|
|
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="project_credit_text_html5"
devices="html5"
keep="true"
url="%CURRENTXML%/../_common/plugins/textfield.swf"
html="[div style='width:100%;height:100%;
background-color: #000;
border: 2px solid #fff;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
padding: 7px 3px 2px 7px;
font:bold 14px sans-serif;']
BLAH BLAH BLAH:
[br]
[span style='font:bold 12px sans-serif;']
MORE BLAH BLAH BLAH
[/span]
[p]
[span style='font:normal 12px sans-serif;']
Photography (c) John Doe
[/span]
[/p]
[/div]"
align="rightbottom" x="30" y="30"
roundedge="5" shadow="2"
borderwidth="2"
bordercolor="0xFFFFFF"
backgroundcolor="transparent"
width="200"
height="70"
|
|
|
Quellcode |
1 2 3 |
filter:alpha(opacity=60); -moz-opacity: 0.6; opacity: 0.6; |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<plugin name="tp_info_01" devices="html5" enabled="true" zorder="10001" url="plugins/textfield.swf" keep="true"
html="[div style='width:100%;height:100%;
background-color:#000;
opacity:0.5;
-moz-opacity:0.5;
padding: 7px 3px 2px 7px;
font:bold 14px sans-serif;']
Company Intro Goes Here!
[br]
[span style='font:bold 12px sans-serif;']
Company Intro Goes Here!
[/span]
[p]
[span style='font:normal 12px sans-serif;']
Company Intro Goes Here!
[/span]
[/p]
[/div]"
align="center" width="300" height="100" x="0" y="0" visible="true"
ondown="action(close,tp_info_01);"
/>
|
Hi bpc94609,try & # 1 6 9 ; (without the spaces)
Zitat
One quick question though before my working example: how the heck do you put a (c) copyright symbol in the HTML5 version? Using "©" breaks the XML. :(
This does not work localy Local / Offline Usage.
Zitat
Another quick question: My web link in the Flash version does not work. The example here at krpano's site does work. I copied and pasted the example, but no dice from my site. Ideas? (edit: trying event:openurl() brings no joy, either)
Hope this help (better late than never)...
SAlut.
). :-) index.php?page=Attachment&attachmentID=477I've attached an example of the problem with textfield used on the
ipad. Just using the opacity: .5 you will see from the image that the
right and bottom edge are transparent but there is always a gray box
around the text. I've looked at the webkit sites to try to get this
working but no setting that I could find does the trick. Is there a solution to have a transparent
background without fading out the text and without the gray box? Any suggestions would be
welcome.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<!-- URL FOR CREDITTEXT -->
<style name="credittextstyle" url="plugins/textfield.swf" />
<plugin name="project_credit_text_html5" devices="html5"
style="credittextstyle"
keep="true"
html="[div style='width:100%;height:100%;
padding: 0px 10px 10px 10px;
font:bold 12px sans-serif;text-align:right;']SOME TEXT HERE[span][br /]© PSOME NAME HERE[/span][/div]"
align="rightbottom" x="90" y="5"
backgroundcolor="transparent"
width="300"
height="30"
/>
|
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
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 |
<krpano version="1.0.8" logkey="false" onstart="style_var();text_title();">
<action name="style_var">
set(taal_color,"#333366");
set(taal_weight,"");
set(taal_family,"Verdana,Arial,Helvetica");
</action>
<action name="text_titel">
set($tit_1, I LOVE KRPANO.);
</action>
<style name="credittextstyle" url="../plugins/textfield.swf" />
<data name="html_title" > </data>
<plugin name="title_text"
style="credittextstyle"
keep="false"
alpha="1"
html="data:html_title"
align="lefttop" x="120" y="1"
backgroundcolor="transparent"
width="100%"
height="38"
zorder="100"
onloaded="html_title();"
/>
<action name="html_title">
txtadd(data[css].content,"body { color:",get(taal_color),"; font-weight:",get(taal_weight),"; font-family:",get(taal_family),";}");
txtadd(data[html_thumb1].content,"<p>",get(tit_1),"</p>");
set(update,view);
</action>
/>
|
: https://pame.virtualtuur.comBenutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com