<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Code The World — Random image]]></title>
	<link rel="self" href="https://codetheworld.com/extern.php?action=feed&amp;tid=3&amp;type=atom" />
	<updated>2008-06-15T02:43:32Z</updated>
	<generator>PunBB</generator>
	<id>https://codetheworld.com/viewtopic.php?id=3</id>
		<entry>
			<title type="html"><![CDATA[Re: Random image]]></title>
			<link rel="alternate" href="https://codetheworld.com/viewtopic.php?pid=22#p22" />
			<content type="html"><![CDATA[<p>i doubt you could randomly scroll through the images with a mouse roll-over, though ajax might allow this.</p>]]></content>
			<author>
				<name><![CDATA[spacesblaster]]></name>
				<uri>https://codetheworld.com/profile.php?id=21</uri>
			</author>
			<updated>2008-06-15T02:43:32Z</updated>
			<id>https://codetheworld.com/viewtopic.php?pid=22#p22</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Random image]]></title>
			<link rel="alternate" href="https://codetheworld.com/viewtopic.php?pid=21#p21" />
			<content type="html"><![CDATA[<p>Can the random image be set to change with a mouse roll-over?</p>]]></content>
			<author>
				<name><![CDATA[hotaussie]]></name>
				<uri>https://codetheworld.com/profile.php?id=15</uri>
			</author>
			<updated>2008-06-15T02:42:22Z</updated>
			<id>https://codetheworld.com/viewtopic.php?pid=21#p21</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Random image]]></title>
			<link rel="alternate" href="https://codetheworld.com/viewtopic.php?pid=3#p3" />
			<content type="html"><![CDATA[<p>Description<br />Displays a random image on a web page. Images are selected from a folder of your choice.</p><p>The code<br /></p><div class="codebox"><pre><code>&lt;?php

/*
 * Name your images 1.jpg, 2.jpg etc.
 *
 * Add this line to your page where you want the images to 
 * appear: &lt;?php include &quot;randomimage.php&quot;; ?&gt;
 */ 

// Change this to the total number of images in the folder
$total = &quot;11&quot;;

// Change to the type of files to use eg. .jpg or .gif
$file_type = &quot;.jpg&quot;;

// Change to the location of the folder containing the images
$image_folder = &quot;images/random&quot;;

// You do not need to edit below this line

$start = &quot;1&quot;;

$random = mt_rand($start, $total);

$image_name = $random . $file_type;

echo &quot;&lt;img src=\&quot;$image_folder/$image_name\&quot; alt=\&quot;$image_name\&quot; /&gt;&quot;;

?&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Casper]]></name>
				<uri>https://codetheworld.com/profile.php?id=5</uri>
			</author>
			<updated>2007-12-20T07:23:48Z</updated>
			<id>https://codetheworld.com/viewtopic.php?pid=3#p3</id>
		</entry>
</feed>
