Ask a Question related to Dreamweaver AppDev, Design and Development.
-
ericMorcombe #1
ASP Functions & Style Sheets
Can anyone tell me if it's possible to attach style sheets to functions. <%
Function answerTypeA(A) If A = 1 then A = 'Never' elseIf A = 2 then A =
'Seldom' elseIf A = 3 then A = 'Sometimes' elseIf A = 4 then A = 'Often'
elseIf A = 5 then A = 'Always' End If Response.Write A End Function What
I''m trying to do is have a different colour for each option. Or is there
another way to change the text colour?
ericMorcombe Guest
-
External style sheets
Well youd think this would be pretty straight forward but no matter what i do i dont get any changes in my app. I have tried defining the style... -
Lost style sheets
Style sheets are not being seen by browsers when saved by DW. When I save a set of files with their external style sheet, browsers are not able to... -
Style Sheets and Transitions
I am not sure this is an appropriate question here, but I am using CSS to basically change an element on the screen based on a "timer" I would like... -
Style Sheets
Can anyone tell me what a good dreamweaver book is on learning CSS? What do's and don'ts can you advise me in? Kelly -
Using external style sheets
You shouldn't have any trouble. What does the URL of the stylesheet link look like? -- HTH, Kevin Spencer ..Net Developer Microsoft MVP... -
Paul Whitham TMM #2
Re: ASP Functions & Style Sheets
As ASP code is executed before the page is rendered in the browser you can
write you CSS dynamically. Simply place your IF statement where the color of
the element is defined.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"ericMorcombe" <webforumsuser@macromedia.com> wrote in message
news:d48jfk$kpo$1@forums.macromedia.com...<%> Can anyone tell me if it's possible to attach style sheets to functions.What> Function answerTypeA(A) If A = 1 then A = 'Never' elseIf A = 2 then A =
> 'Seldom' elseIf A = 3 then A = 'Sometimes' elseIf A = 4 then A = 'Often'
> elseIf A = 5 then A = 'Always' End If Response.Write A End Function> I''m trying to do is have a different colour for each option. Or is there
> another way to change the text colour?
>
Paul Whitham TMM Guest
-
ericMorcombe #3
Re: ASP Functions & Style Sheets
Bit new at this Paul. Could you provide an example of code please?
ericMorcombe Guest
-
Paul Whitham TMM #4
Re: ASP Functions & Style Sheets
Try something like this to dynamically set a color based on a value stored
in a database
<!--
..style1 {
font-family: Georgia, "Times New Roman", Times, serif;
color: <%=recordset.fields.item("color").value%>;
}
-->
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"ericMorcombe" <webforumsuser@macromedia.com> wrote in message
news:d4dmtg$4dp$1@forums.macromedia.com...> Bit new at this Paul. Could you provide an example of code please?
Paul Whitham TMM Guest



Reply With Quote

