-1

场景 我有一个 PHP if 语句来测试用户是否是第一次登录。然后会在灰盒弹出框中显示一个演示。

遗憾的是,当该框在 IE 中加载时,网站的内容却没有。这意味着当我用户关闭该框时,它们将保留背景。

代码- 我现在使用 PHP 包含。

灰盒.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 -->

主站点上的相关脚本

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

IE/Chrome的比较

我会非常感谢任何帮助!:)

4

1 回答 1

0

Never worked with it but what if you try the full url for a test. How does IE then reacts?

Alternative could be jQueryIU, you can create a dialog for the first login. Also if I restart my browser do I have to see the video again? If you save the last login in the DB you can use that information to show the video.

Good luck.

于 2012-09-18T14:49:53.353 回答