July 20th, 2004, 09:53 PM
|
#2 (permalink)
|
| Member
Join Date: Oct 2001 Location: Earth, Sol System
Posts: 228
|
I did something very similar, I think, using ColdFusion (but php or asp or something else will work just as well). I had a bunch of templates, and I wanted to let clients browse through them to get ideas of what they wanted their sites to look like. I basically created a list of all the directories that held templates and saved that to a text file.
Then I created the CF page that included an iframe for viewing the template, next and prev buttons, and a "Go to template #" box. I scripted the CF code to use the text file and set the source of the iframe to the first directory on the list. When next or prev is pressed, I replace the source of the iframe with the next/previous entry in the list. And of course, when a number is entered into the text box, it skips to that list entry and uses that as the source dir. Pretty easy and functional.
Here is the page (no flames for the design, I didn't do it, although I have done my best to make it look at least a little better. Fullscale redesign is underway.) http://www.taisweb.net/taistemplates.cfm
__________________
-Str8jakit
"Everything you know is RONG" - RONG FOO
|
| |