10, ":visited"=>9, ":hover"=>8, ":active"=>7); // -1 = $a<$b => -1 $a comes first // +1 = $a>$b => +1 $b comes first if ($a==$b) return 0; $roota = @eregi('body|html',$a); $rootb = @eregi('body|html',$b); if ($roota && !$rootb) return -1; if (!$roota && $rootb) return +1; $psa = @eregi(':',$a); $psb = @eregi(':',$b); if ($psa && !$psb) return +1; elseif (!$psa && $psb) return -1; elseif ($psa && $psb) { $psa = @eregi('.*(:[^ ]*).*',$a,$ra); $psb = @eregi('.*(:[^ ]*).*',$b,$rb); $psa = $pseudoVal[$ra[1]]; $psb = $pseudoVal[$rb[1]]; if ($psa>$psb) return -1; elseif ($psa<$psb) return +1; else return ($a>$b) ? +1:-1; } elseif (@eregi($a,$b)) return -1; elseif (@eregi($b,$a)) return +1; else return ($a>$b) ? +1:-1; } ?> CSS Editor of <? echo htmlspecialchars($sel) ?> \n"; echo "

Selector: "".htmlspecialchars($sel).""

"; echo "
\n"; include('csssyntax.inc'); $pn = 0; while ( list($grp,$propgrp) = each($PropGroups) ) { echo "

$grp:

\n"; echo "

"; while ( list(,$prop) = each($propgrp) ) { echo "$prop->name: "; $pn++; $found = false; $isDefined = ($css[$sel][$prop->name]!=''); $hideInput = true; echo " \n"; echo "
\n"; } echo "


\n"; } echo "\n"; echo "\n"; echo "\n"; echo "

\n \n"; echo "

\n"; echo "
"; echo "CSS file: $thestyle"; ?>