Wes Gamble wrote:
>     newDiv = popup.document.createElement('div');
>     newDiv.setAttribute('id', 'pdf');
>     newDiv.setAttribute('style', 'margin-top: 250px; text-align: center;');
>     newDiv.innerHTML = 'Please wait while your forms are 
> generated<BR/><BR/><IMG src="' + wait_image_url + '"/>';
>     popup.document.body.appendChild(newDiv);    

I'd do it like this:

newDiv.style.marginTop = '250px';
newDiv.style.textAlign = 'center';

== Off-topic ==
This isn't a JS list, but if you're bothering to create the DIV using 
correct DOM functionality then I'd create the contents that way too, 
rather than using innerHTML.

== On-topic ==
I'd also make the <img> a block level element rather than using <br> 
elements, but that's just how I roll. ;)

Brad
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to