Results 1 to 3 of 3

Thread: Custom Buttons for Slideshow

  1. #1
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Custom Buttons for Slideshow

    1) Script Title: Interactive slideshow

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...interslide.htm

    3) Describe problem: Hi Guys, This place is so cool.

    Can someone please tell me to to get your custom buttons for Play and Stop???
    I have got it for next and prev. What i want is for a"Stop" button to appear when it's playing and a "Play" button to appear when the slideshow is stopped.(With the text written ofcourse).

    Thansk guys. You all are great

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    First, the easy answer is to use CSS to style the buttons to look cooler. You could possibly to images, but that would be a bit harder, since javascript is so convenient for buttons.

    <input type="button" ... value="Play" onClick="if (this.value == 'Play') this.value = 'Stop'; else this.value = 'Play';">
    I *think* that syntax is correct.

    Using that onclick command will make it switch to the other thing.. if it's set to play, then say stop, etc. Setting the original value as "play" should match since it starts playing and can go from there.

    If you need to actually CHANGE the button there, it's possible, but complex.

    At the moment, it's just one button that does stuff. If you did two buttons, you'd need to switch visibility between them and/or replace it each time with javascript. It's more complex.

    Hope this helps.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Thanks DJR for such a quick response.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •