
January 10th, 2005, 04:47 AM
|
|
Registered User
|
|
Join Date: Jan 2005
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Changing background color in iframe with popup
Hi guys (and girls),
I have a small problem. May be you can help me.
I have a page with an iframe named 'preview'. The sizes of this iframe are 20 x 30 pixels. By default, the background color of this iframe is set to #FFFFFF (with CSS).
I also have a textlink on the page which opens a popup named 'popup'. In this popup, users can choose another background color for the iframe. The popup (which is a color picker) works fine and the changes are saved well. After selecting a new color, the new color is written to the database and the popup closes.
I need a Javascript-code which sets the background color of the iframe to the selected color, before the popup window will be closed.
Who can help me / knows a site which contains a script like this?
Thanks,
Roy
|