2012-09-18 4 views
-1

시나리오 사용자가 처음으로 로그인하는 경우를 테스트하는 PHP if 문이 있습니다. 그러면 greybox 팝업 상자에 데모가 표시됩니다.PHP IF가 로딩에서 IE 콘텐츠를 중지합니다.

슬프게도 상자가 IE에로드 될 때 웹 사이트의 콘텐츠는 그렇지 않습니다. 즉, 사용자가 상자를 닫으면 배경이 그대로 유지됩니다.

코드 - 이제 PHP 포함을 사용하고 있습니다.

greybox.php

<?php if ($fli == 0) {echo " <script type='text/javascript'> 
window.onload = function() { 
GB_showCenter('Your first login', '../video.php'); 
}; 
</script> ";} else echo "";?> 



<!-- GB scrip --> 
    <script type="text/javascript"> 
     var GB_ROOT_DIR = "greybox/"; 
    </script> 

<script type="text/javascript" src="greybox/AJS.js"></script> 
<script type="text/javascript" src="greybox/AJS_fx.js"></script> 
<script type="text/javascript" src="greybox/gb_scripts.js"></script> 
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" /> 

<!-- GB --> 

내가 깊이 전혀 도움을 appreicate 것

<?php $fli = $_SESSION["USER"]["fli"]; ?> 
<?php include "greybox.php" ?> 

Comparison of IE/Chrome

주요 사이트의 관련 스크립트주세요! :)

+1

브라우저에 '

관련 문제