HighDots Forums  

Locking a style to a specific page

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Locking a style to a specific page in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Locking a style to a specific page - 11-13-2004 , 04:34 AM






Eehhh... sorry about strange subject line, but could not make it more
descriptive.

At my site http://www.proformica.com I have the menu brought into the
pages by SSI. I would like to explore a way to "lock" a certain style to
the page that's opened to make clear for the user where he is. E.g. when
someone goes to "marketing services" I want that particular menu item to
stay as is does when hovered. Or something else that's different.

I have considered two ways. The first need me to stop using the include,
add the menu to each individual page and then add a certain style to the
menu item on each individual page. I don't want to go that way since
it'll create other drawbacks.

The second way would be to apply two styles to each list item. First the
"general style" that goes for the entire menu. Then and additional class
called e.g. "item1" for the first menu item, "item2" for the second, and
so on, and then put each of those styles in the head of the page with
the corresponding menu item (or a link to an external sheet), hoping
that this will over-ride the styles in the style sheet. (I have a
feeling I did not explain that very well, but hope that you're smart
enough to understand what I mean anyway).

Are there any other ways that I can do this? Or am I on the right path
here? Suggestions? Non-nos? Any special browser quirks?

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that
you can ask here! (get Skype at http://skype.com)

Reply With Quote
  #2  
Old   
Pablo
 
Posts: n/a

Default Re: Locking a style to a specific page - 11-13-2004 , 04:43 AM






Hi Dan

Get rid of the ssi, go here http://www.showstoppers.org.uk/ click on Thanks
and Links, you will notice the link colour is red, this is cool I think
because I know I am on that page.

Stay cool and design like a pro Man.

Cheers

Pablo


"Dan Vendel *GOF*" <see_my_signature_ (AT) _the_bottom_of_the_po (DOT) st> a écrit dans
le message de news: cn4ke9$9tl$2 (AT) forums (DOT) macromedia.com...
Quote:
Eehhh... sorry about strange subject line, but could not make it more
descriptive.

At my site http://www.proformica.com I have the menu brought into the
pages by SSI. I would like to explore a way to "lock" a certain style to
the page that's opened to make clear for the user where he is. E.g. when
someone goes to "marketing services" I want that particular menu item to
stay as is does when hovered. Or something else that's different.

I have considered two ways. The first need me to stop using the include,
add the menu to each individual page and then add a certain style to the
menu item on each individual page. I don't want to go that way since
it'll create other drawbacks.

The second way would be to apply two styles to each list item. First the
"general style" that goes for the entire menu. Then and additional class
called e.g. "item1" for the first menu item, "item2" for the second, and
so on, and then put each of those styles in the head of the page with
the corresponding menu item (or a link to an external sheet), hoping
that this will over-ride the styles in the style sheet. (I have a
feeling I did not explain that very well, but hope that you're smart
enough to understand what I mean anyway).

Are there any other ways that I can do this? Or am I on the right path
here? Suggestions? Non-nos? Any special browser quirks?

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that
you can ask here! (get Skype at http://skype.com)



Reply With Quote
  #3  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: Locking a style to a specific page - 11-13-2004 , 04:53 AM



Pablo wrote:

Quote:
Hi Dan

Get rid of the ssi, go here http://www.showstoppers.org.uk/ click on Thanks
and Links, you will notice the link colour is red, this is cool I think
because I know I am on that page.

Stay cool and design like a pro Man.
Yes, I had something like showstoppers in mind (BTW: how do you
pronounce that? "showstoppers-or-yuk"?) but the learning curve to
achieve that makes me hesitate. I was also thinking of doing something
like they have at http://www.playtimepiano.com/ with plonk-and-plink and
that StarWars fade way text.

Can I do that?

Please advise.

PS: Are you on your way home from the pub?

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that
you can ask here! (get Skype at http://skype.com)


Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Locking a style to a specific page - 11-13-2004 , 08:21 AM



Dan:

This is simple simon.

I do it on the furniture site.

Here are the links in the menu -

<a href="index.asp" id="button1">Home</a><a href="c_bespoke.asp"
id="button2" title="Built-to-Order furniture">Bespoke</a><a
href="c_english.asp" id="button3">English Oak</a><a href="c_french.asp"
id="button4" onMouseOver="

and so on. Note that each link has a unique ID.

In the head of each page, I have this -

<style type="text/css">
<!--
#button1 {
color: #F5D1B1;
background-color: #999999;
}
-->
</style>


By changing the number on the button style, I can specify which button gets
depressed, so to speak. Capiche?

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

"Dan Vendel *GOF*" <see_my_signature_ (AT) _the_bottom_of_the_po (DOT) st> wrote in
message news:cn4ke9$9tl$2 (AT) forums (DOT) macromedia.com...
Quote:
Eehhh... sorry about strange subject line, but could not make it more
descriptive.

At my site http://www.proformica.com I have the menu brought into the
pages by SSI. I would like to explore a way to "lock" a certain style to
the page that's opened to make clear for the user where he is. E.g. when
someone goes to "marketing services" I want that particular menu item to
stay as is does when hovered. Or something else that's different.

I have considered two ways. The first need me to stop using the include,
add the menu to each individual page and then add a certain style to the
menu item on each individual page. I don't want to go that way since it'll
create other drawbacks.

The second way would be to apply two styles to each list item. First the
"general style" that goes for the entire menu. Then and additional class
called e.g. "item1" for the first menu item, "item2" for the second, and
so on, and then put each of those styles in the head of the page with the
corresponding menu item (or a link to an external sheet), hoping that this
will over-ride the styles in the style sheet. (I have a feeling I did not
explain that very well, but hope that you're smart enough to understand
what I mean anyway).

Are there any other ways that I can do this? Or am I on the right path
here? Suggestions? Non-nos? Any special browser quirks?

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that you
can ask here! (get Skype at http://skype.com)



Reply With Quote
  #5  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: Locking a style to a specific page - 11-13-2004 , 08:41 AM



Murray *TMM* wrote:
Quote:
Capiche?
Capisca.
Fatto già. Impianti. Molti ringraziamenti.

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that
you can ask here! (get Skype at http://skype.com)


Reply With Quote
  #6  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: Locking a style to a specific page - 11-13-2004 , 09:00 AM



Dan Vendel *GOF* wrote:

Quote:
Murray *TMM* wrote:

Capiche?


Capisca.
Fatto già. Impianti. Molti ringraziamenti.

Which means:
Understand. Done already. Works. Many thanks. :-)

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that
you can ask here! (get Skype at http://skype.com)


Reply With Quote
  #7  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Locking a style to a specific page - 11-13-2004 , 09:05 AM



Prego.... 8)

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

"Dan Vendel *GOF*" <see_my_signature_ (AT) _the_bottom_of_the_po (DOT) st> wrote in
message news:cn542p$djg$5 (AT) forums (DOT) macromedia.com...
Quote:
Dan Vendel *GOF* wrote:

Murray *TMM* wrote:

Capiche?


Capisca.
Fatto già. Impianti. Molti ringraziamenti.


Which means:
Understand. Done already. Works. Many thanks. :-)

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that you
can ask here! (get Skype at http://skype.com)



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.