944,116 Members | Top Members by Rank

Ad:
May 18th, 2005
0

Dynamically modifying the CSS attributes through Javascript

Expand Post »
I was wondering if someone could aid me in this. all help will be duly noted in the script itself.

Here is what i am trying to achieve, a realtime editor of the CSS attributes of a given page. I have the page i am using and the CSS table, but i want to be able to edit it in real time so that people can use it to create their profiles. SO lets say a user wants to create a profile, but doesnt want the lamo stock colors. they can use my basic template (which is a generic profile) and then dynamicly in real time modify different parts of the CSS so that all they would have to do is view source when they were finished and grab the CSS and input it into their profile, or use a generate button to generate the output when they are finished.


Any help would be greatly appreciated, and if any more info is needed it would be greatly appreciated.


one last breaze through of it:


you have a CSS attributes form and it would lets say contain somthing like:

table, tr
{
background-color:somecolor;
}

i need a script that can change that somecolor, to a color of the users choice.

THank you in advanced to anyone that can offer any help or direction.
Similar Threads
Reputation Points: 152
Solved Threads: 39
Master Poster
Killer_Typo is offline Offline
778 posts
since Apr 2004
May 18th, 2005
0

Re: Dynamically modifying the CSS attributes through Javascript

I would take a different approach. I would GENERATE the CSS from values stored in a database. Allow the users to modify these values, not by editing the CSS, which most users won't be skilled enough to do, but rather by presenting a standard data-entry form.

If you want to avoid server-side coding, then you could do something similar with cookies .
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
May 18th, 2005
0

Re: Dynamically modifying the CSS attributes through Javascript

Quote originally posted by tgreer ...
I would take a different approach. I would GENERATE the CSS from values stored in a database. Allow the users to modify these values, not by editing the CSS, which most users won't be skilled enough to do, but rather by presenting a standard data-entry form.

If you want to avoid server-side coding, then you could do something similar with cookies .
yeah, i see that, and that was deffinately an option for me, but i wanted to make something that could work in real time so that people would be able to see it as they did it, without having to wait untill the end to see if it worked or not. because honestly, people want results fast, and i see that as the best way, to let them do it in real time and decide if that's the look they want or not.
Reputation Points: 152
Solved Threads: 39
Master Poster
Killer_Typo is offline Offline
778 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Hide all DIV's On Click
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Problem with <div> height - Controlling flow from center div





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC