PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > Layers & Templates
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Layers & Templates

Réponse
 
LinkBack Outils de la discussion
Vieux 10/04/2008, 12h15   #1
Mick3496
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Layers & Templates

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

  Réponse avec citation
Vieux 10/04/2008, 12h32   #2
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Layers & Templates

> 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
>


  Réponse avec citation
Vieux 10/04/2008, 15h25   #3
Mick3496
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Layers & Templates

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

  Réponse avec citation
Vieux 13/04/2008, 15h22   #4
Mick3496
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Layers & Templates

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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h42.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12718 seconds with 12 queries