Re: [Zope] html expertise anyone.
Robin Becker <robin@jessikat.fsnet.co.uk> writes:
I am trying to change the colour of links dynamically using dtml. However, I cannot find the right incantation to change my links using an inline style except for
<a href=A style="color: red">A</a>
Do you mean something like <a href="A" style="color: &dtml-linkcolor;">A</a> I guess this is dynamic at page load time. Perhaps you want the colors to change without refreshing the page ? -Simon
In article <87snoc3wvf.fsf@joyful.com>, Simon Michael <simon@joyful.com> writes
Robin Becker <robin@jessikat.fsnet.co.uk> writes:
I am trying to change the colour of links dynamically using dtml. However, I cannot find the right incantation to change my links using an inline style except for
<a href=A style="color: red">A</a>
Do you mean something like
<a href="A" style="color: &dtml-linkcolor;">A</a>
I guess this is dynamic at page load time. Perhaps you want the colors to change without refreshing the page ?
-Simon ... I know about the style="color: red" type of inline, I was looking for the :link, :active, :visited etc attributes for inline style. I can't seem to get these to work. The color attribute seems to set all of the states. -- Robin Becker
On Tue, 28 Nov 2000, Robin Becker wrote:
I know about the style="color: red" type of inline, I was looking for the :link, :active, :visited etc attributes for inline style. I can't seem to get these to work. The color attribute seems to set all of the states.
I think it's impossible to set pseudoclasses inline. Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
I think this is a css question and not related to DTML. Go to http://freezope.nipltd.net/dna and you will see a simple style sheet that shows use of active and visited links. -- Andy McKay, Developer. ActiveState. ----- Original Message ----- From: "Oleg Broytmann" <phd@phd.russ.ru> To: "Robin Becker" <robin@jessikat.fsnet.co.uk> Cc: <zope@zope.org> Sent: Tuesday, November 28, 2000 9:15 AM Subject: Re: [Zope] html expertise anyone.
On Tue, 28 Nov 2000, Robin Becker wrote:
I know about the style="color: red" type of inline, I was looking for the :link, :active, :visited etc attributes for inline style. I can't seem to get these to work. The color attribute seems to set all of the states.
I think it's impossible to set pseudoclasses inline.
Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
In article <009c01c05961$a584d6a0$ae03a8c0@fork>, Andy McKay <andym@ActiveState.com> writes
I think this is a css question and not related to DTML. Go to http://freezope.nipltd.net/dna and you will see a simple style sheet that shows use of active and visited links. -- ... yes I know how to set up style sheets; what I want is to be able to use inline definitions for the :link, :active, :visited (:hover) colours. I just don't know the correct incantation. -- Robin Becker
Robin, My educated guess is that what you want can't be achieved other than with css. The <a> tag has no properties for changing colors of one particular link. The <body> tag is the only place for this and as you know this changes them globally. This taken from the HTML reference Library: <A HREF="link_destination" NAME="URL_fragment" TITLE="Title_of_destination" REL="Forward_relationship" REV="Reverse_relationship" URN="Uniform_Resource_Name" METHODS="Function_information" TARGET="Name_of_target_window_or_frameset" ACCESSKEY="Shortcut_setting" LANG="Document language" LANGUAGE="Script_language" INDEXSTRING="NetHelp_index_keyword" TOCSTRING="NetHelp_contents_entry" CLASS="className" ID="unique_id" STYLE="style_setting" DATAFLD="Column name" DATASRC="Data Source"
From the horses mouth so to speak :(.
If I needed to do this I'd use css in some way. Phil ----- Original Message ----- From: "Robin Becker" <robin@jessikat.fsnet.co.uk> To: <zope@zope.org> Sent: Tuesday, November 28, 2000 11:22 PM Subject: Re: [Zope] html expertise anyone. | In article <009c01c05961$a584d6a0$ae03a8c0@fork>, Andy McKay | <andym@ActiveState.com> writes | >I think this is a css question and not related to DTML. Go to | >http://freezope.nipltd.net/dna and you will see a simple style sheet that | >shows use of active and visited links. | >-- | ... | yes I know how to set up style sheets; what I want is to be able to use | inline definitions for the :link, :active, :visited (:hover) colours. I | just don't know the correct incantation. | -- | Robin Becker | | _______________________________________________ | Zope maillist - Zope@zope.org | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev )
In article <00a501c05999$460c1840$0202a8c0@typhoon>, Phil Harris <phil.harris@zope.co.uk> writes
Robin,
My educated guess is that what you want can't be achieved other than with css.
The <a> tag has no properties for changing colors of one particular link.
The <body> tag is the only place for this and as you know this changes them globally.
This taken from the HTML reference Library:
<A HREF="link_destination" NAME="URL_fragment" TITLE="Title_of_destination" REL="Forward_relationship" REV="Reverse_relationship" URN="Uniform_Resource_Name" METHODS="Function_information" TARGET="Name_of_target_window_or_frameset" ACCESSKEY="Shortcut_setting" LANG="Document language" LANGUAGE="Script_language" INDEXSTRING="NetHelp_index_keyword" TOCSTRING="NetHelp_contents_entry" CLASS="className" ID="unique_id" STYLE="style_setting" DATAFLD="Column name" DATASRC="Data Source"
this isn't complete as it's easy to show that <a style="color: red" href=url>text</a> does work as do inlines for font-weight etc. The problem is that the CSS attributes are :link, etc ie pseudo classes and there doesn't seem to be any way to get at class values in inline styles. I'm using named CSS classes, but the complexities of CSS are a bit of a pain. -- Robin Becker
participants (5)
-
Andy McKay -
Oleg Broytmann -
Phil Harris -
Robin Becker -
Simon Michael