Click to See Complete Forum and Search --> : Chsnging background image of a table...


richblend
07-29-2003, 10:35 AM
I have a table, within that table is a form, within that form is a menu box, with different names of jpegs. I want it so that when you click one of those names, that jpeg then becomes teh background image of the table. at the moment, in the menu i have the followintg code:

onclick="parent_table.style.backgroundImage=background_select.value;"

where parent_table is the table io want the image to be in, and background_select is the menu.

i keep getting "invalid argument" and i dunno what that means. could anyone help?

cheers in advance

Rich

Khalid Ali
07-29-2003, 10:59 AM
this line
parent_table.style.backgroundImage=background_select.value;

The correct syntax

...style.backgroundImage = "url(someImge)";