Results 1 to 4 of 4

Thread: Help with vertical slider

  1. #1
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with vertical slider

    Hello,

    I am by no means a javascript expert. I do occasionally have to use it though to accomplish what I'm looking for. This would be one of those cases...

    I used to have a horizontal sliding slide show of sorts on this website but wanted to switch things around and changed to a vertical one going down the right side of the page.

    My issue is this... what is causing all the extra space at the bottom of the page and is there something I can change in the code to stop this from happening? I am assuming it's related to the number of images in the slide, since it wasn't happening until I added them all in.

    If anyone can help me out with this, I'd very much appreciate it.

    http://armourgates.com/

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That script is obviously adapted from:

    http://www.dynamicdrive.com/dynamici...rightslide.htm

    and so:

    Your page is in violation of Dynamic Drive's usage terms, which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.


    Just put in something like (I also fixed your opening script tag):

    Code:
    <script type="text/javascript">
    
    /***********************************************
    * Adapted from:
    * Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    
    var sliderwidth="109px"; 
    var sliderheight="420px"; 
    var slidespeed=1; 
    slidebgcolor="#FFFFFF"; 
    var topbottomslide=new Array(); 
    var topbottomslide2=new Array(); 
    var finalslide='';
    The answer to your question though is to increase the negative top for the span in the script:

    Code:
    document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-90000px;left:-9000px">'+topbottomslide+'</span>');
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I did not know it was from that, as that is NOT where I got it from. So don't blame me for that, I was not the one to erase anything. I would be happy to add it though, as I never claimed to write the script in the first place.

    Thanks for your answer on the question though.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I don't believe I ever blamed you for skipping the credit, just that it was obvious where the code came from and that it was missing the credit. Anyone comparing the two scripts can see that. I could have made that clearer, so I apologise if I hurt your feelings.

    Thanks for reinstating the credit, and glad I could help out with your problem!
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •