View Full Version : counter for hotspots
ftrippie
02-25-2008, 07:15 PM
Hi Guys,
Is there a way to use hotspots with a counter? Let me explain; I have 5 TABs with 10 thumbnail images each. At the bottom of the TAB, I am displaying LEFT or RIGHT hotspots. Clicking on either LEFT or RIGHT should show TAB-1 (minus 1) or TAB+1 (plus 1).
With 2 TABs, it's easy; LEFT means TAB1 and RIGHT means TAB2, but it is getting difficult with more TABs...
Of course I could define all 5 (or more), but is there no way to count TAB+=1 or TAB-=1 ?
Cheers,
FTrippie
zleifr
02-26-2008, 12:53 AM
I believe what you are looking for is actually a way to refer to a hotspot as a string "tab" and an integer, and the answer to that is no, in the XML all the references have to be literals, as in tab1, tab2.
However, you could just write one function to display and another to hide each set of images, and then on you arrow you call the function that display the next group and hides this group AND switches the onClick function in you arrow spot to refer to the functions the will display and hide the subsequent group:
<spot id="arrow" onclick="showGroup2; hideGroup1"
and in <global showGroup2="
image10.visible=1
arrow.onClick=showGroup3;hideGroup2"
hideGroup1="image1.visible=0"
Hope that helps,
Zephyr
cheathamlane
02-26-2008, 01:11 AM
And there's a plugin to help with that somewhere... :-P
--
Outside of doing it in the XML, you could write a plugin or external Flash file which you load in as a spot that would handle all the switching for you.
The ability to handle conditionals is one thing I'd love to see as a new feature in FPP.
zleifr
02-26-2008, 03:49 AM
hmm, I'd love to see that to. Maybe I can convince someone to do something about it.
ftrippie
02-28-2008, 10:07 PM
thanks guys.
plugin? which one?
Cheers,
FTrippie
cheathamlane
02-28-2008, 10:10 PM
thanks guys.
plugin? which one?
Cheers,
FTrippie
Hey FTrippie --
See links in my signature below (the grouped hotspots one).
Cheers,
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.