Log In · Register

 
Using images in playlist, Drop Down Playlist Jukebox
alinford
post Apr 3 2005, 11:51 PM
Post #1


Newbie
*

Group: Member
Posts: 5
Joined: Apr 2005
Member No: 122,021



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?
Attached File(s)
Attached File  jukebox.txt ( 6.65K ) Number of downloads: 14
 
 
 
Start new topic
Replies
IGB
post Apr 4 2005, 01:16 AM
Post #2


New Type
****

Group: Member
Posts: 145
Joined: Mar 2005
Member No: 119,960



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?
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: