开发者

Create a pop up page when loading a page in Zen Cart

I have a Zen Cart project and I want to show an AJAX pop up box (on body load).

开发者_如何学JAVA

Pop up must be shown only on the home page.

Is it possible?


In the tpl_main_page.php file, on body load use this condition:

<?php
if ($_REQUEST['main_page']=='index' || $_REQUEST['main_page']=='')
{
?>
<body onload="Popupajax()">
<?php
}
else
{
?>
<body>
<?php
}
?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜