inserting javascript between <head> tags on template based page???

message from laura on 20 Jul 2004
hi!

i need to add some javascript between the head tags of 10 pages of my site
(this is for click-thru tracking). this should be simple enough, but i use
a template for all my pages.

i don't want the javascript on all my pages, otherwise i would insert it in
the template and i don't want to unattach the few pages from the template
either (i don't want to have to manually update 11 pages every time there is
a change in navigation).

i know i once was able to insert an "editable" tag into the template head,
which would leave an editable area in all my pages, but i can't find the tag
information and am not sure if it is still possible with the new version of
dreamweaver.

is there a workaround for this?

i'm using dreamweaver mx 2004 v7.0.1
windows xp professional

thanks

http://www.custombrokerage.com
 
Murray *TMM* replied to laura on 20 Jul 2004
If the template was created in DMX or DMX2004, then there is an editable
region already in the head for you to use for just exactly this purpose on
any given child page. DW will be smart enough to add behavior javascript to
this region when applying a behavior to a child page.

It the template was created in DW4, or was not properly created in DMX or
DMX2004, then this region may not be there, in which case you can add it
manually. Just open the Template page and enter the following code, save
the template and allow all child pages to update....

<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
 
laura replied to Murray *TMM* on 20 Jul 2004
Thanks Murray!!

yay! ::runs off to edit the template::

Laura

"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:cdjtor$s1t$1@forums.macromedia.com...
 
Murray *TMM* replied to laura on 20 Jul 2004
You're welcome....
 

Archived message: inserting javascript between <head> tags on template based page??? (Macromedia Dreamweaver Web Design)