| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				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: Jan 2005 
				Location: .......in a niche, in orbit...... 
				
				
					Posts: 3,647
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				How to make an infinite slideshow in HTML?
			 
			Searching google is nearly useless these days. 
		
	
		
		
		
		
			What is the easiest one or two line script/html that will serve an infinite slide show out of a folder of images? I did something like this a million years ago... 
				__________________ 
		
		
		
		
	
	I love Camdough  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 (>^_^)b 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Dec 2011 
				
				
				
					Posts: 7,224
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		
		
	
		
		
		
		
			 
				__________________ 
		
		
		
		
	
	 Join the BEST cam affiliate program on the internet! I've referred over $1.7mil in spending this past year, you should join in. ![]() I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..  
			 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Aug 2002 
				
				
				
					Posts: 55,372
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 could use php to grab the file list of the directory and have that spit out the markup needed for the slideshow. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Jan 2005 
				Location: .......in a niche, in orbit...... 
				
				
					Posts: 3,647
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 I admit I'm at the Paul Markam level of coding ability but isn't there something simple like: <script> xyxabnd rotate images from <a href="https://image-files.domain.com" #images interval in seconds# </script></a> 
				__________________ 
		
		
		
		
	
	I love Camdough  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 (>^_^)b 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Dec 2011 
				
				
				
					Posts: 7,224
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Happy late 420!  
		
	
		
		
		
		
			This year was the first year I bought it legally, and it was high quality indoor and I got 20% off an ounce with a coupon. Fun times ![]() 
				__________________ 
		
		
		
		
	
	 Join the BEST cam affiliate program on the internet! I've referred over $1.7mil in spending this past year, you should join in. ![]() I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..  
			 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Making PHP work 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2002 
				Location: 🌎🌅🌈🌇 
				
				
					Posts: 20,652
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Apr 2010 
				
				
				
					Posts: 1,111
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 i would use php glob to get all images from the folder and jquery setinterval to rotate them. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | |
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Aug 2002 
				
				
				
					Posts: 55,372
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 Code: 
	<?php
$path = 'images/';
$file_types = ['*.jpg', '*.png', '*.gif'];
$images = [];
foreach ($file_types as $file_type) {
    foreach (glob($path . $file_type) as $file) {
        $images[$file] = $path . basename($file);
    };
}
foreach ($images as $i) {
    echo sprintf('<a href="%s"><img src="%s" alt="%s" /></a>', $i, $i, basename($i));
}
				__________________ 
		
		
		
		
	
	Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 So fuckin' bored 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jun 2003 
				
				
				
					Posts: 32,386
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 ChatGPT will write this code for you in seconds... 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Obey the Cowgod  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 Making PHP work 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2002 
				Location: 🌎🌅🌈🌇 
				
				
					Posts: 20,652
				 
				
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Making PHP work 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2002 
				Location: 🌎🌅🌈🌇 
				
				
					Posts: 20,652
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 User 
		
	
		
		
		
		
			
		
		
		
		
	
	What is the easiest one or two line script/html that will serve an infinite slide show out of a folder of images? ChatGPT You can achieve an infinite slideshow with a simple HTML script using JavaScript. Here's a basic example: html Copy code <!DOCTYPE html> <html> <head> <base href="https://gfy.com/" /><!--[if IE]></base><![endif]--> <base href="https://gfy.com/" /><!--[if IE]></base><![endif]--> Ignore this line; was inserted by gfy because I didn't use the code tags <title>Infinite Slideshow</title> <style> #slideshow { position: relative; max-width: 100%; max-height: 100%; margin: auto; } img { width: 100%; height: auto; } </style> </head> <body> <div id="slideshow"></div> <script> var images = ["image1.jpg", "image2.jpg", "image3.jpg"]; // List your image filenames here var index = 0; function nextImage() { index = (index + 1) % images.length; document.getElementById('slideshow').innerHTML = '<img src="' + images[index] + '">'; setTimeout(nextImage, 3000); // Change slide every 3 seconds (adjust as needed) } nextImage(); // Start the slideshow </script> </body> </html> Followed up with : How can I do this from a folder of images though? ChatGPT To create a slideshow from a folder of images dynamically, you'll need to use server-side scripting languages like PHP to fetch the images from the folder and then serve them to the client-side script. Here's how you can modify the previous example to achieve this using PHP: Create an HTML file (e.g., slideshow.html) with the following content: html Copy code <!DOCTYPE html> <html> <head> <title>Infinite Slideshow</title> <style> #slideshow { position: relative; max-width: 100%; max-height: 100%; margin: auto; } img { width: 100%; height: auto; } </style> </head> <body> <div id="slideshow"></div> <script> var images = <?php echo json_encode(glob('images/*.jpg')); ?>; var index = 0; function nextImage() { index = (index + 1) % images.length; document.getElementById('slideshow').innerHTML = '<img src="' + images[index] + '">'; setTimeout(nextImage, 3000); // Change slide every 3 seconds (adjust as needed) } nextImage(); // Start the slideshow </script> </body> </html> That worked; but the file has to have PHP extension  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 WIFE CHANGING MONEY 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Mar 2019 
				Location: usa 
				
				
					Posts: 5,095
				 
				
				
				
				 | 
	
	
	
	
		
			
			 out of business 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Adult Design HTML5 programming, Wordpress, Paysite Design, Logo Design & branding, Motion graphics, Tutorial Videos, Motion Advertisement's, 3D and 2D animation  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 Making PHP work 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2002 
				Location: 🌎🌅🌈🌇 
				
				
					Posts: 20,652
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 How is this different than looking it up on stackoverflow, or github? 
		
	
		
		
		
		
			
		
		
		
		
	
	Who went out of business because of those sites? ![]()  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#16 | 
| 
			
			
			
			 Natalie K 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Apr 2010 
				Location: Spain 
				
				
					Posts: 19,607
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 would you use html now for a slideshow now? 
		
	
		
		
		
		
			and for an infinitive slide show, you need either to loop or have infinitive pics or clips... so are you looking for a loop, or zillions of images? 
				__________________ 
		
		
		
		
	
	My official site    Custom vids   Make money & get into the business First time girlsSkype: GspotProductions - "Converting traffic into income since 2005"  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |