Code: Select all
<?
$file = "http://webapps.corp.stercomm.com/salescenter/sites/default/files/upload/ie6warning.htm";
$pos = strpos($_SERVER['HTTP_USER_AGENT'],"MSIE 6.0");
if ($pos === false)
{
}
else
{
?>
<script type="text/javascript">
function window.onload()
{
openpopup();
}
function openpopup()
{
winpops=window.open("<?=$file?>","","width=300,height=230");
}
</script>
<?
}
?>