PDA

View Full Version : Javascript Problem



jatos
03-17-2005, 11:23 AM
Right, I am currently writing some JS. Anyway theres few things I want to know.

Firstly how would I change an attribute on a table using JS, for example change the bgcolor.

Also how do I do rich text box.

Finally how could I load another page and display

Is their any equivalent of document.write that allows me to change the code omitted, instead of add it, if your a little confused about this question see below



colour="#ffffff";
document.writein(colour);
colour="#aaaaaa";
document.writein(colour);


This prints
#ffffff
#ffffff

but I want #ffffff to change to #aaaaaa

kooshin.com
03-17-2005, 11:51 AM
Well still confused a little bit but you want to load information from another file? And for the colors you want to have some mouseover on the table for example?

jatos
03-18-2005, 05:23 AM
There are various reasons why I want to be able todo that, but the mouseovers are one of the things I may do.

kooshin.com
03-18-2005, 10:49 AM
Yeah they are good. You can also let the user choose his own color of the page buy using some submit buttons

jatos
03-18-2005, 08:35 PM
I know how I change the color of the page, however I want to be able to do tricks like change the color of tables when someone clicks something somewhere else in the page.

kooshin.com
04-20-2005, 01:42 PM
hey jatos did you find any solution to the problem? I was trying to find out the best way to do it