|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi - is it possible to use a layer/AP Div together with the show/hide behavior
on a DW page which is based on a DW template? If you try to draw a layer or AP Div it's invisible in design view but the div is placed on the code and the necessary CSS styling is there but the template markup prevents DW recognising the DIV as a layer or AP div and therefore the show/hide behavior doesn't work. I would like to use this technique on pages based on a DW template - is there a way? Thanks, Mick |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
> Hi - is it possible to use a layer/AP Div together with the show/hide
> behavior > on a DW page which is based on a DW template? Certainly. Since all the answers are in the code, and since we cannot fully understand what you are describing without looking at that code, can you show us what you have done so far, please? -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "Mick3496" <webforumsuser@macromedia.com> wrote in message news:ftkstc$jhd$1@forums.macromedia.com... > Hi - is it possible to use a layer/AP Div together with the show/hide > behavior > on a DW page which is based on a DW template? > If you try to draw a layer or AP Div it's invisible in design view but the > div > is placed on the code and the necessary CSS styling is there but the > template > markup prevents DW recognising the DIV as a layer or AP div and therefore > the > show/hide behavior doesn't work. > I would like to use this technique on pages based on a DW template - is > there > a way? > > Thanks, > Mick > |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Here is a link to the page....
http://www.trek.emenet.co.uk/template_based.html I think I've solved most of the issues but maybe I'm missing something. I'm using DW8, I found that if I 'draw' the 'layer' by clicking the icon on the insert toolbar the layer div is invisible in design view, the div tag is placed after the closing html tag and the show/hide behaviour doesn't work. However if I position the cursor within the editable region and the containing div and insert the layer using the insert menu (Insert>Layout Objects>Layer) then the layer div is placed at the cursor position and is visible in design view. This is better because the absolute positioning is then relative to the containing div rather than the enitire page (am I right?). Using this method I am then able to get the show/hide behavior working as the example shows. The only issue I'm left with is that the layer doesn't appear in the layers panel and in order to select it to work with I have to go to code view and select the div from there. Can I get the layer to appear in the layers panel? Does CS3 behave in the same way? Thanks, Mick |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Hmmm.
If you 'draw' the layer on a page based on a template the layer div is placed after the closing html tag - no good. However if you insert the layer using Insert>Layout Objects>Layer it inserts the layer at the cursor position which as I say is better because the position is then relative to the containing div. The problem I'm having is that the 'layer' doesn't appear on the layers panel in design view when placed on a template based page. I've insert the layer on a template based page and a page detached from the template and apart from the template mark-up the code is identical - just seems that DW8 doesn't recognise it as a 'layer'. This means that if the layer is 'hidden' selecting it involves switching to code view and back again |
|
![]() |
| Outils de la discussion | |
|
|