Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    desperate help enabling disabled button in slideshow

    i have this slideshow, Swiss Army Image slideshow i got from DDrive. it has forward and back buttons that are disabled unless the Play/Stop button is in Stop mode. i cannot for the life of me figure out how to enable the buttons always. please can someone help? i have a maniac client who's now threatening not to pay because of this one thing!!!

    installation:
    http://cssphpmysql.com/dev/westermancm/library2.html

    js:
    http://cssphpmysql.com/dev/westermancm/js/swissarmy.js

    thanks so much!
    GN

  • #2
    Regular Coder Krupski's Avatar
    Join Date
    Dec 2010
    Location
    United States of America
    Posts
    505
    Thanks
    39
    Thanked 47 Times in 46 Posts
    Quote Originally Posted by glenn.php View Post
    i have this slideshow, Swiss Army Image slideshow i got from DDrive. it has forward and back buttons that are disabled unless the Play/Stop button is in Stop mode. i cannot for the life of me figure out how to enable the buttons always. please can someone help? i have a maniac client who's now threatening not to pay because of this one thing!!!

    installation:
    http://cssphpmysql.com/dev/westermancm/library2.html

    js:
    http://cssphpmysql.com/dev/westermancm/js/swissarmy.js

    thanks so much!
    GN
    I'll give you a hint... look for the word "disabled" in the JS code and reason out what they are doing.

    (this cracks me up: if (this.dom){ //if modern browsers (ie: Firefox, IE5+)
    "Anything that is complex is not useful and anything that is useful is simple. This has been my whole life's motto." -- Mikhail T. Kalashnikov

  • #3
    New Coder
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Krupski View Post
    I'll give you a hint... look for the word "disabled" in the JS code and reason out what they are doing.

    (this cracks me up: if (this.dom){ //if modern browsers (ie: Firefox, IE5+)
    i have been doing this for about four hours. it is not that simple.

    i changed this, which did the trick, but then the Back button caused the image to go forward.

    Code:
    
    inter_slide.prototype.buttons=function(bool){
    if(this.no_c)
    return;
    var next=this.go('next'+this.issid), prev=this.go('prev'+this.issid);
    next.disabled=prev.disabled=!bool;
    next.title=bool? 'next' : '';
    prev.title=bool? 'previous' : '';
    
    
    inter_slide.prototype.buttons=function(bool){
    if(this.no_c)
    return;
    var next=this.go('next'+this.issid), prev=this.go('prev'+this.issid);
    // next.disabled=prev.disabled=!bool;
    next.title=bool? 'next' : '';
    prev.title=bool? 'previous' : '';
    i will pay you to make this happen for me. please.
    Last edited by glenn.php; 01-08-2012 at 04:03 AM.


  •  

    Posting Permissions

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