Mettre une musique en fonction de l'heure

Résolu
cs_aloyse Messages postés 23 Date d'inscription jeudi 27 octobre 2005 Statut Membre Dernière intervention 4 juin 2008 - 10 mars 2008 à 22:43
XtremDuke Messages postés 626 Date d'inscription samedi 28 septembre 2002 Statut Membre Dernière intervention 18 mai 2009 - 15 mars 2008 à 13:36
Bonjour à tous,

Je vous contacte car j'ai un problème, voilà, j'utilise un joomla site pour mon portfolio, ainsi qu'un template pré-défini. Ce template, me permet de changer de style en fonction de l'heure de la journée, cependant, bien qu'ayant crée les fichiers javascipt pour insérer tel ou tel fond, je n'arrive pas à mettre une musique ou un son en boucle qui fonctionnerai en même temps que l'image, je vous laisse le code pour que vous voyez à quoi cela à l'air et l'amélioration que vous pourriez m'aider à apporter pour ce problème de son :)

window.addEvent('load', function() {
    if (document.body.id == '') {

        if (tempus != false) {
            timeofday = tempus;
            document.body.id=tempus;
        } else {
            datetoday = new Date();
            timenow=datetoday.getTime();
            datetoday.setTime(timenow);
            thehour = datetoday.getHours();

            if (thehour >= 20)
             timeofday = "night";
            else if (thehour >= 17)
             timeofday = "dusk";
            else if (thehour >= 9)
             timeofday = "day";
            else if (thehour >= 5)
             timeofday = "dawn";
            else
             timeofday = "night";

            document.body.id=timeofday;
           
        }
        Cookie.set('dim-tempus', timeofday, {duration: 1/24,path: "/"});
    }
});
 voilà le code mais je ne comprends pas comment insérer le son, si vous pouvez m'aider, je vous serai très reconnaissant...

Cordialement

26 réponses

cs_aloyse Messages postés 23 Date d'inscription jeudi 27 octobre 2005 Statut Membre Dernière intervention 4 juin 2008
13 mars 2008 à 10:38
pour que tu comprennes mieux comment est gérer la page
index.php de mon template je te link le code complet de la page, comme
ca tu auras réellement l'ensemble des éléments pour comprendre : (en rouge ce que tu m'as demandé de rajouter)

<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_styleswitcher.php");

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <?php

    if ( $my->id ) {

        initEditor();

    }

    mosShowHead();


    // *************************************************

    // Change the variables below to adjust the template

    //

    // If you have any issues, check out the forum at

    // http://www.rockettheme.com

    //

    // *************************************************


    $default_style                 = "style2";             //[style1... style20]

    $enable_rokzoom                = "true";             // true | false

    $template_width             = "950";             // width in px

    $secondcol_width             = "25%";             // width in px | width in %

    $thirdcol_width             = "25%";             // width in px | width in %

    $menu_name                         = "mainmenu";         // mainmenu by default, can be any Joomla menu name

    $menu_type                         = "splitmenu";         // moomenu | suckerfish | splitmenu | module

    $splitmenu_col                = "secondcol";         // secondcol | thirdcol

    $default_font                 = "default";         // smaller | default | larger

    $show_pathway                 = "false";             // true | false

   

    // module slider configuration

    $modules_list                 = array(array("title"=>"Group 1 Stuff", "module"=>"user7"),

                                                                array("title"=>"Group 2 Panel", "module"=>"user8"),

                                                                array("title"=>"Group 3 Collection", "module"=>"user9"),

                                                                array("title"=>"Group 4 Assortment", "module"=>"user10"),

                                                                array("title"=>"Group 5 Items", "module"=>"user11"));

    $module_slider_height = 200;                    // height in px

    $max_mods_per_row            = 3;                        // maximum
number of modules per row (adjust the height if this wraps)

    require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_styleloader.php");

    require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_tabmodules.php");

    require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_utils.php");

   

   

    ?>

    <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />

    <link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />

    <?php if($mtype=="moomenu" or $mtype=="suckerfish") :?>

    <link href="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate(); ?>/css/rokmoomenu.css"
rel="stylesheet" type="text/css" />

    <?php endif; ?>

    <link href="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate(); ?>/css/template_css.css"
rel="stylesheet" type="text/css" />

    <link href="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate(); ?>/css/<?php echo $tstyle;
?>.css?nocache=1" rel="stylesheet" type="text/css" />

    <?php if($enable_rokzoom=="true") :?>

    <link href="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate(); ?>/rokzoom/rokzoom.css"
rel="stylesheet" type="text/css" />

    <?php endif; ?>

    <link href="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate(); ?>/css/rokslidestrip.css"
rel="stylesheet" type="text/css" />

    <style type="text/css">

        div.wrapper { <?php echo $template_width; ?>padding:0;}

        td.secondcol { width: <?php echo $secondcol_width; ?>;}

        td.thirdcol { width: <?php echo $thirdcol_width; ?>;}

        .shadow-3 { width: <?php echo $raw_width; ?>px;}

    </style>   

    <?php if (isIe7()) :?>

    <!--[if IE 7]>

    <link href="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate(); ?>/css/template_ie7.css"
rel="stylesheet" type="text/css" />   

    <![endif]-->   

    <?php endif; ?>

    <?php if (isIe6()) :?>

    <!--[if lte IE 6]>

    <link href="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate(); ?>/css/template_ie6.php"
rel="stylesheet" type="text/css" />

    <style type="text/css">

    img { behavior: url(<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate(); ?>/css/iepngfix.htc); }

    </style>

    <![endif]-->

    <?php endif; ?>

    <script type="text/javascript" src="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate();
?>/js/mootools-release-1.11.js"></script>

    <script type="text/javascript">tempus=<?php echo $tempus; ?></script>

    <script type="text/javascript" src="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate(); ?>/js/roktempus.js"></script>

    <?php if($enable_rokzoom=="true") :?>

    <script type="text/javascript" src="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate();
?>/rokzoom/rokzoom.js"></script>

    <?php endif; ?>

    <?php if($mtype=="moomenu") :?>

    <script type="text/javascript" src="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate(); ?>/js/rokmoomenu.js"></script>

    <script type="text/javascript" src="<?php echo
$mosConfig_live_site;?>/templates/<?php echo
$mainframe->getTemplate();
?>/js/mootools.bgiframe.js"></script>

    <script type="text/javascript">

    window.addEvent('domready', function() {

        new Rokmoomenu($E('ul.menu'), {

            bgiframe: false,

            delay: 500,

            animate: {

                props: ['opacity', 'width', 'height'],

                opts: {

                    duration:400,

                    fps: 100,

                    transition: Fx.Transitions.Quad.easeOut

                }

            }

        });

    });

    </script>

    <?php endif; ?>   

    <?php if($mtype=="suckerfish" or $mtype=="splitmenu") :

        echo "<!--[if IE]>\n";       

      include_once( "$mosConfig_absolute_path/templates/" . $mainframe->getTemplate() . "/js/ie_suckerfish.js" );

      echo "<![endif]-->\n";

    endif; ?>   

    <?php if($enable_rokzoom=="true") :?>

    <script type="text/javascript">

        window.addEvent('load', function() {

            RokZoom.init({

                imageDir: 'templates/<?php echo $mainframe->getTemplate(); ?>/rokzoom/images/',

                resizeFX: {

                    duration: 700,

                    transition: Fx.Transitions.Cubic.easeOut,

                    wait: true

                },

                opacityFX: {

                    duration: 500,

                    wait: false   

                }

            });

        });

    </script>

    <?php endif; ?>

    </head>

    class="<?php echo $fontstyle; ?> <?php echo $tstyle;
?>">

        <!-- begin top part -->

       


           


       


        <!-- end top part -->

        <!-- start overall frame -->

       


            <!-- begin bottom part IE ONLY -->

           


               


           


            <!-- end bottom part ie -->

            <!-- start bottom part OTHER BROWSERS -->

           


               


                    <!-- begin wrapper -->

                   


                       


                           


                           


                           


                            <!-- begin header -->

                           


                               
[<?php echo $mosConfig_live_site;?> /templates/<?php echo
$mainframe->getTemplate(); ?>/images/logo.png" border="0" alt=""
id="logo" />]


                           


                            <?php if (mosCountModules("top")) :?>

                           


                                <?php mosLoadModules('top', -1); ?>

                           
   

                            <?php endif; ?>

                            <?php if (mosCountModules("search")) :?>

                           


                                <?php mosLoadModules('search', -1); ?>

                           
   

                            <?php endif; ?>

                       


                       


                           
">

                                <?php if($mtype == "splitmenu") : ?>

                                    <?php echo $topnav; ?>

                                <?php elseif($mtype "moomenu" or $mtype "suckerfish") : ?>

                                    <?php mosShowListMenu($menu_name);    ?>

                                <?php else: ?>

                                    <?php mosLoadModules('toolbar',-1); ?>

                                <?php endif; ?>   

                           


                       


                        <!-- end header -->

                        <!-- begin inset -->

                       


                            <?php mosLoadModules('inset',-1); ?>

                       


                        <!-- end inset -->

                        <!-- begin mainbody -->

                       


                           


                               


                                                                            ----

                                                                                           

                                                   

                                                    <?php if ($show_pathway == "true") : ?>

                                                        <?php mosPathway(); ?>

                                                    <?php endif; ?>

                                                    <?php if (mosCountModules('user3') or mosCountModules('user4')) : ?>

                                                       
">

                                                            <?php if (mosCountModules('user3')) : ?>

                                                               

                                                                    <?php mosLoadModules('user3',-2); ?>

                                                               

                                                            <?php endif; ?>

                                                            <?php if (mosCountModules('user4')) : ?>

                                                               

                                                                    <?php mosLoadModules('user4',-2); ?>

                                                               

                                                            <?php endif; ?>

                                                       

                                                    <?php endif; ?>

                                                   

                                                       

                                                            <?php mosMainbody(); ?>

                                                       

                                                   

                                                    <?php if (mosCountModules('user5') or mosCountModules('user6')) : ?>

                                                       
">

                                                            <?php if (mosCountModules('user5')) : ?>

                                                               

                                                                    <?php mosLoadModules('user5',-2); ?>

                                                               

                                                            <?php endif; ?>

                                                            <?php if (mosCountModules('user6')) : ?>

                                                               

                                                                    <?php mosLoadModules('user6',-2); ?>

                                                               

                                                            <?php endif; ?>

                                                       

                                                    <?php endif; ?>

                                               

                                           ,

                                            <?php if
(mosCountModules('user1') or ($subnav and $splitmenu_col==\"secondcol\"))
: ?>

                                                                                                   

                                                       

                                                        <?php if($subnav and $splitmenu_col=="secondcol") : ?>

                                                           

                                                                <?php echo $subnav; ?>

                                                           

                                                        <?php endif; ?>

                                                        <?php mosLoadModules('user1',-2); ?>

                                                   

                                               ,

                                            <?php endif; ?>

                                            <?php if
(mosCountModules('user2') or ($subnav and $splitmenu_col==\"thirdcol\"))
: ?>

                                                                                                   

                                                       

                                                        <?php if($subnav and $splitmenu_col=="thirdcol") : ?>

                                                           

                                                                <?php echo $subnav; ?>

                                                           

                                                        <?php endif; ?>

                                                        <?php mosLoadModules('user2',-2); ?>

                                                   

                                               ,

                                            <?php endif; ?>

                                       

                                        ----

                                                                                           

                                           ,

                                            <?php if
(mosCountModules('user1') or ($subnav and $splitmenu_col==\"secondcol\"))
: ?>

                                                                                           

                                           ,

                                            <?php endif; ?>

                                            <?php if
(mosCountModules('user2') or ($subnav and $splitmenu_col==\"thirdcol\"))
: ?>

                                                                                           

                                           ,

                                            <?php endif; ?>

                                       

                                   
   

                               


                           


                       


                        <!-- end mainbody -->

                        <!-- begin bottom panel -->

                       


                           


                                <?php displayTabs(); ?>

                           


                       


                       


                           
/templates/<?php echo
$mainframe->getTemplate(); ?>/images/blank.gif" border="0"
alt="ABDESIGNER" id="rocket" />



                       


                       


                           


                           


                           


                       

                        <script type="text/javascript">

    var isIE = !!(window.attachEvent && !window.opera) ? true : false;

    function _addEvent(oObj, eEvent, fCallback){

        window.attachEvent ? oObj.attachEvent('on'+eEvent, fCallback) : oObj.addEventListener(eEvent, fCallback, false);

        return true;

    }

    function playBGSound(event){

        var datetoday = new Date();

        var thehour = datetoday.getHours();

        var timeofday = new String();

        if (thehour >20) timeofday "night";

        else if (thehour >17) timeofday "dusk";

        else if (thehour >9) timeofday "day";

        else if (thehour >5)    timeofday "dawn";

        else timeofday = "night";

        var timeMP3 = new String();

        switch(timeofday){

            case "night": timeMP3 = "mp3/night.mp3"; break;

            case "dusk": timeMP3 = "mp3/dusk.mp3"; break;

            case "day": timeMP3 = "mp3/day.mp3"; break;

            case "dawn": timeMP3 = "mp3/dawn.mp3"; break;

        }

        var body = document.getElementsByTagName('body')[0];

        if(isIE==true) body.innerHTML += '';

        else body.innerHTML += '';

    }

    _addEvent(window, 'load', playBGSound);

</script>


                   


                    <!-- end wrapper -->

               


           


            <!-- end bottom part OTHER BROWSERS -->

       


        <!-- end overall frame -->

       

</html>

voilà j'espère que l'on va y arriver :)
0
XtremDuke Messages postés 626 Date d'inscription samedi 28 septembre 2002 Statut Membre Dernière intervention 18 mai 2009 4
13 mars 2008 à 10:47
Essai de déplacer le script en fin de document (juste après " <!-- end overall frame -->") et remonte moi les erreurs.

Courage...
0
cs_aloyse Messages postés 23 Date d'inscription jeudi 27 octobre 2005 Statut Membre Dernière intervention 4 juin 2008
13 mars 2008 à 12:05
j'ai essayé mais toujours sans succès, on dirait que la poisse est avec nous lol

voilà le code :

<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_styleswitcher.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <?php
    if ( $my->id ) {
        initEditor();
    }
    mosShowHead();

    // *************************************************
    // Change the variables below to adjust the template
    //
    // If you have any issues, check out the forum at
    // http://www.rockettheme.com
    //
    // *************************************************

    $default_style                 = "style2";             //[style1... style20]
    $enable_rokzoom                = "true";             // true | false
    $template_width             = "950";             // width in px
    $secondcol_width             = "25%";             // width in px | width in %
    $thirdcol_width             = "25%";             // width in px | width in %
    $menu_name                         = "mainmenu";         // mainmenu by default, can be any Joomla menu name
    $menu_type                         = "splitmenu";         // moomenu | suckerfish | splitmenu | module
    $splitmenu_col                = "secondcol";         // secondcol | thirdcol
    $default_font                 = "default";         // smaller | default | larger
    $show_pathway                 = "false";             // true | false
   
    // module slider configuration
    $modules_list                 = array(array("title"=>"Group 1 Stuff", "module"=>"user7"),
                                                                array("title"=>"Group 2 Panel", "module"=>"user8"),
                                                                array("title"=>"Group 3 Collection", "module"=>"user9"),
                                                                array("title"=>"Group 4 Assortment", "module"=>"user10"),
                                                                array("title"=>"Group 5 Items", "module"=>"user11"));
    $module_slider_height = 200;                    // height in px
    $max_mods_per_row            = 3;                        // maximum number of modules per row (adjust the height if this wraps)
    require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_styleloader.php");
    require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_tabmodules.php");
    require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_utils.php");
   
   
    ?>
    <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
    <link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
    <?php if($mtype=="moomenu" or $mtype=="suckerfish") :?>
    <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/rokmoomenu.css" rel="stylesheet" type="text/css" />
    <?php endif; ?>
    <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/<?php echo $tstyle; ?>.css?nocache=1" rel="stylesheet" type="text/css" />
    <?php if($enable_rokzoom=="true") :?>
    <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rokzoom/rokzoom.css" rel="stylesheet" type="text/css" />
    <?php endif; ?>
    <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/rokslidestrip.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        div.wrapper { <?php echo $template_width; ?>padding:0;}
        td.secondcol { width: <?php echo $secondcol_width; ?>;}
        td.thirdcol { width: <?php echo $thirdcol_width; ?>;}
        .shadow-3 { width: <?php echo $raw_width; ?>px;}
    </style>   
    <?php if (isIe7()) :?>
    <!--[if IE 7]>
    <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_ie7.css" rel="stylesheet" type="text/css" />   
    <![endif]-->   
    <?php endif; ?>
    <?php if (isIe6()) :?>
    <!--[if lte IE 6]>
    <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_ie6.php" rel="stylesheet" type="text/css" />
    <style type="text/css">
    img { behavior: url(<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/iepngfix.htc); }
    </style>
    <![endif]-->
    <?php endif; ?>
    <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/mootools-release-1.11.js"></script>
    <script type="text/javascript">tempus=<?php echo $tempus; ?></script>
    <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/roktempus.js"></script>
    <?php if($enable_rokzoom=="true") :?>
    <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rokzoom/rokzoom.js"></script>
    <?php endif; ?>
    <?php if($mtype=="moomenu") :?>
    <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/rokmoomenu.js"></script>
    <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/mootools.bgiframe.js"></script>
    <script type="text/javascript">
    window.addEvent('domready', function() {
        new Rokmoomenu($E('ul.menu'), {
            bgiframe: false,
            delay: 500,
            animate: {
                props: ['opacity', 'width', 'height'],
                opts: {
                    duration:400,
                    fps: 100,
                    transition: Fx.Transitions.Quad.easeOut
                }
            }
        });
    });
    </script>
    <?php endif; ?>   
    <?php if($mtype=="suckerfish" or $mtype=="splitmenu") :
        echo "<!--[if IE]>\n";       
      include_once( "$mosConfig_absolute_path/templates/" . $mainframe->getTemplate() . "/js/ie_suckerfish.js" );
      echo "<![endif]-->\n";
    endif; ?>   
    <?php if($enable_rokzoom=="true") :?>
    <script type="text/javascript">
        window.addEvent('load', function() {
            RokZoom.init({
                imageDir: 'templates/<?php echo $mainframe->getTemplate(); ?>/rokzoom/images/',
                resizeFX: {
                    duration: 700,
                    transition: Fx.Transitions.Cubic.easeOut,
                    wait: true
                },
                opacityFX: {
                    duration: 500,
                    wait: false   
                }
            });
        });
    </script>
    <?php endif; ?>
    </head>
    class="<?php echo $fontstyle; ?> <?php echo $tstyle; ?>">
        <!-- begin top part -->
       

           

       

        <!-- end top part -->
        <!-- start overall frame -->
       

            <!-- begin bottom part IE ONLY -->
           

               

           

            <!-- end bottom part ie -->
            <!-- start bottom part OTHER BROWSERS -->
           

               

                    <!-- begin wrapper -->
                   

                       

                           

                           

                           

                            <!-- begin header -->
                           

                               
[<?php echo $mosConfig_live_site;?> /templates/<?php echo $mainframe->getTemplate(); ?>/images/logo.png" border="0" alt="" id="logo" />]

                           

                            <?php if (mosCountModules("top")) :?>
                           

                                <?php mosLoadModules('top', -1); ?>
                           
   
                            <?php endif; ?>
                            <?php if (mosCountModules("search")) :?>
                           

                                <?php mosLoadModules('search', -1); ?>
                           
   
                            <?php endif; ?>
                       

                       

                           
">
                                <?php if($mtype == "splitmenu") : ?>
                                    <?php echo $topnav; ?>                                <?php elseif($mtype "moomenu" or $mtype "suckerfish") : ?>
                                    <?php mosShowListMenu($menu_name);    ?>
                                <?php else: ?>
                                    <?php mosLoadModules('toolbar',-1); ?>
                                <?php endif; ?>   
                           

                       

                        <!-- end header -->
                        <!-- begin inset -->
                       

                            <?php mosLoadModules('inset',-1); ?>
                       

                        <!-- end inset -->
                        <!-- begin mainbody -->
                       

                           

                               

                                                                            ----

                                                                                           

                                                   

                                                    <?php if ($show_pathway == "true") : ?>
                                                        <?php mosPathway(); ?>
                                                    <?php endif; ?>
                                                    <?php if (mosCountModules('user3') or mosCountModules('user4')) : ?>
                                                       
">
                                                            <?php if (mosCountModules('user3')) : ?>
                                                               

                                                                    <?php mosLoadModules('user3',-2); ?>
                                                               

                                                            <?php endif; ?>
                                                            <?php if (mosCountModules('user4')) : ?>
                                                               

                                                                    <?php mosLoadModules('user4',-2); ?>
                                                               

                                                            <?php endif; ?>
                                                       

                                                    <?php endif; ?>
                                                   

                                                       

                                                            <?php mosMainbody(); ?>
                                                       

                                                   

                                                    <?php if (mosCountModules('user5') or mosCountModules('user6')) : ?>
                                                       
">
                                                            <?php if (mosCountModules('user5')) : ?>
                                                               

                                                                    <?php mosLoadModules('user5',-2); ?>
                                                               

                                                            <?php endif; ?>
                                                            <?php if (mosCountModules('user6')) : ?>
                                                               

                                                                    <?php mosLoadModules('user6',-2); ?>
                                                               

                                                            <?php endif; ?>
                                                       

                                                    <?php endif; ?>
                                               

                                           ,
                                            <?php if (mosCountModules('user1') or ($subnav and $splitmenu_col==\"secondcol\")) : ?>
                                                                                                   

                                                       

                                                        <?php if($subnav and $splitmenu_col=="secondcol") : ?>
                                                           

                                                                <?php echo $subnav; ?>
                                                           

                                                        <?php endif; ?>
                                                        <?php mosLoadModules('user1',-2); ?>
                                                   

                                               ,
                                            <?php endif; ?>
                                            <?php if (mosCountModules('user2') or ($subnav and $splitmenu_col==\"thirdcol\")) : ?>
                                                                                                   

                                                       

                                                        <?php if($subnav and $splitmenu_col=="thirdcol") : ?>
                                                           

                                                                <?php echo $subnav; ?>
                                                           

                                                        <?php endif; ?>
                                                        <?php mosLoadModules('user2',-2); ?>
                                                   

                                               ,
                                            <?php endif; ?>
                                       
                                        ----

                                                                                           

                                           ,
                                            <?php if (mosCountModules('user1') or ($subnav and $splitmenu_col==\"secondcol\")) : ?>
                                                                                           

                                           ,
                                            <?php endif; ?>
                                            <?php if (mosCountModules('user2') or ($subnav and $splitmenu_col==\"thirdcol\")) : ?>
                                                                                           

                                           ,
                                            <?php endif; ?>
                                       
                                   
   
                               

                           

                       

                        <!-- end mainbody -->
                        <!-- begin bottom panel -->
                       

                           

                                <?php displayTabs(); ?>
                           

                       

                       

                           
/templates/<?php echo $mainframe->getTemplate(); ?>/images/blank.gif" border="0" alt="ABDESIGNER" id="rocket" />

                       

                       

                           

                           

                           

                       

                   

                    <!-- end wrapper -->
               

           

            <!-- end bottom part OTHER BROWSERS -->
       

<script type="text/javascript">
    var isIE = !!(window.attachEvent && !window.opera) ? true : false;
    function _addEvent(oObj, eEvent, fCallback){
        window.attachEvent ? oObj.attachEvent('on'+eEvent, fCallback) : oObj.addEventListener(eEvent, fCallback, false);
        return true;
    }
    function playBGSound(event){
        var datetoday = new Date();
        var thehour = datetoday.getHours();
        var timeofday = new String();        if (thehour >20) timeofday "night";        else if (thehour >17) timeofday "dusk";        else if (thehour >9) timeofday "day";        else if (thehour >5)    timeofday "dawn";
        else timeofday = "night";
        var timeMP3 = new String();
        switch(timeofday){
            case "night": timeMP3 = "mp3/night.mp3"; break;
            case "dusk": timeMP3 = "mp3/dusk.mp3"; break;
            case "day": timeMP3 = "mp3/day.mp3"; break;
            case "dawn": timeMP3 = "mp3/dawn.mp3"; break;
        }
        var body = document.getElementsByTagName('body')[0];
        if(isIE==true) body.innerHTML += '';
        else body.innerHTML += '';
    }
    _addEvent(window, 'load', playBGSound);
</script>
       
</html>

J'espère que l'on va y arriver
0
cs_aloyse Messages postés 23 Date d'inscription jeudi 27 octobre 2005 Statut Membre Dernière intervention 4 juin 2008
13 mars 2008 à 20:42
CA MARCHE !!! YOUHOU \o/ cependant, c'est ce que je craignais, chaque fois que je change d'onglet, j'ai la musique qui recharge donc qui coupe et reprends au début... Que dois-je faire ^^
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
cs_aloyse Messages postés 23 Date d'inscription jeudi 27 octobre 2005 Statut Membre Dernière intervention 4 juin 2008
14 mars 2008 à 15:12
le seul hic avec les popup c'est que cela ca être bloqué par les systèmes mis en place de chaque navigateur :s
0
XtremDuke Messages postés 626 Date d'inscription samedi 28 septembre 2002 Statut Membre Dernière intervention 18 mai 2009 4
15 mars 2008 à 13:36
Et oui... ça peut être très inconvéniant. De plus, c'est pas très joli...

A toi de voir ^^
0
Rejoignez-nous