Textstyle with arrow ?

  • 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.

  • or add an tiny arrow image

    Code
    <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

    Code
    <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.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!