Posts by dond2222

    Hi Everyone!
    I'm trying to create an Info Button that calls the intro image when it clicks, just in case the viewers need how to navigate the Vtour.

    I've found this subject on this thread below, I've tried many times but still no luck. It might be something wrong with my code.
    https://krpano.com/forum/wbb/inde…d&threadID=5717

    Here's the code I wrote:
    On main XML:


    And on the vtourskin.XML:

    Code
    <layer name="skin_btn_info"   style="skin_glow" url="red_button/information_red.png" keep="true" align="rightbottom" x="310" y="7" scale="0.6" alpha="1.0"   onhover="showtext(Navigation Info, hovertext);" onclick="showintroimage();" />
    		<layer name="skin_btn_home"   style="skin_glow" url="red_button/home_red.png" align="rightbottom" x="350" y="7.7" scale="0.6" alpha="1.0"   onhover="showtext(Go to First Scene, hovertext);" onclick="loadscene(scene_BOULEVARD, null, MERGE, ZOOMBLEND(1,2)); " />

    I'm sorry I still can't mention my website as it is still under construction.
    Hope somebody can give some solutions for this info button problem.

    Best Regards,
    Don

    Hi!
    I'm trying to create an autorotate button that stops/restart the autorotation with text and button changing. Here's the code I wrote:

    On main XML:
    <autorotate enabled="true" waittime="1.5" speed="4.0" />

    On vtourskin XML:
    <layer name="skin_btn_rotate" style="skin_glow" url="red_button/button-rotate_dis_red.png" align="bottom" y="5" x="-55" scale="0.7" alpha="1.0"
    onclick="autorotate_btn_events(); switch(autorotate.enabled);"
    onhover="if(autorotate.enabled, showtext(disable autorotation, hovertext), enable autorotation, hovertext));"
    />

    <plugin name="autorotate_btn"
    onautorotateenabled="set(layer[skin_btn_rotate].url, button-rotate_dis_red.png);"
    onautorotatedisabled="set(layer[skin_btn_rotate].url, button-rotate_en_red.png);"
    />

    <textstyle name="hovertext"
    background="false" border="false" textalign="center" font="Helvetica" fontsize="14" textcolor="0xFFFFFF" effect="glow(0xFFFFFF,0.3,2,1);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
    />

    The code works good on text hovering and stop/restart autorotation, but does not work on BUTTON CHANGING. Is there other solution to resolve this problem?
    Please have a look at the attachment
    Can somebody help me?

    Regards,
    Don

    Hi Juraj, I have the same problem on showtext. I use krpano 1.16.9
    I tried your action "fadeout" but still doesn't work.

    Here's the code I wrote:
    <textstyle name="hoverstyle"
    background="false" border="false" textalign="center"
    fontsize="20" textcolor="0xFFFFFF" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
    fadetime="1.0"
    />

    <plugin name="logo" keep="true"
    url="DP-logo.png"
    align="topleft"
    x="10"
    y="10"
    alpha="0.4"
    scale="0.5"
    onhover="set(plugin[logo].alpha,1.0);tween(scale,1.0); showtext(visit http://www.donphotoworks.com, hoverstyle);"
    onout="set(plugin[logo].alpha,0.4); tween(scale,0.5);"
    onclick="openurl('http:http://www.donphotoworks.com');"
    autoscale="xscale,yscale"

    />

    Any thoughts would be highly appreciated
    Regards,
    Don

    Hi! I'm totally a newbie. I'm trying some features on examples, some work well and some other are still being learned.
    I'm currently creating a logo and got 2 problems which I (still) can't resolve:
    1. I need a text showing a website when mouse onhover.
    Below are the code I wrote, not working onhover, work well for onclick
    I've also tried using textstyle, but it doesn't work either. <plugin name="name" keep="true"
    url="DP-logo.png"
    align="topleft"
    x="10"
    y="10"
    alpha="1"
    onclick="openurl('http:http://www.mywebsite.com');"
    onhover="showtext(visit http://www.mywebsite.com, style1);"
    scale="1"
    autoscale="xscale,yscale"
    />

    2. I need a small logo that will zoom in when mouse onhover. I have no clue how to do this.

    Can please anybody help me?

    Best Regards,
    Don

    Hi!
    I'm a beginner, still learning to understand how to use krpano viewer/tools and trying all the stuffs one by one, as I know nothing about code. I found this forum really helpful in understanding the documentations. And also the forumers are friendly :)

    I'm currently trying to modify the "Corfu Tour" scrollbar in example folder. I want to remove the white lines at top and bottom border, and it works by removing some codes on XML.

    I also want to remove the space between the scrollbar and bottom edge of the image (please see attachment), so the container will move down to the bottom edge of the image/frame.I still don't know how to do this (I think I should set the ordinat code?). Can you please help me?

    Thank you,
    Don