Results 1 to 3 of 3

Thread: help for Carousel Slideshow

  1. #1
    Join Date
    Oct 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default help for Carousel Slideshow

    http://www.dynamicdrive.com/dynamicindex14/carousel.htm
    Hello all,I'm sorry, my English is not perfect, I would put the carousel in an article, but I do not understand step 3, if anyone can help me in simple English, thank you
    Lyana

  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

    Actually, you should skip Step 2 and Step 3. And instead change the end of Step 1 from:

    Code:
    	function C_Stp(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd=true;}
    	function C_Rstrt(){C_Stppd=false}
    </script>
    
    <div id="Carousel" style="position:relative">
       <img src="placeholder.gif" width="371" height="225">
    </div>
    
    <p><font face="Arial" size="-2">Free DHTML scripts provided by<br><a href="http://www.dynamicdrive.com">Dynamic Drive</a></font></p>
    to:

    Code:
    	function C_Stp(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd=true;}
    	function C_Rstrt(){C_Stppd=false}
    	if (window.addEventListener){
    		window.addEventListener('load', Carousel, false);
    	}
    	else if (window.attachEvent){
    		window.attachEvent('onload', Carousel);
    	}
    </script>
    
    <div id="Carousel" style="position:relative;width:371px;height:225px;">
    
    </div>
    Set the width and height for the div according to the formula at the beginning of the script (here modified to reflect the above HTML and style changes):

    Code:
    	div width:
    		 4 sided: 1.42 * carousel image width + 3 + px
    		 6 sided: 2 * carousel image width + 4 + px
    		 8 sided: 2.62 * carousel image width + 5 + px
    		12 sided: 3.87 * carousel image width + 7 + px
    	div height: 
    		carousel image height + 2 + px
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    lyana (10-16-2011)

  4. #3
    Join Date
    Oct 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    hello john , tank you for your help

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
  •