Code:
<?php
/*
$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $
modified by paulm_nl 2003/12/23
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
?>
[color=blue]<!-- popup scripts //-->
<script language="javascript"><!--
function opencolorchart() {
if (!window.msgWindow1) {
msgWindow1 = window.open('','newWin1','width=100,height=100,screenX=100,screenY=100,top=100,left=100,resizable=1,menubar=0,toolbar=0,scrollbars=0');
msgWindow1.location.href = 'http://www.honeybeadjewelry.com/catalog/color_chart_popup.htm';
}
else {
if (!msgWindow1.closed) {
msgWindow1.focus();
}
else {
msgWindow1 = window.open('','newWin1','width=100,height=100,screenX=100,screenY=100,top=100,left=100,resizable=1,menubar=0,toolbar=0,scrollbars=0');
msgWindow1.location.href = 'http://www.honeybeadjewelry.com/catalog/color_chart_popup.htm';
}
}
}
function openbirthstonechart() {
if (!window.msgWindow2) {
msgWindow2 = window.open('','newWin2','width=100,height=100,screenX=100,screenY=100,top=100,left=100,resizable=1,menubar=0,toolbar=0,scrollbars=0');
msgWindow2.location.href = 'http://www.honeybeadjewelry.com/catalog/birthstone_colors_popup.htm';
}
else {
if (!msgWindow2.closed) {
msgWindow2.focus();
}
else {
msgWindow2 = window.open('','newWin2','width=100,height=100,screenX=100,screenY=100,top=100,left=100,resizable=1,menubar=0,toolbar=0,scrollbars=0');
msgWindow2.location.href = 'http://www.honeybeadjewelry.com/catalog/birthstone_colors_popup.htm';
}
}
}
function openclaspselection() {
if (!window.msgWindow3) {
msgWindow3 = window.open('','newWin3','width=100,height=100,screenX=100,screenY=100,top=100,left=100,resizable=1,menubar=0,toolbar=0,scrollbars=0');
msgWindow3.location.href = 'http://www.honeybeadjewelry.com/catalog/clasp_selection_popup.htm';
}
else {
if (!msgWindow3.closed) {
msgWindow3.focus();
}
else {
msgWindow3 = window.open('','newWin3','width=100,height=100,screenX=100,screenY=100,top=100,left=100,resizable=1,menubar=0,toolbar=0,scrollbars=0');
msgWindow3.location.href = 'http://www.honeybeadjewelry.com/catalog/clasp_selection_popup.htm';
}
}
}
//--></script>[/color]
<?php
$boxHeading = BOX_HEADING_RESOURCES;
$corner_left = 'rounded';
$corner_right = 'rounded';
$box_base_name = 'resources'; // for easy unique box template setup (added BTSv1.2)
$box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2)
$boxContent = '<a href="' . tep_href_link(FILENAME_FAQS) . '"> ' . BOX_RESOURCES_FAQS . '</a><br>' .
[color=blue] '<a href="javascript:opencolorchart(\'' . tep_href_link(FILENAME_COLOR_CHART) . '\')">' . BOX_RESOURCES_COLOR_CHART . '</a><br>'.
'<a href="javascript:openbirthstonechart(\'' . tep_href_link(FILENAME_BIRTHSTONE_CHART) . '\')">' . BOX_RESOURCES_BIRTHSTONE_COLORS . '</a><br>'.
'<a href="javascript:openclaspselection(\'' . tep_href_link(FILENAME_CLASP_SELECTION) . '\')">' . BOX_RESOURCES_CLASP_SELECTION . '</a><br>'.[/color] '<a href="' . tep_href_link(FILENAME_LINKS) . '">' . LINKS . '</a><br>';
;
// bof BTSv1.2
if(file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php')) {
// if exists, load unique box template for this box from templates/boxes/
require(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php');
}
else {
// load default box template: templates/boxes/box.tpl.php
require(DIR_WS_BOX_TEMPLATES . TEMPLATENAME_BOX);
}
// eof BTSv1.2
?>[color=blue][/color] The files that are called in the above FILENAME_COLOR_CHART is an html file that looks like this: Code:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function openpopup() {
msgWindow = window.open('','newWin','width=100,height=100,screenX=100,screenY=100,top=100,left=100,resizable=1,menubar=0,toolbar=0,scrollbars=0');
msgWindow.location.href = 'http://www.honeybeadjewelry.com/catalog/color_chart_popup.htm';
self.close();
}
// End -->
</script>
<TITLE></TITLE>
<meta name="description" content="Whatever words you want">
<meta name="keywords" content="word, word, a phrase or two, word">
<link rel="STYLESHEET" type="text/css" href="stylesheet.css">
</HEAD>
<BODY class=body onLoad=openpopup() scroll=no> Hope this helps!
Bookmarks