- Jul 20, 2001
- 69,032
- 26,910
- 136
I have the following code that creates a popup window to show image.jpg when the reader clicks on tn_image.jpg. I would like to set the the background color of the popup window.
I've tried adding background-color: #00000 and bgcolor:black to the style statement but it gets ignored. Any ideas how to set the background color? Thanks.
Edit: upon further reading it seems that to change the background color of the popup I have to put the image inside a document so I can change the document's background color.
Code:
<a href="javascript:;" onClick="w = window.open('image.jpg','TpWebWizImage','width=1500,height=1051,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); w.resizeTo(1557,1141); w.focus()" style="cursor:hand">
<img src="tn_image.jpg" border="0" width="300" height="210" alt="image.jpg" />
I've tried adding background-color: #00000 and bgcolor:black to the style statement but it gets ignored. Any ideas how to set the background color? Thanks.
Edit: upon further reading it seems that to change the background color of the popup I have to put the image inside a document so I can change the document's background color.
Last edited: