navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

How to change content when page is refreshed

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> How to change content when page is refreshed
Page: [1]
 
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

(in reply to mb716)
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?

(in reply to Tailslide)
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:18:29   
Which do you want? Javascript or PHP?

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to mb716)
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.

(in reply to Tailslide)
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

(in reply to mb716)
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.

(in reply to mb716)
Page:   [1]

All Forums >> Web Development >> General Web Development >> How to change content when page is refreshed
Page: [1]
Jump to: 1





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