Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Location
    Niagara Ontario
    Posts
    135
    Plugin Contributions
    0

    Default Javascript window.onload=function placement

    In an HTML doc I would place this is the head section of the document. like <script type="text/javascript">window.onload=function etc. </script>

    Have had no luck doing so with the PHP ' includes system ' inserting in 'html_header.php'

    Suggestions ?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Javascript window.onload=function placement

    Have you tried the Zen Cart system described in the wiki?
    http://www.zen-cart.com/wiki/index.p...s_-_Javascript
    Site-Wide jscript's

    jscript*.js files -- to be "linked" by your site

    Any file in the includes/templates/{template_directory}/jscript/ directory with the following filename format will be loaded globally on every page of your shop:

    jscript_{unique_name}.js

    (where {unique_name} can be anything you want)

    Effectively, the file will be loaded as if you had inserted the following into an HTML page:

    <script language="javascript" src="includes/templates/{template_directory}/jscript/jscript_{unique_name}.js"></script>

  3. #3
    Join Date
    Mar 2009
    Location
    Niagara Ontario
    Posts
    135
    Plugin Contributions
    0

    Default Re: Javascript window.onload=function placement

    yes I have.Successfully with a copywright script but unsuccessfully with this particular script--> will check my typing and repost

 

 

Similar Threads

  1. Javascript popup window. What am I missing?
    By rovinghouse in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Dec 2010, 07:06 PM
  2. Creating a javascript popup window?
    By stlnyc in forum General Questions
    Replies: 1
    Last Post: 18 May 2009, 01:54 PM
  3. Google Analytics javascript placement
    By coucho in forum General Questions
    Replies: 13
    Last Post: 17 Dec 2008, 07:10 AM
  4. javascript window
    By buildingblocks in forum General Questions
    Replies: 4
    Last Post: 20 Jul 2008, 02:03 PM
  5. Custom function upon successful order placement
    By Gwixel in forum General Questions
    Replies: 8
    Last Post: 17 May 2008, 06:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg