You are here: Re: javascript and strict doctype « HTML « IT news, forums, messages
Re: javascript and strict doctype

Posted by Stanimir Stamenkov on 10/02/92 12:01

Sat, 26 Jan 2008 16:20:11 -0500, /Jeff/:

> This works as expected without a doctype, but when I add a html 4.01
> doctype, strange things happen.
>
> IE has trouble redrawing the page background color (I'm adding a rule
> for that), it's funky and sometimes it leaves a bit of the previous
> color. In Fire Fox, reading element positions is way wrong (I get 0 0
> on somethings).

"http://websiterepairguru.com/colorpicker_2.htm", line 275:

target_menu.style.left=(pos.x);
target_menu.style.top=pos.y + pos.height;

You don't specify units:

target_menu.style.left=(pos.x) + "px";
target_menu.style.top=(pos.y + pos.height) + "px";

--
Stanimir

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация