Forums / Templates, Stylesheets, Page Layout / where do i place dhtml in site

where do i place dhtml in site

Locked

Views: 1,007

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
23 Mar 2009, 3:46 AM
#1
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

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 (<https://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>
23 Mar 2009, 7:14 AM
#2
mickyelta avatar

mickyelta

New Zenner

Join Date:
Nov 2006
Posts:
67
Plugin Contributions:
0

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