Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-08-2012, 02:50 AM   PM User | #1
glenn.php
New Coder

 
Join Date: Feb 2008
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
glenn.php is an unknown quantity at this point
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
glenn.php is offline   Reply With Quote
Old 01-08-2012, 02:58 AM   PM User | #2
Krupski
Regular Coder

 
Krupski's Avatar
 
Join Date: Dec 2010
Location: United States of America
Posts: 502
Thanks: 39
Thanked 47 Times in 46 Posts
Krupski is on a distinguished road
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
Krupski is offline   Reply With Quote
Old 01-08-2012, 03:00 AM   PM User | #3
glenn.php
New Coder

 
Join Date: Feb 2008
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
glenn.php is an unknown quantity at this point
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 03:03 AM..
glenn.php is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:43 AM.


Advertisement
Log in to turn off these ads.