Ok I did a custom contact us for a client that comes up in a popup to replace the standard contact us. First I created a .js file to be placed in includes/templates/YOUR_CUSTOM_TEMPLATE/jscript
In our case I named the file jscript_contactuspop.js and its contents are as follows:
Code:
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=610,height=610,left = 387.5,top = 95');");
}
// End -->
The custom contactus.php file was placed in the root of the cart
the file is then called by using the page title as the link to call the script which then calls the file opening it in a popup. Instead of using a standard page title for the ezpage I put the following in the page title:
Code:
<A HREF="javascript:popUp('contactus.php')">Contact Us</a>
I hope this helps.