|
|
#1 (permalink) |
|
President & CEO
Seasoned Poster
Joined in May 2004
Lives in Los Angeles, Ca
99 posts
Gave thanks: 0
Thanked 0 times
|
Well, I think I had it along time ago but I no longer do and I made a new layout and I need a VERY simple / small script to just randomize numbers and that I can Input anywhere (Ie; Img-Etc...)
Code:
<img src="path/to/images/{random}.jpg">
If anyone has a code snipet It would be greatfully appreciated thank you in advance.
__________________
Regards, Edgar Navarro President and CEO of Entkrew, Inc. Saprus (x.41.98)Shared-Reseller Pass8 (x.17.52)Resellers Entkrew Dedicated Server ![]() 3 YEARS with Surpass hosting! '04, '05, '06! |
|
|
|
|
|
#2 (permalink) |
|
Caffeine fiend
Comfy Contributor
Joined in Aug 2004
Lives in Reston, Virginia
Hosted on pass15
270 posts
Gave thanks: 0
Thanked 0 times
|
__________________
Pedro Blog: http://veraperez.com Reseller: http://veraperez.net GPG/PGP Key: http://veraperez.com/public.asc |
|
|
|
|
|
#3 (permalink) |
|
President & CEO
Seasoned Poster
Joined in May 2004
Lives in Los Angeles, Ca
99 posts
Gave thanks: 0
Thanked 0 times
|
Thanks, I will check it out right now.
__________________
Regards, Edgar Navarro President and CEO of Entkrew, Inc. Saprus (x.41.98)Shared-Reseller Pass8 (x.17.52)Resellers Entkrew Dedicated Server ![]() 3 YEARS with Surpass hosting! '04, '05, '06! |
|
|
|
|
|
#4 (permalink) |
|
President & CEO
Seasoned Poster
Joined in May 2004
Lives in Los Angeles, Ca
99 posts
Gave thanks: 0
Thanked 0 times
|
Well, I checked that out..
Im not a pro-coder so this may sound "noob" or "dumb". Update: What I had asked, I already figured it out as I just went and uploaded it and did a few test, thats how we all learn aint it ...Well, what I had asked just incase some one may need this or I forget I can just come back here... PHP Code:
PHP Code:
![]() It just gives out the random number within the image tag (just make sure to change .jpg to whatever file it is you want randomized, and your images dir.
__________________
Regards, Edgar Navarro President and CEO of Entkrew, Inc. Saprus (x.41.98)Shared-Reseller Pass8 (x.17.52)Resellers Entkrew Dedicated Server ![]() 3 YEARS with Surpass hosting! '04, '05, '06! |
|
|
|