[thelist] Javascript/HTML Validation

Dave Holloway daveholloway at spamcop.net
Wed Mar 10 08:28:18 CST 2004


Kevin Switzer wrote:

>I'm doing this so I can use javascript to find the height of the screen.
>The style is open, obviously, but the validator doesn't think it is.
>
>Any ideas?
>
>  
>
Try this... might not work.. but give it a go.

<script type="text/javascript">
<!--
var H=self.screen.availHeight-248;
var str='<sty'+'le type="text/css"> .spacer { display: block; height:'+H+';
float: left; width: 1px; font-size: 1px; margin: 0; padding: 0; }
</sty'+'le>';
document.write(str);
-->
</script>


-- 
Little Dave
http://www.daveholloway.co.uk
Everyone feel free to add me to your instant messengers:
MSN: daveholloway at spamcop.net, YAHOO: daveholloway at yahoo.com, ICQ: 104452444



More information about the thelist mailing list