Webmaster Forum

Sponsored Reviews   Improve your ranking, submit to directories   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 06-16-2004, 10:05 AM   #1 (permalink)
Inactive
 
Join Date: 04-15-04
Posts: 499
iTrader: 0 / 0%
Latest Blog:
None

wbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the rough
I need a random script

I need a random script that randomly pulls an image from a directory.
I know it can be done with Javascript, but you have to define the images.
I want a script that I point to, images/random and it just grabs a random image from there.

Is it possible?
wbstein is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 06-16-2004, 10:26 AM   #2 (permalink)
Inactive
 
samer's Avatar
 
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
iTrader: 0 / 0%
samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
*coding forum ? *
and ..
http://www.hotscripts.com/PHP/Script...ges/index.html

Cheers.
samer is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-16-2004, 10:33 AM   #3 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
*Moved to coding forum.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-16-2004, 10:42 AM   #4 (permalink)
Inactive
 
Join Date: 04-15-04
Posts: 499
iTrader: 0 / 0%
Latest Blog:
None

wbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the rough
thanks
www.jegim.com/smx
wbstein is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-16-2004, 10:55 AM   #5 (permalink)
SVB
Inactive
 
SVB's Avatar
 
Join Date: 10-13-03
Posts: 7,481
iTrader: 0 / 0%
Latest Blog:
None

SVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest order
Send a message via Yahoo to SVB
Cool it works :p
SVB is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-16-2004, 10:56 AM   #6 (permalink)
Inactive
 
Join Date: 04-15-04
Posts: 499
iTrader: 0 / 0%
Latest Blog:
None

wbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the roughwbstein is a jewel in the rough
still working on it a bit though
wbstein is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-16-2004, 11:16 AM   #7 (permalink)
Inactive
 
Pipeline-Webdesign's Avatar
 
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
iTrader: 0 / 0%
Latest Blog:
None

Pipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the rough
Send a message via AIM to Pipeline-Webdesign Send a message via MSN to Pipeline-Webdesign Send a message via Yahoo to Pipeline-Webdesign
this is what i use and it works perfectly...

[code:1:e35bb2575f]<?php
$random_banner = rand(1, 10);
?>

<img src="random/images/banner_<?php echo rand(1, 10) ?>.jpg">
[/code:1:e35bb2575f]

in the directory you have it pointing to just name all of your images as "image_#.jpg" ... the script finds a random # between 1-10 (which can be lowered or raised) and adds it to the end of the filename right after the "underscore"
Pipeline-Webdesign is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB 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
Need help for random banner rotator script googlesuccess Coding Forum 2 11-17-2006 01:22 PM
Random Link Script tosaha Coding Forum 7 08-22-2006 01:08 PM
random image script Julie Coding Forum 1 03-06-2006 04:20 PM
updating every row with random password script SVB Coding Forum 7 05-08-2004 12:07 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 05:47 AM.
© Copyright 2008 V7 Inc