Sie sind nicht angemeldet.

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

1

Freitag, 23. September 2011, 10:30

Textstyle with arrow ?

Hi, is there a way to add an arrow in a textstyle ? (like many tooltips)

Thanx !

Yomas

Fortgeschrittener

Beiträge: 190

Wohnort: Anglet, France

  • Nachricht senden

2

Mittwoch, 12. Oktober 2011, 17:57

Hi jerombg !
No you can't add images with the onhover showtext method.
The only two ways are using a CDATA textbox (example in the krpano demo folder),
or the easiest but not the greatest, using a single image as background of your text, but it'll be boring to align the tooltip and the text.
You can by the way embed your text directly in your image, but that means lots of graphics if you have many spots to show ^^
Hope it could help !
Best regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

3

Donnerstag, 13. Oktober 2011, 19:21

or add an tiny arrow image

Quellcode

1
2
<plugin name="arrow" parent="yourtextfield" url="arrow.png" align="bottomleft" edge="topright" '/>
<plugin name="yourtextfield" background="true" backgroundcolor="0xFFFFFF" etc etc />


if you want it as a tooltip on mouse over, trigger it with onover and onout

Quellcode

1
2
3
4
5
6
<style name="tooltipper"
onover ="set(plugin[yourtextfield].visible, true); copy( plugin[yourtextfield].x, mousex); copy( plugin[yourtextfield].y, mousey); copy(plugin[yourtextfield].html, tooltip); "
onout="set(plugin[yourtextfield].visible, false);"
/>

<hotspot style="tooltipper" tooltip="a nice text" etc etc etc />


its a bit rough, and you probally need to offset the tooltip. But this should work.

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

4

Donnerstag, 13. Oktober 2011, 19:30

Ok thanx at both of you, I'll give it a try and keep informed !

thanx again for your help !

Ähnliche Themen