Results 1 to 2 of 2

Thread: Scrolling random slide show

  1. #1
    Join Date
    Mar 2015
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Scrolling random slide show

    G'day,

    On my web site (www.ils.org.au), on the top right corner I have a scrolling slide show called by an .asp program.

    The problem is it always shows the same sequence of slides while I want a random order.

    Can anyone help me?

    Here is the routine I use
    Code:
    <%
    Function RandomNumber(intHighestNumber)
    Randomize
    RandomNumber = Int(Rnd * intHighestNumber) + 1
    
    'response.write (RandomNumber & " ")
    
    End Function
    
    
    	dim sliderwidth,sliderheight,slidespeed,leftrightslide(50),copyspeed,finalslide,i,MaxSlides
    		sliderwidth=800  '400
    		sliderheight=115
    		slidespeed=3 '3
    		 finalslide=""
    		' number of slides
    		MaxSlides= 50
    		
    	
            leftrightslide(1)="<img src='Images/Head Images/Ben-Ken Foran.jpg' border='1'></a>"
    	leftrightslide(2)="<img src='Images/Head Images/1097 H.jpg' border='1'></a>"
    	leftrightslide(3)="<img src='Images/Head Images/2360 H.jpg' border='1'></a>"
    	leftrightslide(4)="<img src='Images/Head Images/3717 H.jpg' border='1'></a>"
    	leftrightslide(5)="<img src='Images/Head Images/5909 H.jpg' border='1'></a>"
          ...
          ...
    	leftrightslide(33)="<img src='Images/Head Images/Woody H.jpg'  border='1'></a>"
    
    		
    		
    	///////do NOT edit pass this line////////////////////////////////////
    
    
    			finalslide=""
    			for i=1 to 33  'leftrightslide.length
    			  finalslide = finalslide + leftrightslide(i)+"&nbsp;"
    			next	
    response.write("<div class='rightpiclayer'>	<marquee behavior='scroll' loop='infinite'  scrollamount='3' scrolldelay= '1' width='600px'>"+finalslide+"</marquee></div>")
    %>

    Thanks in advance.

    Peter.
    Last edited by Beverleyh; 03-20-2015 at 07:58 PM. Reason: Formatting

  2. #2
    Join Date
    Mar 2015
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    The code doesn't show how randomNumber factored in slide show. Where is it?

Similar Threads

  1. Replies: 0
    Last Post: 01-25-2010, 05:28 PM
  2. Random images on Fade-in slide show?
    By lilyoungfella in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 07-30-2009, 04:01 PM
  3. Ultimate Slide Show scrolling problem in IE
    By strawbale in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 05-13-2009, 10:26 PM
  4. Resolved Getting rid of random effects in DHTML Slide Show Script
    By timv in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-16-2009, 10:21 PM
  5. Multiframe Slide Show with Random Images
    By demel in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 06-23-2006, 04:52 AM

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
  •