Não carrega bem: há problemas...
And pop-ups (blocked).
Your image seems to be an iframe: try NOT to use iframes, not frames.
If you need to, use javascript to get width and height of the user screen, send this to PhP, then download the reformatted page. (means you must use AJAX).
Example:
index.php:
libjs.js:
function GetW()
{
var myWidth = 0;
if( typeof( window.innerWidth ) == 'number' )
//Non-IE
myWidth = window.innerWidth;
else if ( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
{
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
}
else if ( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
{
//IE 4 compatible
myWidth = document.body.clientWidth;
}
return (myWidth);
}
Same function for "GetH".
function js_init_page(c,scrw,scrh)
{
sajax_target_id = 'page';
x_p_init_page(c,scrw,scrh);
sajax_target_id = ' ';
}
and, finally, in libajax.php
function p_init_page($c,$scrw,$scrh)
{
if ((!isset($scrw)) || ($scrw == 0))
{
$txt = "
Your browser is incompatible with this site!
";
$txt = "Try IE6-7, Firefox or Opera
";
$txt = "AJAX and Javascript are required.
";
return($txt);
}
....
This works fine with the majority of browser, but is regularly tested with IE7, Firefox and Opera.
2007-09-26 04:30:56
·
answer #2
·
answered by just "JR" 7
·
0⤊
0⤋