Help - Search - Members - Calendar
Full Version: Using images in playlist
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
alinford
I use this playlist:
Drop Down Playlist Jukebox

I would like to use images for the buttons instead of the default buttons with text. The problem is that I cannot figure out how to use an image for the pause state in the script (the other buttons were very simple to change to an image).

The code that holds the text ('Pause) is near the bottom of the actual script:

I have tried just replacing that with several things:

and this:

plus many other things. Could someone take a look at the attached code and let me know what I am doing wrong?
IGB
Try...
make new variable to represent image. then call variable instead.
var pause = new Image();
pause.src = '/jbcontrols/pause.gif'

then for
CODE
forms['form'].PlayPauseButton.innerHTML = <img src="/jbcontrols/pause.gif" width="23" height="22">;


get rid of innerHTML and set forms['form'].PlayPauseButton = pause;

these are not tested, I dont know if they work for sure. where's your site?
alinford
I finally figured out how to do this. I will post the code later.
alinford
Here is what I came up with:
Thought Spiral
Notice how the Play and Pause buttons switch.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.