×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Сергій Савченко
Added: Aug 24, 2014 12:28 PM
Views: 23
  1. $doc = JFactory::getDocument();
  2. $style = 'BODY {'
  3.         . 'background: #00ff00;'
  4.         . 'color: rgb(0,0,255);'
  5.         . '}';
  6. $doc->addStyleDeclaration( $style );