| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: May 2003 
				Location: chicago 
				
				
					Posts: 376
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				hahahahahahahahahaha ---what's wrong w/my code?
			 
			hi- 
		
	
		
		
		
		
			i'm modifying a fairly common pic rotating script, trying to get it to fully randomize a list of 151 different "ads", but no such luck---of course i don't know hahahahahahahahahaha at all it works, it just doesn't pull at random from the entire list. here's what i've got in the beginning of part of the script, which i think is flawed: var how_many_ads = 151; var now = new Date() var sec = now.getSeconds() var ad = sec % how_many_ads; ad +=1; if (adhahahaha1) { txt="xxxx xxxx xxxx xxxx xxxxx"; url="http://www.mydomain.com"; alt="click here for more"; banner="http://www.mydomain.com/banners/real_bulldyke_femme_sex001.jpg"; width="792"; height="520"; } if (adhahahaha2) { etc etc there are 151 different pix, when i set the "ad +=1;" it seems to pull at random from the beginning batch of pix, but not go completely through the list, if i set it to "ad +=30;" it pulls a different subset at random, "ad +=75;" will pull a different subset at random towards the end of the list. i want the script to pull a random pic from the entire set of 151 with equal frequency. what am i doing wrong? thanks! 
				__________________ 
		
		
		
		
	
	promote our original content 30 niche site package with ccbill: www.gashflash.com/affiliates/  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Jun 2003 
				Location: Silicon Valley 
				
				
					Posts: 317
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 You are using time in seconds, which can only be between 0-59. 
		
	
		
		
		
		
		
	
	You need a number to randomly fall between 1-151. try var randomnumber=Math.floor(Math.random()*151)  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 I need a beer  
			
		
			
				
			
			
			![]() Industry Role:  
				Join Date: Jun 2002 
				Location: ♠ Toiletville ♠ 
				
				
					Posts: 133,949
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Mine works well 
		
	
		
		
		
		
			var how_many_ads =(your number of ads); var now = new Date() var sec = now.getSeconds() var ad = sec % how_many_ads; ad +=1; if (adhahahaha1) { txt="Your text"; url="http://www.whatever.com"; alt="Exclusive Vids And Pics Updated Weekly"; banner="http://www.whatever.gif"; width="468"; height="60"; } if (adhahahaha2) { txt="Blah Blah your text"; url="http://whatever.com"; alt="Naked Home Movies"; banner="http://www.whatever.gif"; width="468"; height="80"; } and so on 
				__________________ 
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: May 2003 
				Location: chicago 
				
				
					Posts: 376
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 you're a king Penthouse_mike, that did the trick! 
		
	
		
		
		
		
			thank you all! 
				__________________ 
		
		
		
		
	
	promote our original content 30 niche site package with ccbill: www.gashflash.com/affiliates/  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |