Home -> VRSmarty plugins page -> ticker.swf
This plugin is completely free for use in any context or connection.
ticker.swf
A plugin for showing a ticker tape. Texts and images can have onClick attributes to execute VRSmarty commands, open web pages or send emails. Speed, size, colors, fonts, item separations and pause interval can be set.

The following parameters are supported:

In VRSmarty xml file:
xmlFilexmlFile="myTicker.xml"plugin control XML file, default=ticker.xml



Plugin attributes:set with spot_id.content.name=value
xmlFilexmlFile="myTicker2.xml"new plugin XML file
sizesize='-150:25'new ticker size
speedspeed='-'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:
sizesize="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
borderColorbordercolor="#000000"color of ticker window border
borderWidthborderwidth="3"width of ticker window border
bgColorbgcolor="#FFFFF0"ticker window background color
speedspeed="6"ticker speed: 1 - 10, default=5
repeatrepeat="5"number of ticker passes, default=999
pausepause="10"pause between ticker passes
runningrunning="0"startup mode, 1 or 0, true or false, default=1
In <item> tag:
texttext="This is a ticker tape"ticker text
urlurl="img/thumb12.png"ticker image url
lSpacelSpace="15"item leading space
tSpacetSpace="10"item trailing space
onClickonClick="gotower()"onClick command (see below)
tooltiptooltip="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: