Page 1 of 1
Changing attributes dynamically
Posted: Sun Feb 22, 2004 12:32 pm
by CathyZ
I don't know whether this is a new topic. What kinds of scripts should I look for to change colors or other attributes dynamically, using php and mysql? A related question...How do I add patterns as an attribute, as in fabric patterns or others?
Posted: Sun Feb 22, 2004 12:53 pm
by Illusionist
attribute to what?
Posted: Sun Feb 22, 2004 1:25 pm
by John Cartwright
you mean like you click on a button and it changes the bg color for exmaple?
Posted: Sun Feb 22, 2004 4:05 pm
by evilMind
You should look for information on javascript (
http://devedge.netscape.com/central/javascript/) for changing attributes dynamically. With PHP you can do it, but it's not gonig to be so "dynamic" (it will require a page re-load or information stored in a cookie => see [php_man]setcookie[/php_man] for that)
As far as adding patterns... You'll proabably be easier off using either a) XML -- You can define everything yourself here. or b) XHTML using an internal Doc type definition (instead of the usual default "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">")
Posted: Sun Feb 22, 2004 4:34 pm
by d3ad1ysp0rk
well he might mean templating/skinning..
dynamic changes
Posted: Mon Feb 23, 2004 8:08 pm
by CathyZ
Phenom wrote:you mean like you click on a button and it changes the bg color for exmaple?
Yes. Evilmind answered the question. Thank-you