...

View Full Version : Problem with resizing and screen resolution



sula
12-16-2007, 01:34 PM
I have SWF that can change his size by resizing window, but when I put it in HTML this doesn't work. I was told there is a JS that must be typed in HTML tags. :rolleyes:

Help me anyone plzzz :)

technica
12-16-2007, 01:44 PM
<script type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>


Use this in <head> tag. Also If u r using dreamweaver as editor then u can add this code to ur page by using command-> add/remove netscape resize fix option in top toolbar.

sula
12-16-2007, 02:05 PM
that's only work after one touch the browser window, but not ONLOAD the page:mad:

sula
12-16-2007, 02:25 PM
that's only work after one touch the browser window, but not ONLOAD the page :(((



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum