Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2012, 10:48 AM
africano africano is offline
Member
 
Join Date: Jul 2008
Posts: 84
Downloads: 0
Uploads: 0
Default More functions - OnClick

Hi,

I have a swf element hidden and I want it to slide into view when a hotspot button is clicked:

my hotspot:

<spot
id="weather_button"
url="files/hotspotFiles/images/weather.png"
static="1"
staticX="-175.00"
staticY="3.00"
salign="RT"
align="RT"
depth="102"

onClick="weather.staticX=-39.00;banner.staticY=-53.00"


/>

The swf element:

<spot id="weather" url="weather.swf?file=config.xml" static="1" staticX="-39.00" staticY="-155.00" salign="RT" align="RT" depth="101" shadow="1" shadowAngle="107" buttonMode="0" blockMouse="1" />

So basically it slides down from staticY= -155 to staticY= -53....but my onClick command is not correct as it doesnt do anything.

Any ideas how this is done?

thanks.
Reply With Quote
  #2  
Old 01-28-2012, 06:36 PM
allSaints's Avatar
allSaints allSaints is offline
Senior Member
 
Join Date: Aug 2008
Location: Stockholm, Sweden
Posts: 945
Downloads: 0
Uploads: 0
Default

Hi,

maybe if you change

onClick="weather.staticX=-39.00;banner.staticY=-53.00"

to

onClick="weather.staticX=-39.00;weather.staticY=-53.00"

Tommy
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:17 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.