PHP Classes

File: getstyle.php

Recommend this page to a friend!
  Classes of Michael Ettl   parseCSS   getstyle.php   Download  
File: getstyle.php
Role: Example script
Content type: text/plain
Description: used by flash to get style-info
Class: parseCSS
Class for parsing CSS Stylesheets
Author: By
Last change:
Date: 21 years ago
Size: 301 bytes
 

Contents

Class file image Download
<?php
include_once("parseCSS.inc");

$oCSS=new CSS();

$oCSS->parseFile("style.css");

$font = $oCSS->css["body"]["font-family"];
$bgcolor = $oCSS->css["body"]["background-color"];
$txtcolor = $oCSS->css["body"]["color"];
print
"font=$font&bgcolor=$bgcolor&txtcolor=$txtcolor&busy=NO";
?>