Rich, just so you know in the message I just sent, I am only using one . in front of each class that is being defined, that is strange it changed it to ... It should work both ways though. Nathan -----Original Message----- From: Nathan Nelson [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 10:35 PM To: Fusebox Subject: RE: CSS Sure, CSS can be dynamic if you use embedded style sheets. I am using them on a Calendar Application http://demo.cfdynamics.com/cfdcalendar If you go to the personalize option, you can choose which color scheme you want. Each color scheme uses the same CSS and it is generated from a database depending on what color scheme you choose. I have found that only defining classes works and it has to be in the <HEAD></HEAD>, I do this in the app_layout.cfm <HEAD> <cfoutput> <!--- dynamic stylesheet ---> <style> ...calendarborder { background-color: #get_style.calendarborder#; } ...weekend { background-color: #get_style.weekend#; color: #get_style.weekend_textcolor#;} ...weekday { background-color: #get_style.weekday#; color: #get_style.weekday_textcolor#;} ...weekdaylinks { text-decoration: none; color: #get_style.weekdaylinks#; } ...weekdaylinks:Hover { text-decoration: underline; color: #get_style.weekdaylinks_hover#; } ...weekendlinks { text-decoration: none; color: #get_style.weekendlinks#; } ...weekendlinks:Hover { text-decoration: underline; color: #get_style.weekendlinks_hover#; } BODY { font-family : Verdana, Arial, Helvetica, sans-serif ; font-size : 10pt; background-color : #get_style.body_bgcolor# ; color: #get_style.body_textcolor# ; } </style> </cfoutput> </HEAD> Defining ID's just doesn't work because of the pound signs. I am looking for an error proof way that anybody can make a custom color scheme or style sheet for their calendar. That could one ugly form trying to keep error proof, most people don't know hexadecimal values for colors, and it would be easy for a user to choose strange colors so they couldn't see the text and then what would they do? To all of you out there, I am looking for some type of color palette that uses JavaScript to update form fields. If anyone has seen one of these, please let me know. Thanks, Nathan Nelson Cold Fusion Developer CFDynamics Konnections, Inc. www.cfdynamics.com www.konnections.com (801)621-8511 -----Original Message----- From: ibtoad [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 9:19 PM To: Fusebox Subject: RE: CSS Can CSS be dynamic or do they have to be manually updated? Rich -----Original Message----- From: Emilio [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 11:29 PM To: Fusebox Subject: RE: CSS CSS rocks!! It opens the doors to interacting with all your HTML programmatically. When you get the hang of modifying simple things like border styles and positioning you start to find that almost everything in your web page can be scripted. For instance you can use a series of DIV's to construct a menu. Through CSS you can define an "off" state background color and use the DOM to switch the color when the user rolls their mouse over the contents of the DIV. <div style="background-color:CCCCCC" onmouseover="this.runtimeStyle.backgroundColor='FF0000'" onmouseout="this.runtimeStyle.backgroundColor=''">text</DIV> This is super fast and uses built in functionality that the browser( dodgy IE5.5/NS6 ) supports...because of the thought put into the CSS API you can start doing whacky things when you get the hang of it: I just found this out myself; You can have a xml file that contains syndicated news from where ever. You can drop the XML DOM into the browser <XML SRC="http://localhost/xmlFile.xml"></XML> and through that API you can grab all the data, underlying structure, datatype declarations and any style information that came with the XML document. this means you can script connectivity between HTML,CSS,XML,XSL,Flash (flash likes xml) anything...So outside of font definitions there is a freakin shed load you can do with CSS. there is something new everyday on MSDN and it gets more wiggy with things like VML/SVG which allows you to use CSS to exactly construct interfaces with no HTML. Go into word and start drawing...look at that source code...vml...see what you can do in word...everything there is scriptable....svg poses to allow for photoshop filtering via script...err..CSS..err..javascript phewph *breath* Cheers, Emilio ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
