Page 1 of 1

Pop up Box?

Posted: Wed Jan 30, 2008 4:07 am
by HomesteadMom
I would like to add a pop up box for newsletter sign ups on my homepage.  But I'm having a  ??? ??? moment.  I have the code for the newsletter sign up, but need to turn it into a pop up box.  How can I get this to only open on the main page?  I tried entering the code in the HTML scrip from the page editor and it came up stationary and with error messages...
Thanks!

Re: Pop up Box?

Posted: Wed Jan 30, 2008 4:11 am
by calguy1000
uhm.... some javascript that does a window.open(...) with the url to the subscription page
and just mark your 'subscription' page as not shown in menu.

something like (off the top of my head)

{literal}

function register_page()
{
  window.open({/literal}{cms_selflink page='subscribe'}{literal});
}

{/literal}

click here to register

this is just off the top of my head example code..... if it works, I'd be surprised, but you should be able to figure it out from there.\