The following parameters are supported:
In VRSmarty xml file:
| xmlFile | xmlFile="myTicker.xml" | plugin control XML file, default=ticker.xml |
Plugin attributes:set with spot_id.content.name=value
| xmlFile | xmlFile="myTicker2.xml" | new plugin XML file |
| size | size='-150:25' | new ticker size |
| speed | speed='-' | new ticker speed (+,- or -10 - 10) |
Plugin methods: call with spot_id.content.name(value)
| start() | start() | start ticker (after stopping) |
| stop() | stop() | stop ticker |
| restart() | restart() | restart ticker (reset repeat counter) |
Plugin external xml file:
| In <ticker> tag: |
| size | size="400:30" | absolute size of ticker window |
| size="100%:35" | width in percent of pano width |
| size="-100:25" | width as pano width minus setting |
| borderColor | bordercolor="#000000" | color of ticker window border |
| borderWidth | borderwidth="3" | width of ticker window border |
| bgColor | bgcolor="#FFFFF0" | ticker window background color |
| speed | speed="6" | ticker speed: 1 - 10, default=5 |
| repeat | repeat="5" | number of ticker passes, default=999 |
| pause | pause="10" | pause between ticker passes |
| running | running="0" | startup mode, 1 or 0, true or false, default=1 |
|
| In <item> tag: |
| text | text="This is a ticker tape" | ticker text |
| url | url="img/thumb12.png" | ticker image url |
| lSpace | lSpace="15" | item leading space |
| tSpace | tSpace="10" | item trailing space |
| onClick | onClick="gotower()" | onClick command (see below) |
| tooltip | tooltip="Click me" | tooltip window text at mouse-over |
Furthermore the following
format attributes are supported in all tags:
font="Verdana"
textColor="#00FF00"
textSize="24"
bold="0"
italic="1"
underline="1"
bgColor="#000080"
Format attributes written in the <ticker> tag are used as default.
NOTES:
When setting
ticker speed with the
action="..." attribute, you can either give an absolute value in the
range from -10 to +10, or use the "+" or "-" signs to increase or decrease the speed. When the speed
value is positive, the ticker will move from right to left, and when it has a negative value, the
ticker will move from left to right.
Examples:
| action="speed=4" | slow ticker speed - moving from right to left |
| action="speed=-8" | fast ticker speed - moving from left to right |
| action="speed=+" | adds 1 to ticker speed (may change ticker direction) |
| action="speed=-" | subtract 1 from ticker speed (may change ticker direction) |
Example plugin XML file:
<?xml version = '1.0'?>
<ticker
size="100%:30"
repeat="5"
speed="5"
font="Arial"
bgColor="#000000"
textColor="#0000FF"
textSize="12"
bold="1"
italic="0"
underline="0"
>
<item text="Lorem ipsum" textSize="24" textColor="#FF0000" onClick="goHomepage()" tooltip="My homepage" />
<item text="dolor" textSize="24" onClick="goArstaBridge()" tooltip="The Årsta train bridge" />
<item text="sit amet" textSize="24" textColor="#FF0000" />
<item url="images/smiley1.png" onClick="sendMail" tooltip="email me"/>
<item text="Donec venenatis commodo leo " textColor="#008000" />
<item text="consectetur adipiscing elit" font="Comic Sans MS" textSize="16" bold="0" textColor="#FFFFFF" bgColor="#000080" />
<item url="images/pano1.jpg" leftMargin="20" rightMargin="10" onClick="goYachts()" tooltip="The Yacht Club" />
<item text="Morbi eget mattis sapien" textColor="#A00000" italic="1" onClick="GPFrance()" tooltip="Vrooom" />
</ticker>
Version history: