Random html
- Started
- Last post
- 30 Responses
- Raniator
Is it possible to have an image displayed randomly using html?
- v-gates0
sounds fluxy
- flavorful0
Not HTML, but Javascript.
PHP works well too.
You can have the image link be a PHP URL, if you do not want to use Javascript in your HTML page.
- Raniator0
Cool...
Err, how might one go about doing that?
I'm just experimenting really. I suck at web stuff (really?! I hear you all say).
It's something I want to get more into.
- Raniator0
Don't worry, I've done it!
I'm a natural :)
- material-10
praise be
- digilee0
well ... share the wealth then
- Jaline0
Not to be rude, but searching Google will result in many.....results.
- Raniator0
1. Copy/paste the code above
2. Name the file random.php
3. Place in the same directory in which your images reside
4. Reference random.php in your src. For instance:
- Raniator0
oops... that didn't work... haha.
Google? Fuck yeah!
- Dancer0
Jaline you're so rude.
You fucking prat
- flavorful0
Hahaha, Google was going to be my response too but I like to throw a curveball towards Monsieur Raniator every now and again.
- Jaline0
Hey, Dancer, everytime I watch "So You Think You Can Dance" I think of you...heheh
- Raniator0
Word bitch!
Flavorful... your my new best friend.
*high five
- version30
php
- Raniator0
Cheers v5... it's done.
This 'Google' thing Jaline pointed out is actually pretty useful...
- version30
consider that a random posting
wtf is google?
- Raniator0
nice.
it's some crazy website, that consists of every other website on the internet. it must be MASSIVE!
- version30
do they have mail?
- Raniator0
no mail... but, i just heard that britney and justin have broken up :(
- Dancer0
Jaline,
Every Time I hear Dolly Parton's Joline, which is ALOT, I think of you.X