You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2012-03-06 00:31:11

the707
Member
Registered: 2011-09-29
Posts: 25

HTML Background Color Options

Hello,

Summary:

In my tours I make frequent use of the HTML hotspot option (see the example below).  As most of my tours are darker (night clubs, restaurants etc.) I prefer to use a darker background color (black) for these HTML hotspots - which I like to call Info Boxes.

The only way I have been able to modify the background color of my Info Boxes is via XML. Which looks something like this (declared after the width, and Font Face for the "X"):

<plugin name="spot16html" url="virtualtourdata/graphics/textfield.swf" html="data:spot16htmldata" visible="false" alpha="0" align="center" width="400" height="250" roundedge="4" background="true" backgroundcolor="#000000" bordercolor="0xFFFFFF"/>
    <hotspot name="spot17" onclick="closeglobalobjects();closeallobjects();set(plugin[spot17html].visible,true);tween(plugin[spot17html].alpha, 1);" url="virtualtourdata/graphics/spots/spot7.png" onhover="showtext(Club Chair Seating);" ath="369.239" atv="27.5659" width="40" height="40"/>
    <data name="spot17htmldata">
        <p align="right">
            <font face="Arial" color="#FFFFFF">
                <a href="event:tween(alpha, 0);delayedcall(0.5,set(visible,false));">
                    <b>X</b>
                </a>
            </font>
        </p>
        <include url="infobox/club_chair_seating.html"/>
    </data>

The Problem:

The obvious problem from defining the background color and the close ("X") via the XML is that any change to the tour via PTP, regardless of how minor, overwrites all of my XML changes.

So after each edit that the client requests and I make in PTP, I then have to go back and recode every HTML hotspot via XML back to black background (with rounded corners too, because it looks nice). In a tour with 20 panos and 10 - 15 html hotspots per pano this becomes quite tedious.

The Proposed Solution:

I believe (or at least hope) it would be fairly simple to add another parameter to the existing HTML hotspot dialogue to be able to select the background color, much like the width and height are done now. I have attached a mock up of what this might look like.

While I didn't include it in the example it would probably be important to be able to define the color of the close button ( the "X").  If your feeling extra generous, rounded corners and border color would be greatly appreciated as well. wink

Sincerely,

Patrick


Uploaded Images

Last edited by the707 (2012-03-06 00:54:18)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson