Search found 8 matches

by Dazulrich
Fri Oct 13, 2006 1:42 am
Forum: PHP - Code
Topic: Noob question: assign color (hex) values via CSS ??
Replies: 19
Views: 1221

ok, I think I finally copped it... Lesson1: Try to understand what the code is doing before asking stupid questions you can't explain properly.... I think I will go about the whole problem differently. Basically what the code is doing is highlighting table cells on hover with with different colors d...
by Dazulrich
Thu Oct 12, 2006 5:34 pm
Forum: PHP - Code
Topic: Noob question: assign color (hex) values via CSS ??
Replies: 19
Views: 1221

thanks Ole.. but when I read those colors from SomeColors.php into the css and use that for the html output of my php file - I still have two different places where I define define colors... (like I have now) I will send you PM trying to explain it with more details. @cinac: I don't think I can't ke...
by Dazulrich
Thu Oct 12, 2006 1:16 am
Forum: PHP - Code
Topic: Noob question: assign color (hex) values via CSS ??
Replies: 19
Views: 1221

I spent some time playing around with it - and I feel like giving up on that idea. Maybe one last attempt illustrating my desire... I have a CSS file which I'd like to use for all color definitions (its long already). I have 4 color defs inside a php file. $col1='#FFFFFF', col2='#..',etc. I need the...
by Dazulrich
Mon Oct 09, 2006 11:05 pm
Forum: PHP - Code
Topic: Noob question: assign color (hex) values via CSS ??
Replies: 19
Views: 1221

Ole, that works for inline CSS, but I haven't manage to make that work with external CSS file.... when I put that as php code into php parsed css file, I don't get anything. But its a good starting point I guess. As I want to hand over more than just a single value. I don't want to use inline CSS - ...
by Dazulrich
Mon Oct 09, 2006 5:33 pm
Forum: PHP - Code
Topic: Noob question: assign color (hex) values via CSS ??
Replies: 19
Views: 1221

thanks guys. I'll try that once I'll get home.
by Dazulrich
Mon Oct 09, 2006 4:58 pm
Forum: PHP - Code
Topic: Noob question: assign color (hex) values via CSS ??
Replies: 19
Views: 1221

Ole, I know i'm not the best to explain my problem... maybe simplified one could say. instead of $variable='#FFF', i want to be able to pull the color value #FFF from a CSS definition and assign it to a PHP variable for further use. (to remove any color definitons from the PHP code) And its NOT for ...
by Dazulrich
Mon Oct 09, 2006 3:21 pm
Forum: PHP - Code
Topic: Noob question: assign color (hex) values via CSS ??
Replies: 19
Views: 1221

thanks for quick reply... let me try to explain better... php file: $bgcolor = '#dd00dd' ... some other part of php code evaluating template with params like... $params = array( '{HOVER_BG_COLOR}' => $bgcolor, .... ) echo template_eval() in template file something like this... <<<EOT .......lots of ...
by Dazulrich
Mon Oct 09, 2006 2:43 pm
Forum: PHP - Code
Topic: Noob question: assign color (hex) values via CSS ??
Replies: 19
Views: 1221

Noob question: assign color (hex) values via CSS ??

Hi, Its my first post - please be gentle... I have some php code I want to clean up and my last issue are some hard coded color values, that I would like to move into the stylesheet. It's a theme file that in turn passes values into a template file. The color values I am interested in, are passed as...