coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: again on February 10, 2006, 02:14:13 PM

Title: Re: Adding Links
Post by: again on February 10, 2006, 02:14:13 PM
Hey, I'd like to add a link which opens in a popup, or at least in a new window.
Can anyone tell me waht I have to change? ???
Title: Adding a pop-up link to the menu?
Post by: again on February 10, 2006, 10:21:32 PM
I'd like to add a link to the menu which should open in a popup.
I added this code to the theme.php, but I have no idea what I have to do to get a pop-up.  :(

addbutton($sub_menu_buttons,'My Button 1','This is the First Custom Button','http://url','custom1',$template_sub_menu_spacer);

Can anyone help me?  :)
Title: Re: Adding a pop-up link to the menu?
Post by: Blueiris on February 11, 2006, 05:35:04 PM
You need javascript to open a pop-up. Google for "pop-up window". There's a ton of pre-made scripts out there, and there are a few free programs that will create the script for you from your input.