SibBear Posted May 24, 2008 Report Share Posted May 24, 2008 onmousedown=" document.getElementById('onmap').style.top=Math.floor(window.innerHeight/2-250+window.pageYOffset)+'px'; document.getElementById('onmap').style.display='table'; myfunction('onmap');"чего ему не нравится? Пишет недопустимый элемент Quote Link to comment Share on other sites More sharing options...
0 yopopt Posted May 24, 2008 Report Share Posted May 24, 2008 IE не знает window.innerHeight. Попробуйте вместо него использовать document.documentElement.clientHeight. Quote Link to comment Share on other sites More sharing options...
0 SibBear Posted May 24, 2008 Author Report Share Posted May 24, 2008 еще он не понимает pageYOffset.Засада...Но вот тут то ему чего не нравится?document.getElementById('onmap').style.top='50px'; Quote Link to comment Share on other sites More sharing options...
0 yopopt Posted May 25, 2008 Report Share Posted May 25, 2008 еще он не понимает pageYOffset.Вместо pageYOffset можно исользовать scrollTop.Но вот тут то ему чего не нравится?document.getElementById('onmap').style.top='50px';А может он ругается не на эту строку, а на следующую? IE ведь не знает значения table у css-свойства display: http://htmlbook.ru/css/display.html Quote Link to comment Share on other sites More sharing options...
0 SibBear Posted May 25, 2008 Author Report Share Posted May 25, 2008 Заработало!Спасибо Quote Link to comment Share on other sites More sharing options...
Question
SibBear
чего ему не нравится? Пишет недопустимый элемент
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.