| Previous | Next | Main Index: Frames | No Frames |
| Document: Frames | No Frames | |
$default_setup_file = 'ws_banner.setup';
$timeout = '';
$timeout = '.167' - 10 seconds
$timeout = '.25' - 15 seconds
$timeout = '.5' - 30 seconds
$timeout = '.75' - 45 seconds
$timeout = '15' - 15 minutes
$timeout = '30' - 30 minutes
$timeout = '45' - 45 minutes
$timeout = '60' - 1 hour
$timeout = '120' - 2 hours
$timeout = '360' - 6 hours
$timeout = '720' - 12 hours
$timeout = '1080' - 18 hours
$timeout = '1440' - 24 hours (1 day)
$timeout = '2880' - 48 hours (2 days)
$max_cycles = '2';
$browser_errors = '1';
Image File not Found
Image File not Readable
Banner Key File Error - Read (banner_timeout.file)
Banner Key File Error - Write (banner_timeout.file)
# $background = ''; # $bgcolor = '#FFFFFF'; # White # $text_color = '#000000'; # Black # $link_color = '#0000FF'; # Blue # $vlink_color = '#0000A0'; # Dark Blue # $alink_color = '#FF0000'; # Red
$graphics_url/$background
$bottom_space = '0';
$top_space = '12';
$left_space = '0';
$right_space = '11';
%images = (
# Keys Elements
'01' => ['banner_01.gif',
'ALT="Random Banners - 5 second refresh rate" WIDTH=400 HEIGHT=45 BORDER=1',
$main_script_url.'?random=Y&refresh=5',
q!TARGET="_self"
onMouseOut="window.status=''; return true"
onMouseOver="window.status='Random Banners - 5 second refresh rate'; return true"!
],
'02' => ['banner_02.gif',
'ALT="Sequential Banners - 5 second refresh rate" WIDTH=312 HEIGHT=40 BORDER=1',
$main_script_url.'?refresh=5',
q!TARGET="_self"
onMouseOut="window.status=''; return true"
onMouseOver="window.status='Sequential Banners - 5 second refresh rate'; return true"!
],
'03' => ['banner_03.gif',
'ALT="Random Banners - 1 minute refresh rate" WIDTH=400 HEIGHT=40 BORDER=1',
$main_script_url.'?random=Y&refresh=60',
q!TARGET="_self"
onMouseOut="window.status=''; return true"
onMouseOver="window.status='Random Banners - 1 minute refresh rate'; return true"!
],
'04' => ['banner_04.gif',
'ALT="Sequential Banners - 1 minute refresh rate" WIDTH=400 HEIGHT=40 BORDER=1',
$main_script_url.'?refresh=60',
q!TARGET="_self"
onMouseOut="window.status=''; return true"
onMouseOver="window.status='Sequential Banners - 1 minute refresh rate'; return true"!
],
'05' => ['banner_05.gif',
'ALT="Solid Herringbone Shirt - Database Item" WIDTH=400 HEIGHT=40 BORDER=1',
$script_url.'/ws400CS.cgi?category=6&store=outlet&cart_id=',
q!TARGET="main"
onMouseOut="window.status=''; return true"
onMouseOver="window.status='Solid Herringbone Shirt - Database Item'; return true"!
],
'06' => ['banner_06.gif',
'ALT="Crew-Neck Sweater - Database Item" WIDTH=400 HEIGHT=40 BORDER=1',
$script_url.'/ws400CS.cgi?category=9&store=outlet&cart_id=',
q!TARGET="main"
onMouseOut="window.status=''; return true"
onMouseOver="window.status='Crew-Neck Sweater - Database Item'; return true"!
],
'07' => ['banner_07.gif',
'ALT="Outer Wear - Category Front Page" WIDTH=400 HEIGHT=40 BORDER=1',
$script_url.'/ws400CS.cgi?category=Outerwear.html&store=outlet&cart_id=',
q!TARGET="main"
onMouseOut="window.status=''; return true"
onMouseOver="window.status='Outer Wear - Category Front Page'; return true"!
],
'08' => ['banner_08.gif',
'ALT="Shirts - Category Front Page" WIDTH=400 HEIGHT=40 BORDER=1',
$script_url.'/ws400CS.cgi?category=Shirts.html&store=outlet&cart_id=',
q!TARGET="main"
onMouseOut="window.status=''; return true"
onMouseOver="window.status='Shirts - Category Front Page'; return true"!
],
'09' => ['banner_09.gif',
'ALT="Sweaters - Category Front Page" WIDTH=400 HEIGHT=40 BORDER=1',
$script_url.'/ws400CS.cgi?category=Sweaters.html&store=outlet&cart_id=',
q!TARGET="main"
onMouseOut="window.status=''; return true"
onMouseOver="window.status='Sweaters - Category Front Page'; return true"!
],
'10' => ['banner_10.gif',
'ALT="Store Front Page" WIDTH=400 HEIGHT=40 BORDER=1',
$script_url.'/ws400CS.cgi?frontpage=Y&store=outlet&cart_id=',
q!TARGET="main"
onMouseOut="window.status=''; return true"
onMouseOver="window.status='Store Front Page'; return true"!
],
); # DO NOT REMOVE - terminates %images
| zero | Image filename - REQUIRED | |
| one | Image file attributes | |
| two | URL wrapped around image file in an <A HREF> tag. <A HREF=""> and </A> are generated by this script when element two is present for an image. | |
| three | URL's attributes (onMouseOver, onMouseOut, TARGET=, etc.) | |
Normal Generic *Interpolates
------ ------- ------------
' q// No
" qq// Yes
* Interpolate: The insertion of text derived from a
Perl variable.
| Value for cart_id= not Present in URL Value for cart_id= must be passed to ws_banner.cgi from the WebStore script |
| Not Enough Images for Display Minimum of two banner images must be defined in %images |
| Image File does not Exist: $images{03}[0] /Path/To/Web_store/Graphics/Banners/banner_03.gif |
| Image File is not Readable: %images{04}[0] /Path/To/Web_store/Graphics/Banners/banner_04.gif |
| Banner Key File Error - Read Could not read from /Path/To/Web_store/User_carts/banner_timeout.file |
banner_timeout.file File Permissions:
666 - File is owned by your domain's UserID
666 - File is script-generated, owned by 'nobody'
| Banner Key File Error - Write Could not write to /Path/To/Web_store/User_carts/banner_timeout.file |
banner_timeout.file File Permissions:
666 - File is owned by your domain's UserID
666 - File is script-generated, owned by 'nobody'
http://www.YourDomain.xxx/Web_store/ws_banner.cgi?refresh=60&cart_id=
cart_id=
cart_id=xxxxxxxxxxxxx&store=outlet.setup
xxxxxxxxxxxxx = the shopping cart assigned to the client
outlet.setup = the store's setup file
The value of cart_id= must be passed to ws_banner.cgi in order to TARGET
the main frame containing the WebStore application using <A HREF>
anchors wrapped around banner images:
<A HREF="ws400CS.cgi?cart_id=xxx" TARGET="main"><IMG SRC="Banner Image"></A>
ws_banner.cgi internally renames cart_id= to banner_id= for use in <meta Refresh> tags.
random=Y
refresh=xxx
?refresh=xxx&cart_id=
?random=Y&refresh=xxx&cart_id=
frame documents:
<FRAME NAME="banner" SRC="http://www.YourDomain.xxx/ws_banner.cgi?refresh=xxx&cart_id="
SCROLLING="auto" MARGINWIDTH=1 MARGINHEIGHT=1>
HTML documents:
<A HREF="http://www.YourDomain.xxx/ws_banner.cgi?refresh=xxx&cart_id=" TARGET="banner">
<A HREF="http://www.YourDomain.xxx/ws_banner.cgi?random=Y&refresh=xxx&cart_id=" TARGET="banner">
$main_script_url.'?random=Y&refresh=5'
"$main_script_url\?random=Y\&refresh=5"
$script_url.'/ws400CS.cgi?category=CategoryFrontpage&store=outlet&cart_id='
'http://www.YourDomain.xxx/Web_store/ws400CS.cgi?category=CategoryFrontpage&store=outlet&cart_id='
1; # DO NOT REMOVE IN ws_banner.setup # End of file