// ********************************************************************// // ********************************************************************// // Seidel & Assoc. Script Library - jsLibrary.txt // // Version: 4.0 // // Last Modified: July 29, 2007 // // // // *This library of .js functions and calls, and .css code are // // presented here without guarantee. Attributes and values may need // // configuration to insure accurate functionality.* // // // // For more information on Seidel & Assoc., visit www.conzz.com // // // // Contributors: // // Connie Seidel - Senior Web Designer & Developer // // // // Eric Lee // // Associate Web Designer & Developer/Engineer, Seidel & Assoc. // // // // Jean-Louis Brunet // // Associaiate Web Developer/Engineer, Seidel & Assoc. // // Sr. Engineer, JBL Enterprises, LLC (http://jlbe.net) // // // // WebMonkey // // http://hotwired.lycos.com/webmonkey/ // // // // Anonamous // // // // Various // // // // Similar // // // // Copyright © 1999-2007 by Seidel & Assoc., Freely distributed without// // reservation or warranty, implied or otherwise. For more // // information and our disclaimer, visit: // // http://www.conzz.com/legal4.html // // // // ********************************************************************// // ********************************************************************// // ******************************************************************** // ****************************** BASICS ****************************** // ******************************************************************** // ******************************************************************** // Name: NOSCRIPT // Description: Presents alert message in browsers w/o JavaScript or // w/o JavaScript enabled // Usage: typically no longer used // Syntax: // ******************************************************************** // ******************************************************************** // Name: START - END JAVASCRIPT FUNCTIONS IN HEAD TAG // Description: use to begin and end a js function // Usage: good programming practice // Syntax: // ******************************************************************** // ******************************************************************** // NAME: EXTERNAL LINK FOR CSS REL FILE OR CALL TO EXTERNAL // JS SCRIPT FILE // Description: use to link to external css style sheet or .js file // Usage: typically in head of document, but can be in body // Syntax: // ******************************************************************** or // ******************************************************************** // *********************** CSS & STYLE SCRIPTS ************************ // ******************************************************************** // ******************************************************************** // Name: AMCHOR LINK STYLES // Description: styles to set link's look and feel // Usage: can be used to style specific other styles into anchor // links // Syntax: // ******************************************************************** or // where *style* = named style // ******************************************************************** // Name: BACKGROUND REPEAT OR NO REPEAT // Description: style call in head to set background img and color and // set repeat/norepeat (CSS) // Usage: possible repeat values are: // repeat; // repeat-x; // repeat-y; // no-repeat; // ******************************************************************** // ******************************************************************** // *********************** FORM TAGS & ATTRIBUTES ********************* // ******************************************************************** // ******************************************************************** // Name: OPTION PULLDOWN JUMPTO // Description: jumpto selection within pulldown automatically // Usage: // Syntax: in the body paste: //
// //
// ******************************************************************** // ******************************************************************** // Name: FIELD FOCUS // Description: put cusor in specific form field on page load or Reset // Usage: // Syntax: for body tag // // // for form field tag // Field 1

// // for Reset button // // ******************************************************************** // ******************************************************************** // Name: FORM TO EMAIL AND PRESENT MESSAGE WINDOW // Description: form tag to email form data and present message window // to user on submit // Usage: // Syntax: // ********************************************************************
// ******************************************************************** // *******************IMAGE SWAP & ROLLOVER SCRIPTS ******************* // ******************************************************************** // ******************************************************************** // Name: BASIC IMAGE ON/OFF ROLLOVER // Description: turns images on or off and links to new file // Usage: // Syntax: background
// associates
// ******************************************************************** // ******************************************************************** // Name: BASIC IMAGE SWAP // Description: changes image on rollover and swaps another image, plus // links to new file // Usage: // Syntax: // // // ******************************************************************** // ******************************************************************** // ********************** MISCELLANEOUS SCRIPTS *********************** // ************ WINDOW CLOSE - SHOW DATE - PRELOADER - ETC ************ // ******************************************************************** // ******************************************************************** // Name: "BACK" LINK // Description: link to last page viewed in "history" // Usage: // Syntax: // ******************************************************************** back // ******************************************************************** // Name: WINDOW CLOSER // Description: closes current window (this) // Usage: // Syntax: Close This Window // ******************************************************************** // ************************* or *********************************** // Name: A SIMPLER WINDOW CLOSER // Description: closes current window (this) // Usage: // Syntax: // ******************************************************************** Close This Window // ******************************************************************** // Name: PRELOAD IMAGE // Description: preloads animated gif or other large file before looping it // Usage: goes in head // Syntax: // ******************************************************************** // ******************************************************************** // Name: WRITE CURRENT DATE(1) // Description: gets date from system and writes it into page // Usage: goes in head // Syntax: goes in body where placement wanted: // // ******************************************************************** // ******************************************************************** // Name: WRITE CURRENT DATE(2) // Description: gets date from system and writes it into page // Usage: goes inline in body // Syntax: // ******************************************************************** // ******************************************************************** // Name: WRITE CURRENT DATE(3) // Description: gets date from system and writes it into page // Usage: put js in head or in style.js file // Syntax: // ******************************************************************** //Here is the code which can be in the head or in an include (style.js) file: //does not need to appear in an external .js file! // ******************************************************************** // Name: DATE LASTMODIFIED // Description: writes last modified date to file // Usage: goes in head // Syntax: // ******************************************************************** // ****************************** or ****************************** // ******************************************************************** // Name: GET DATE (FROM MY DAILY QUOTES) // Description: gets system date and writes to page // Usage: // Syntax: // ******************************************************************** // ******************************************************************** // Name: SHOW TIME // Description: code for a page w/clock // Usage: see entire code block below // Syntax: see entire code block below // ********************************************************************

The current time is:


// ******************************************************************** // Name: RANDOM TEXT // Description: selects text randomly from an array // Usage: // Syntax: // ******************************************************************** // ******************************************************************** // *********************** WINDOW PRINT SCRIPTS *********************** // ******************************************************************** // ******************************************************************** // Name: PRINTWINDOW // Description: prints current screen // Usage: does not work on old (3.0 and under) browsers or on // Macs -- **TEST** // Syntax: Print This Page // ******************************************************************** // ******************************************************************** // Name: PRINT PAGE // Description: prints current page with a "button" // Usage: // Syntax:
// ******************************************************************** // ******************************************************************** // Name: WINDOW.PRINT // Description: print this screen (doesn't work with older NS or on Mac) // Usage: // Syntax: // ******************************************************************** a href="javascript:window.print();">Print form // ******************************************************************** // *********************** WINDOW RESIZE SCRIPTS ********************** // ******************************************************************** // ******************************************************************** // Name: RELOAD WINDOW ON RESISE // Description: reloads a window after user resizes // Usage: have to use this in the frameset doc for frame based pages // Syntax: // ******************************************************************** // ******************************************************************** // Name: NETSCAPE CSS WINDOW RESIZE & RELOAD // Description: Netscape funky window resize thing that loses CSS on // window resise from MacroMedia // Usage: have to use this in the frameset doc for frame based pages // Syntax: Just copy and past below code into head // ******************************************************************** // ******************************************************************** // Name: NETSCAPE CSS WINDOW RESIZE BUG FIX // Description: Netscape funky window resize thing that loses CSS on // window resise // Usage: have to use this in the frameset doc for frame based pages // Syntax: Just copy and past below code into head // ******************************************************************** // ******************************************************************** // ****************** WINDOW POPUP & FOCUS SCRIPTS ******************** // ******************************************************************** // ******************************************************************** // Name: BASIC POPUP WINDOW // Description: opens remote popup windows in different named windows. // Usage: // Syntax: Yahoo! // ******************************************************************** // ***************************** or ******************************* // Syntax: Yahoo! // ******************************************************************** // ***************************** or ******************************* // Syntax: Yahoo! // ******************************************************************** // ******************************************************************** // Name: WINDOW FOCUS // Description: gives focus to opened window // Usage: // Syntax: // ******************************************************************** // ******************************************************************** // Name: POPUP WINDOW WITH FOCUS // Description: another popoup I found, the location's a secret -- if I // tell you I'll have to shoot you, or I could give // you a hint and just beat the shit out of you! // Usage: wherever you want a popup with focus // Syntax: Click here // ******************************************************************** // ******************************************************************** // Name: POPUP LINK AND CLOSE // Description: links to new page from popup window and open url in // parent window then closes the popup window // Usage: // Syntax: Sponsor Info Letter // ******************************************************************** // ******************************************************************** // Name: POPUP WINDOW W/FOCUS // Description: pops up a new window and put focus on popup window // Usage: This code opens a remote window, giving it focus. If // the parent window comes back to focus through user // activity, clicking on the link will bring it back into // focus. Also, through the 'name' argument, you can have // multiple popups (by naming each popup window differently) // or continue to use the same popup window (by using the // same name for each). // Note: you can change the 'height' and 'width' arguments // for each popup even while sharing the same window. // Syntax: conzz utilities
// conzz home
// html color chart
// ******************************************************************** // ******************************************************************** // Name: SELF.RESIZETO // Description: Resize current window on opening // Usage: in head of document // Syntax: // ******************************************************************** // or in body tag of document: // ******************************************************************** // Name: WINDOW.FOCUS // Description: Communication arts window.focus for target window // Usage: // Syntax: // ******************************************************************** // ******************************************************************** // Name: popup window on WebTechniques // Description: opens remote popup windows in different named windows. // Usage: // Syntax: // // ******************************************************************** // ******************************************************************** // Name: OPEN & PLACE WINDOW // Description: places a remote window where you want // Usage: // Syntax: Open Window // ******************************************************************** // ***************************** or ******************************* // Note: If you just want to open an existing HTML page in the // new window, you can replace win()'s coding above with: // Syntax: Open Window // ******************************************************************** // ******************************************************************** // ******************************************************************** // Copyright © 1999-2007 by Seidel & Assoc. Freely distributed without // reservation or warranty, implied or otherwise. // ******************************************************************** // ********************************************************************