This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2006 > templates are worthless
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
templates are worthless
|
|
| s_mccoy 2006-02-24, 10:15 pm |
| Please tell me there is a reasonable way around this problem. I created a
template page and made a couple areas in the head tag editable such as title
and a stub for adding my own scripts and page specific css. I then made a few
areas within the body tag editable, locking common items such as the main menu
and page footer because I want any changes made to propagate across any pages
built on this template.
So far so good. Now I want to build some page specific navigation and image
swapping functionality but Dreamweaver won't let me preload the images because
the body tag is locked in the template and won't allow enev Dreamweaver to add
images to the onload event in the body (which makes one wonder why does
Dreameaver insist on writing this code in teh body tag and not within a script
tag in the head). Is there a good way to get around Dreamweaver making life
difficult for me or am I going to have to write my own preload code?
| |
|
| if you want to apply image preloads to a templated page, apply the preload
behavior to some image in an editable area, instead of to the <body> tag.
| |
| Murray *TMM* 2006-02-24, 10:15 pm |
| But onLoad event handlers don't fire well on the Mac when they aren't on the
body tag....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Alan" <dont_mail_me_period@macromedia.com> wrote in message
news:C0249955.27FB69%dont_mail_me_period@macromedia.com...
> if you want to apply image preloads to a templated page, apply the preload
> behavior to some image in an editable area, instead of to the <body> tag.
>
>
| |
| s_mccoy 2006-02-24, 10:15 pm |
| OK, I think I've found a solution. I was hoping the preload checkbox in the
swapimage behavior would write to the list in the body tag. Not going to
happen because the template locks it out. Apparently though you can use the
preload behavior itself to override teh template lock. It means a little more
work for not nearly as much as having to write this code myself.
Murray,
I'm using Dreamweaver MX 2004 here at work. I'm going to download this site
to my home PC and see if templates work any better in Dreamweaver 8.
| |
| Murray *TMM* 2006-02-24, 10:15 pm |
| Templates work exactly the same in DW8.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"s_mccoy" <webforumsuser@macromedia.com> wrote in message
news:dtnbig$iab$1@forums.macromedia.com...
> OK, I think I've found a solution. I was hoping the preload checkbox in
> the
> swapimage behavior would write to the list in the body tag. Not going to
> happen because the template locks it out. Apparently though you can use
> the
> preload behavior itself to override teh template lock. It means a little
> more
> work for not nearly as much as having to write this code myself.
>
> Murray,
>
> I'm using Dreamweaver MX 2004 here at work. I'm going to download this
> site
> to my home PC and see if templates work any better in Dreamweaver 8.
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|