<script type="text/javascript">
var browserName = navigator.appName;
var browserVer = navigator.appVersion;
if(browserVer.match("MSIE 7.0"))
{
<?php echo "<link rel=\"stylesheet\" href=\"".JURI::base()."/templates/$this->template/css/ie7.css\" type=\"text/css\"/>" ; ?>
}
else if(browserVer.match("MSIE 8.0"))
{
<?php echo "<link rel=\"stylesheet\" href=\"".JURI::base()."/templates/$this->template/css/ie8.css\" type=\"text/css\"/>" ; ?>
}
</script>
Okay so the if statments work perfectly fine, but my problem is that when the php displays it doesnt load the correct css page still, can anybody help me here? I can see the if statment and both stylesheet links inside of the source, but should 1 be called based on the if statment?
Thank you,
Musya

New Topic/Question
Reply



MultiQuote




|