A Random , Rotating »» / Thong / Babe / Pet / Holiday / Hobby / Car / Boat / Event / , et-ceteras.... ««
--With this random image script you can add any format , .jpg .png .gif , just
use your imagination with what / where & How this extremely simple but useful script is used..
• Tempo Demo (http://www.jpr62.com/theme/index.php?action=forum)
- Placement : scriptbox type
- Where: Right/Left/Center/Frontpage/Upper/Lower-Blocks - /Articles
- Image dimensions: Any ---- Example: 120x120 or 640x800 ....
- Format : Any , .jpg .png .gif ----
- Installation : Upload your images in a Images directory to your server, copy+paste teh below script into a (scriptbox) , Edit , Save , Activate , Enjoy :)
- Included: 10demo Thongs, add your own , as many as desired ---
..the [Reload] button is for demo only, keep or remove it still works.
<TABLE align="center">
<TR>
<TD align="center">
<SCRIPT language="Javascript"><!--
function image() { };
image = new image();
number = 0;
// imageArray
image[number++] = "<img src='http://www.yoursite.com/Images/1.jpg' border='0'>"
image[number++] = "<img src='Images/2.jpg' border='0'>"
image[number++] = "<img src='Images/3.jpg' border='0'>"
image[number++] = "<img src='Images/4.jpg' border='0'>"
image[number++] = "<img src='Images/5.jpg' border='0'>"
image[number++] = "<img src='Images/6.jpg' border='0'>"
image[number++] = "<img src='Images/7.jpg' border='0'>"
image[number++] = "<img src='Images/8.jpg' border='0'>"
image[number++] = "<img src='Images/9.jpg' border='0'>"
image[number++] = "<img src='Images/10.jpg' border='0'>"
increment = Math.floor(Math.random() * number); document.write(image[increment]);
//-->
</SCRIPT>
<P align="center">
<FORM>
<INPUT type="BUTTON" value="Reload" onClick ="location.reload()">
</FORM>
</P>
</TD>
</TR>
</TABLE>
SS -
I like ... Better way to do it in my opinion...
;)
I have a question. Could I just get a script that takes all .png, .jpg, gif or any other image within a folder and show it in the slide without having to add a line for a new image every time I get a new one? and also not have to change the name of the images to 1.jpg and so on?
In other words. I was looking for a script that will look into a specific folder and take any image and show it in the slide.
Is this possible?
thanks in advance.
I'm sure there are a thousand scripts you could find on google that would do this. If you can't, let me know and I'll see if I can reinvent the wheel again.
This will pull the file names from a folder and put them in an array called $array. :)
$current_dir = '/path/to/image/directory/';
$dir = opendir($current_dir);
while ($file = readdir($dir))
{
if ($file != '.' && $file != '..')
{
$array[] = $file;
}
}
closedir($dir);
It doesn't check to see if the files are images. The best way to deal with it is to just put images in the directory.
I know this works because it's directly from my theme file on my site. :)
Well I just came in to check out what the title said. haha
ya i bet ;D
Shes hot... I cant stop staring at her butt lol...