1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
   | /**** Carrousel 3D ****/
$this->headScript()->appendFile(PUBLIC_PATH . 'js/jquery/carrousel/cloud-carousel.1.0.4.js', $type = 'text/javascript');
 
 
if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)
{
    $flagBrowser = 'NONIE';
}
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false)
{
    $flagBrowser = 'IE6';
}
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7') !== false)
{
	$flagBrowser = 'IE7';
}
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8') !== false)
{
	$flagBrowser = 'IE8';
}
?>
<script type="text/javascript">
	// Contenu de ton fichier JS
    function maFonction(flagBrowser)
    {
        var w = screen.width;
        var h = screen.height;
 
        if(flagBrowser == 'IE6' || flagBrowser == 'IE7' || flagBrowser == 'IE8' && w == 1024 && h == 768)
        {
           <?php $this->headScript()->appendFile(PUBLIC_PATH . 'js/jquery/carrousel/carousel3.ini.js', $type = 'text/javascript');?>
        }
 
                    if (flagBrowser == 'IE6' || flagBrowser == 'IE7' && w != 1024 && h != 768)
		{
			<?php $this->headScript()->appendFile(PUBLIC_PATH . 'js/jquery/carrousel/carousel2.ini.js', $type = 'text/javascript'); ?>
		}
 
                    if (flagBrowser == 'IE8' && w != 1024 && h != 768)
		{
			<?php $this->headScript()->appendFile(PUBLIC_PATH . 'js/jquery/carrousel/carousel.ini.js', $type = 'text/javascript'); ?>
		}
 
                    if (flagBrowser == 'NONIE')
		{
			<?php $this->headScript()->appendFile(PUBLIC_PATH . 'js/jquery/carrousel/carousel.ini.js', $type = 'text/javascript'); ?>
		}
    }
</script>
<?php
 
 
$this->headScript()->appendFile(PUBLIC_PATH . 'js/jquery/carrousel/jquery.mousewheel.js', $type = 'text/javascript');
/**** Carrousel 3D ****/ | 
Partager