Pop up Box?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
HomesteadMom
New Member
New Member
Posts: 8
Joined: Fri Dec 28, 2007 3:49 am

Pop up Box?

Post 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!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Pop up Box?

Post 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.\
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Layout and Design (CSS & HTML)”