I have a Zen Cart project and I want to show an AJAX pop up box (on body load).
开发者_如何学JAVAPop 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
}
?>
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论