Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Posts
    333
    Plugin Contributions
    0

    Default where do i place dhtml in site

    hello all, i have some dhtml script that i would like to place on my site.

    there is a piece that needs to go between the <header> tags and a piece that needs to go between the <body> tags of the site..

    which file should they be pasted in?

    here is the script

    <html>

    <head>
    <link rel="stylesheet" href="windowfiles/dhtmlwindow.css" type="text/css" />

    <script type="text/javascript" src="windowfiles/dhtmlwindow.js">

    /***********************************************
    * DHTML Window Widget- © Dynamic Drive (www.dynamicdrive.com)
    * This notice must stay intact for legal use.
    * Visit http://www.dynamicdrive.com/ for full source code
    ***********************************************/

    </script>
    </head>

    <body>

    <!-- 1) DHTML Window Example 1: -->

    <script type="text/javascript">

    var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://images.google.com/", "#1: Google Web site", "width=700px,height=450px,resize=1,scrolling=1,center=1", "recal")

    googlewin.onclose=function(){ //Run custom code when window is being closed (return false to cancel action):
    return window.confirm("Close window 1?")
    }

    </script>

    </body>

    </html>

  2. #2
    Join Date
    Nov 2006
    Posts
    69
    Plugin Contributions
    0

    Default Re: where do i place dhtml in site

    easy way while probably not the right way to do it is
    script above the head tag put in /includes/templates/your_template/common/html_header.php. you may need to copy it there from templates default.

    script below head tag put in /includes/tamplates/your_template/common/tpl_main_page.php same as above you may need to copy it from templates_default

 

 

Similar Threads

  1. Where to place a Javascript?
    By evil turinp in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Aug 2010, 07:30 PM
  2. Where to place picture files?
    By jasonhoward64 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Oct 2009, 09:08 PM
  3. Category bg button image - where to place?
    By beyre in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 8 Mar 2009, 10:47 PM
  4. Where to place extra images?
    By mcpisik in forum Basic Configuration
    Replies: 4
    Last Post: 25 Jul 2007, 08:02 AM
  5. Where to place a php site ...?
    By mcpisik in forum General Questions
    Replies: 1
    Last Post: 17 Apr 2007, 05:36 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