Forum Moderators: open

Message Too Old, No Replies

setting editable region for <body> and <head>

         

smagdy

4:04 pm on Dec 4, 2004 (gmt 0)

10+ Year Member



How to set editable region for body and head tags in dreamweaver... I can just set it for tables so how to do it for what i mention above?

thanks in advance

nancyb

4:44 pm on Dec 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



what version of DW are you using?

just curious, why would you want to set the entire <body></body> as an editabal region? Usually you create a template so that there are some site wide standard areas of the page/directory, i.e. the nav scheme, a logo, header, footer, etc. If you use the entire body as an editabal region then those standard parts of the page could be inadvertently changed <added> when you only wanted to change one area for instance a table size, header area, or footer. </added>

smagdy

7:02 pm on Dec 4, 2004 (gmt 0)

10+ Year Member



I want that so I can write javascript in headers and also for ex. to write javascript to happen onLoad in the body tag.

smagdy

11:06 am on Dec 5, 2004 (gmt 0)

10+ Year Member



am using DW MX 2004... so any solution please?

sonjay

1:28 pm on Dec 5, 2004 (gmt 0)

10+ Year Member



You can't make the entire <head> an editable region in DW, nor can you make the <body> tag an editable region. However, DW MX2004 should automatically put an editable region inside your <head> tag. You can put javascript or other page-specific stuff in there.

Also, you can set your body tag to have an editable attribute -- such as onLoad -- that you can change on individual pages. For pages with no onLoad event, it will just become onLoad="" with an empty value.