Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Controlling backgrounds
Old 04-07-2005, 02:10 AM Controlling backgrounds
larryweiss's Avatar
Super Talker

Posts: 117
Location: NEW YORK
Trades: 0
I am a starving watercolor artist trying to sell paintings, on the web. It’s not going well at all. The problem might be that people want to know their framing costs before clicking the paypal button. Buying them first and then having them framed at a local store is a big deal with unknown costs.

I am hoping to create a table. The center cell of the table will have a predetermined image (The painting.). The rectangle of other cells immediately surrounding the image (representing the mat, and called the mat cells), should have a background color selected by the user in an easy manner.
The user could select by:
• Clicking on a one of a series of links
• Selecting one from a field of radio buttons
• Even clicking an image map would work.
• My preference would be changing the background color by rolling over an array of sample colors, and then clicking that very sample they like, to store the color, and end that part of the selection process,
• Other Ideas are welcome.

Finally, comes the frame. This would be frame images filling the ring of frame cells surrounding the mat cells. The frame images would also be selected by a similar selection process. (That is, hovering over some sample thumbs to display available frames), and clicking the desired thumb.

When they see the finished product and wish to buy it. A form, (I am comfortable here) will submit all of these parameters to paypal, then to me.

There are tons of hover color changing scripts, but I can find nothing which will lock the hover specified data into place.

I know tables and border styles and can even make beveled double and triple mats. I also know a good amount of form handling. It’s the script necessary the present the mats and frames that I need help with.

*******************


After rereading this it seems to me that two fields of radio buttons, 1 for mat color, and 1 for frame style, will do the selection quite well. I know how to pass this information along through a form, but have no clue how to use this information to control the cell backgrounds.

PLease help
__________________
Larry Weiss


Please login or register to view this content. Registration is FREE
| |
Please login or register to view this content. Registration is FREE
| |
Please login or register to view this content. Registration is FREE
larryweiss is offline
Reply With Quote
View Public Profile Visit larryweiss's homepage!
 
 
Register now for full access!
Old 04-07-2005, 06:48 PM
Phaedrus's Avatar
Ultra Talker

Posts: 271
Location: CA
Trades: 0
I'll give it a shot tomorrow, when I've got more time. How familiar are you with javascript? I would put an image inside each outer cell (with no source attribute initially). Obviously, you have to slice each frame image, so I would create an array to hold each slice. Then I'd build a function that accepted that array as a parameter, and set the source attributes appropriately.

Another way to do it would be with layers, which, if your page layout is compatible with absolute positioning, would probably be easier. You wouldn't even have to slice the frame images. If you could post some images, I could play around with it.
__________________

Please login or register to view this content. Registration is FREE
Phaedrus is offline
Reply With Quote
View Public Profile
 
Old 04-07-2005, 07:49 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
How do you usually process your forms? Could you not supply an 'update' button along with the radio buttons, that would submit the page, the server could then respond with a new page containing the same image with updated border colour and frame graphics, possibly a pricing estimate too. This can be repeated many times until their happy, at which point they click 'submit' or whatever and you send it off to paypal. This is the serverside method, which you can do with the same language you use for form processing. The alternative as Phaedrus says is to use javascript to change the colours around on the clientside before finally submitting. Either method is capable of what you describe.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to Controlling backgrounds
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18929 seconds with 12 queries