Code Help
- Started
- Last post
- 5 Responses
- vsc
Hello, is there any bit of code that can randomly (upon refresh) display images of 2 sorts with different sizes over 2 or 3 lines with left justification? when the page loads, its something like:
a1b2C3d
e4F5g6hor
F3C4b1h
g5a2d6ei think i saw this recently (php?), but I can't remember in what site exactly, nor do i know how to search for it.
thx.
- pkmlta0
you can load the array from a db or search a directory for files but heres the basics:
$pics = array("pic1.jpg","pic2.jpg","pic...
$picNumber = rand(0, count($pics));
$picSize = getimagesize($pics[$picNumber]);
echo "\n";
- cosmo0
are you looking for captcha code?
- vsc0
thanks pkmlta, I'll try that.
cosmo: what on earth is "captcha code"?
- vsc0
ah! no captcha.
i was going for something like this (refresh after the page loads):
- TrueHell0
no need for php there. It's flash and all done in the actionscript. Same concept as the php though.
Not sure where there is code ready for you though you may have to work it out.
you'll need to create an array to hold your images. Then code to layout a holder_mc in a grid. Use the Math.random method on load to create and new layout each time.