HELP! random image change up ?
- Started
- Last post
- 21 Responses
- quisque
So, I'd like the background image to change each time someone views/reloads the website.
I did a google search, and now my head is spinning. Anyone know of a good script (easy script)?
- ********0
tomkat once scripted a nice lil php thing for me that does that.. lemme see if i still got that.
- ethios0
http://www.alistapart.com/articl…
something along those lines, what you need is some php
- version30
i have a php random script
http://pixeltwins.com/online/nt/…
- canuck0
just do a search for php rotating images
It's not to hard to set up.
- ********0
ok, i have in the index.php a line of code like this:
[?php include("css/csstest.inc.php"); ?]
----
in the file called "csstest.inc.php" (you can call it anything) i got the following code:
----
in which the bg1.css (etc.) are the css files that define different backgrounds..
- ********0
fuck that code fell away..
lemme just post the file..
- version30
ummmm.... the solution is posted?
and al you need after putting my php where its needs to go is set the img tag
< img src="rndm.php" >< / img >
- ********0
here it is:
- ********0
- version30
i must be on ignore again
- ********0
well we posted 2 completely different scripts, mine randomizes entire css files.
please let the bloke have a choice.
- ********0
but i saved yours.. it's nice. thx.
:)
- ********0
where is the guy anyways?
- quisque0
thanx thanx.
My brain's fried. I cut out of work early. I'm helping my gf out w/this site, and well, still trying to get shit done at work.
So there's no way to do random images witout using php?
- version30
no
- quisque0
Damn.
I'd been putting off learning php. Now it's time to suck it up...
Thanx again. I'm passing the info on to my gf.
QQ
- version30
there's nothing to learn in the zip i posted its already written for you just use it
- tehgee0
im stealin it v3 hehe
- ********0
and there's nothing to learn about mine/tomkat's either.
v3's is a bit easier, but mine gives you more possibilities.
your choice.
- tehgee0
i dont want yours an dio dont want your hollywood
:P hah ai keed i keed! TRICKING TOMCAT!