|
| |
|
|
mb716
Posts: 7 Joined: 3/9/2007 Status: offline
|
How to change content when page is refreshed - 5/14/2008 13:11:30
I want to have pictures change each time the default page is brought up. I can't find a solution on the web, so I came here. I knew I would get great advice. So, any ideas?
|
|
|
|
Tailslide
Posts: 5915 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: How to change content when page is refreshed - 5/14/2008 13:16:05
There are different ways of doing this depending on your skills and your server-side technology. You could use Javascript or PHP for instance.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
mb716
Posts: 7 Joined: 3/9/2007 Status: offline
|
RE: How to change content when page is refreshed - 5/14/2008 13:17:07
Ok, can you give me an idea of where to go for the script?
|
|
|
|
mb716
Posts: 7 Joined: 3/9/2007 Status: offline
|
RE: How to change content when page is refreshed - 5/14/2008 13:21:18
Which is better? I've got more experience in using Javascript, but have a couple on that page already. Would one more interfere? Go ahead and give me the php. I'll figure it out.
|
|
|
|
Tailslide
Posts: 5915 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: How to change content when page is refreshed - 5/14/2008 13:23:50
I'd say PHP would be more reliable if you have it on your web server as it's done server-side and doesn't rely on users having JS switched on or security settings blah blah blah. Here's a simple one: http://www.alistapart.com/articles/randomizer/ That will pull random images from a folder and display in a <img> tag in the markup. Let me know if you need a random background image from the CSS as I have that somewhere too.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
mb716
Posts: 7 Joined: 3/9/2007 Status: offline
|
RE: How to change content when page is refreshed - 5/14/2008 13:30:14
Thanks Tailslide! It looks easy enough. I will give it a go. I knew Outfront was the place to go.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|