Results 1 to 8 of 8

Thread: Step Carousel Button Problem

  1. #1
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Step Carousel Button Problem

    1) Script Title: Step Carusel

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

    just saved as the js files on the page.

    3) Describe problem: I couldnt make buttons visible or work.


    I am using ddaccordion, lightbox, and had no problem everything is well, I just have problem with the buttons on the belt.

    here is my link www.alpinedh.com/test/

    Thank you. DD!!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm the error in the JavaScript debugger seems to suggest there is an error in your definition of your default buttons, though it looks right to me:

    Code:
    	defaultbuttons: {enable: true, moveby: 1, leftnav: ['leftnav.gif', -5, 100], rightnav: ['rightnav.gif',-5, 100]},
    Just to eliminate the issue being a conflict between scripts, what happens if you remove all other scripts on the same page (ie: Accordion Menu)?
    DD Admin

  3. #3
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your interest and fast reply.

    When I first worked on the script, I was testing with the same files and without an accordion on the page, it was same, could not see the buttons. I thought I will solve it later but I couldnt. It seems to me kind of css issue. I am not at good at css and javascript unfortunately, its my brothers web site just helping them with the site. thank you DD!

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    It's a scripting error, as Firefox's JS debugger complains of the following:

    Code:
    Error: $("<img src=\"" + config.defaultbuttons.leftnav[0] + "\">") is null
    Source File: http://www.alpinedh.com/test/js/stepcarousel.js
    Line: 64
    As mentioned though, it seems you've set up the "defaultbuttons" option correctly. Try creating a blank page with just the Carousel script on it- do the buttons work?
    DD Admin

  5. #5
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    you were right, it works without the accordion and any other css
    here is the link if you needed it.
    http://www.alpinedh.com/test/gallery.html
    confused now.

  6. #6
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I have removed this line
    <script type="text/javascript" src="js/prototype.js"></script>
    and I could see the arrows.

  7. #7
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ok, looks like a conflict with the jQuery library and Prototype then. Try the below modified .js file, which should take care of the issue. Let me know.
    DD Admin

  8. The Following User Says Thank You to ddadmin For This Useful Post:

    anybudy (09-30-2009)

  9. #8
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I solved it putting the arrows on left and right manually. But your js solves the issue, everything works well! Now I have 4 buttons DD

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
  •