Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-18-2008, 02:49 PM   #1 (permalink)
 
This is sparta!

Join Date: Oct 2006

Posts: 671

akasixcon is on a distinguished road

Default Random Generator?

I want to put an array of images in my website as options for a random image.

image1.jpg
image2.jpg
image3.jpg
etc...

And this link display the images above:
www.mywebsite.com/myimage.jpg

and whenever I embed just the www.mywebsite.com/myimage.jpg, it will display random images from the array.

I ask this because in this one forum, it doesn't allow you to post any links other than the direct link. And i want to generator an array of random images for each refresh with that direct link.
__________________
Windows Vista Ultimate
2.26 Core 2 duo
4gb dd3 ram
9800m gts 512mb
17" 1920x1200 LCD
akasixcon is offline  
Old 03-19-2008, 03:11 AM   #2 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Random Generator?

So, you want to post an image in a Forum, and have it change randomly each time you refresh?

The easiest way I can see to do that would be use PHP to create an image, and randomly select which one to use. PHP basically has all these functions built-in, so it wouldn't be that difficult.

Look up some tutorials on how to create images with PHP, and then how to randomly select a value from an Array, and then go from there.
__________________

Need website help? PM me!
CrazeD is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random Restarts tzvii Hardware Troubleshooting 3 02-17-2008 02:06 PM
Random and Frequent Restarts with a BSOD Nick Hardware Troubleshooting 2 02-01-2008 10:12 AM
Random Powerup/shutdown loops Skeeter35 Hardware Troubleshooting 5 09-28-2007 04:15 AM
Random reboot - temperature? Gaelfinn Hardware Troubleshooting 2 08-19-2007 03:37 PM
Random Shut down turboxchaz Hardware Troubleshooting 3 07-12-2007 02:15 PM