Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Zen Cart 项目,我想显示一个 AJAX 弹出框(在身体负载上)。
弹出窗口必须仅在主页上显示。
可能吗?
在tpl_main_page.php文件中,在正文加载时使用此条件:
<?php if ($_REQUEST['main_page']=='index' || $_REQUEST['main_page']=='') { ?> <body onload="Popupajax()"> <?php } else { ?> <body> <?php } ?>