Support and General Use > Theming and Appearance Customization

%px

(1/3) > >>

hakimio:
Here Llorean says %px could be used to create slider progressbar. Can anyone explain how this could be done?

karashata:
The %px tag displays the percentage of a song played.  You could use it as a conditional (%?px) to display a sequence of images as a sort of custom progress bar.  If you wanted a slider bar, you could just make a sequence of images with the slider moved across the bar.  However, depending how many images you choose to use, your slider may or may not look very smoothly animated.

hakimio:
Could you post an example?

MarcGuay:
I believe that something like this:


--- Code: ---%?px<1|2|3|4>
--- End code ---

Would display a "1" for the first quater of the track, a "2" for the second quarter, and so on... If you replaced the numbers with image-display tags (%xd), then those images would be displayed in the same fashion.  I presume you've perused the CustomWPS wiki page already?

hakimio:

--- Quote from: MarcGuay on May 19, 2008, 01:03:51 AM ---I believe that something like this:


--- Code: ---%?px<1|2|3|4>
--- End code ---

Would display a "1" for the first quater of the track, a "2" for the second quarter, and so on... If you replaced the numbers with image-display tags (%xd), then those images would be displayed in the same fashion.
--- End quote ---
So if I need smooth progressbar, I need 100x%xd?  :D
Edit: and I need to specify 100 different coordinates? :D

--- Quote --- I presume you've perused the CustomWPS wiki page already?

--- End quote ---
Yup, I have.

Navigation

[0] Message Index

[#] Next page

Go to full version