Ficticious URL:
http://www.mysite.com?body_tag_param=blah1;
PHP:
$param = '';
if(isset($_GET['body_tag_param'])) {
$param = $_GET['body_tag_param'];
}
switch ($param) {
case 'blah1' :
$classname = 'hello1';
break;
case 'blah2' :
$classname = 'hello2';
break;
default :
$classname = 'default_class';
break;
}
$script = <<<SCRIPT
<script>
$(document.body).addClass('{$classname}');
</script>
SCRIPT;
$document = JFactory::getDocument();
$document->addCustomTag($script);
I haven't messed with Joomla or Mootools for a while because they are bulky but that should do it. Note, the other answer suggests to alter the entry point index.php file, that is a terrible idea. If you are not sure how the Joomla framework is put together, you might try to add this to your template.. Either way, you should never mess with the index.php file.