[thelist] JavaScript help...

John Corry webshot at neoncowboy.com
Tue Mar 21 21:22:59 2000


JavaScript is not my strong suit, but I want to learn more, and expand my
capabilities. I have a potential client who has asked me to write a script,
it seems like a pretty good opportunity to learn, trouble is, I can't really
conceive of where to begin...

 We're trying to let users of a database driven vacation rental site
configure how their property's page will look when served. So, users will
need to choose a) a style sheet and b) a page layout scheme that includes
placement of images...

Choosing the stylesheet would require selecting bgcolor, <p> color, <h2>
color, and the positioning of those elements (from one of several page
layout options)

So, I need to figure out how to let a user select four of eight thumbnails,
and then select where on the page the large versions of those thumbnails
will be displayed, alongside the other content on the page (eg: <p>s, <ul>s,
and <h1,2,3>s)...

The stated functionality requirement is that the user be able to choose
(from thumbnails) which image will go where, click submit, and get a sample
page reflecting their layout choices. Why wouldn't you just allow 4-6 style
sheets, and let the user choose a stylesheet? The style sheet itself could
define the positions of the images and other elements...Hm, if the guy who
specced the job didn't (or wouldn't) consider that...this might not be fun
to even get involved in.

I hope that someday I'll be able to conceive of how to construct scripts to
perform required functions, for now, thanks!

<tip type = "free hosting that may not suck>
If you're looking for an account to practice PHP on...this may be for you.
FREE! php/postgreSQL enabled, 20 mb webspace at http://www.freedom2surf.com.
I just opened my account and can now successfully go through the PHP/MySQL
tutorial! Yay!
</tip>

John Corry
Neon Cowboy Design
  www.neoncowboy.com
email: webshot@neoncowboy.com
phone: 808.572.8494
mobile: 808.283.7063
PO Box 356 ste 224
Paia, Hawaii 96708