Probleme de frame qui se répètent
bzazz
-
bzazz -
bzazz -
Bonjour,
J'ai installé un lecteur mp3 en flash sur mon site avec le systeme des frames pcq je ne voulais pas que la musique s'arrete a chaque changement de page.
tout fonctionne parfaitement en localhost via wampserver et une fois le transfert effectué vers mon hébhergeur,
le frame n°1 (cad le lecteur) se répète 5 fois en jouant tous les 5 la musique avant d'afficher le frame n°2 (contenu du site).
Alors que comme je vous l'ai dit plus haut, en localhost tout est parfait !
www.stromae.net
c'est du Wordpress !
malheureusement je ne peux laisser l'erreur active on-line pour vous le montrer !
Par contre voici une description de la manière dont j'ai procéder :
- J'ai créer le frameset dans le fichier home.php
voici le code de la page home.php :
-----------------------------------------------------------------------------------------------------------------------------
<FRAMESET Frameborder="no" ROWS="5%,95%">
<FRAME SRC="http://www.stromae.net/blog/mp3.html" scrolling="no" NAME="haut" noresize>
<FRAME SRC="http://www.stromae.net/blog" NAME="bas">
</FRAMESET>
<?php get_header(); ?>
<?php
if ( function_exists('dsq_comment_count') ) {
remove_action('loop_end', 'dsq_comment_count');
add_action('arras_above_index_news_post', 'dsq_comment_count');
}
?>
<div id="content" class="section">
<?php arras_above_content() ?>
<?php if ( ( $featured1_cat = arras_get_option('featured_cat1') ) !== '' && $featured1_cat != '-1' ) : ?>
<!-- Featured Articles #1 -->
<div class="featured clearfix">
<?php
if ($featured1_cat == '-5') $query = array('post__in' => get_option('sticky_posts'), 'showposts' => arras_get_option('featured1_count') );
elseif ($featured1_cat == '0') $query = 'showposts=' . arras_get_option('featured1_count');
else $query = 'showposts=' . arras_get_option('featured1_count') . '&cat=' . $featured1_cat;
$q = new WP_Query( apply_filters('arras_featured1_query', $query) );
?>
<div id="controls" style="display: none;">
<a href="" class="prev"><?php _e('Prev', 'arras') ?></a>
<a href="" class="next"><?php _e('Next', 'arras') ?></a>
</div>
<div id="featured-slideshow">
<?php $count = 0; ?>
<?php if ($q->have_posts()) : while ($q->have_posts()) : $q->the_post(); ?>
<div <?php if ($count != 0) echo 'style="display: none"'; ?>>
<?php $w = 630; $h = 250; if ( arras_get_option('layout') == '3c-r-fixed' || arras_get_option('layout') == '3c-fixed' ) { $w = 480; $h = 225; } ?>
<a class="featured-article" href="<?php the_permalink(); ?>" rel="bookmark" style="background: url(<?php echo arras_get_thumbnail($w, $h); ?>) no-repeat;">
<span class="featured-entry">
<span class="entry-title"><?php the_title(); ?></span>
<span class="entry-summary"><?php echo arras_strip_content(get_the_excerpt(), 20); ?></span>
<span class="progress"></span>
</span>
</a>
</div>
<?php $count++; endwhile; endif; ?>
</div>
</div>
<?php endif; ?>
<!-- Featured Articles #2 -->
<?php if (!$paged) : if ( ($featured2_cat = arras_get_option('featured_cat2') ) !== '' && $featured2_cat != '-1' ) : ?>
<?php
if ($featured2_cat == '-5') $query2 = array('post__in' => get_option('sticky_posts'), 'showposts' => arras_get_option('featured2_count') );
elseif ($featured2_cat == '0') $query2 = 'showposts=' . arras_get_option('featured2_count');
else $query2 = 'showposts=' . arras_get_option('featured2_count') . '&cat=' . $featured2_cat;
$q2 = new WP_Query( apply_filters('arras_featured2_query', $query2) );
arras_get_posts('featured2', $q2);
?>
<?php endif; endif; ?>
<?php arras_above_index_news_post() ?>
<!-- News Articles -->
<?php
$news_query = array(
'cat' => arras_get_option('news_cat'),
'paged' => $paged,
'showposts' => ( (arras_get_option('index_count') == 0 ? get_option('posts_per_page') : arras_get_option('index_count')) )
);
// if you are a WP plugin freak you can use 'arras_news_query' filter to override the query
wp_reset_query(); query_posts(apply_filters('arras_news_query', $news_query));
arras_get_posts('index') ?>
<?php if(function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
<div class="navigation clearfix">
<div class="floatleft"><?php next_posts_link( __('Précédent', 'arras') ) ?></div>
<div class="floatright"><?php previous_posts_link( __('Suivant Entries', 'arras') ) ?></div>
</div>
<?php } ?>
<?php arras_below_index_news_post() ?>
<div id="bottom-content-1">
<ul class="clearfix xoxo">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bottom Content #1') ) : ?>
<?php endif; ?>
</ul>
</div>
<div id="bottom-content-2">
<ul class="clearfix xoxo">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bottom Content #2') ) : ?>
<?php endif; ?>
</ul>
</div>
<?php arras_below_content() ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
------------------------------------------------------------------------------------------------------------------------------
Voici le code du fichier HTML - mp3.html :
<HEAD>
<link rel="stylesheet" type="text/css" href="audio.css"/>
</HEAD>
<body>
<object class="audio" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload2.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="240" height="20" id="dewplayer" align="middle"><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="dewplayer-multi.swf?mp3=Remix_up_saw_liz_teaser.mp3&autostart=1&showtime=1" /><param name="quality" value="high" /><param name="bgcolor" value="ffffff" /><embed src="dewplayer-multi.swf?mp3=Remix_up_saw_liz_teaser.mp3 | Alors_on_danse_teaser.mp3 | up_saw_liz_teaser.mp3&autostart=1&showtime=1" quality="high" bgcolor="ffffff" width="240" height="20" name="dewplayer" wmode="transparent" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://get.adobe.com/flashplayer/"></embed></object>
</body>
Pour infos, la balise <object> représente le lecteur audio...
-------------------------------------------------------------------------------------------------------------------------
Est ce que quelqu'un à une idée et pourrait m'aider ?
J'ai installé un lecteur mp3 en flash sur mon site avec le systeme des frames pcq je ne voulais pas que la musique s'arrete a chaque changement de page.
tout fonctionne parfaitement en localhost via wampserver et une fois le transfert effectué vers mon hébhergeur,
le frame n°1 (cad le lecteur) se répète 5 fois en jouant tous les 5 la musique avant d'afficher le frame n°2 (contenu du site).
Alors que comme je vous l'ai dit plus haut, en localhost tout est parfait !
www.stromae.net
c'est du Wordpress !
malheureusement je ne peux laisser l'erreur active on-line pour vous le montrer !
Par contre voici une description de la manière dont j'ai procéder :
- J'ai créer le frameset dans le fichier home.php
voici le code de la page home.php :
-----------------------------------------------------------------------------------------------------------------------------
<FRAMESET Frameborder="no" ROWS="5%,95%">
<FRAME SRC="http://www.stromae.net/blog/mp3.html" scrolling="no" NAME="haut" noresize>
<FRAME SRC="http://www.stromae.net/blog" NAME="bas">
</FRAMESET>
<?php get_header(); ?>
<?php
if ( function_exists('dsq_comment_count') ) {
remove_action('loop_end', 'dsq_comment_count');
add_action('arras_above_index_news_post', 'dsq_comment_count');
}
?>
<div id="content" class="section">
<?php arras_above_content() ?>
<?php if ( ( $featured1_cat = arras_get_option('featured_cat1') ) !== '' && $featured1_cat != '-1' ) : ?>
<!-- Featured Articles #1 -->
<div class="featured clearfix">
<?php
if ($featured1_cat == '-5') $query = array('post__in' => get_option('sticky_posts'), 'showposts' => arras_get_option('featured1_count') );
elseif ($featured1_cat == '0') $query = 'showposts=' . arras_get_option('featured1_count');
else $query = 'showposts=' . arras_get_option('featured1_count') . '&cat=' . $featured1_cat;
$q = new WP_Query( apply_filters('arras_featured1_query', $query) );
?>
<div id="controls" style="display: none;">
<a href="" class="prev"><?php _e('Prev', 'arras') ?></a>
<a href="" class="next"><?php _e('Next', 'arras') ?></a>
</div>
<div id="featured-slideshow">
<?php $count = 0; ?>
<?php if ($q->have_posts()) : while ($q->have_posts()) : $q->the_post(); ?>
<div <?php if ($count != 0) echo 'style="display: none"'; ?>>
<?php $w = 630; $h = 250; if ( arras_get_option('layout') == '3c-r-fixed' || arras_get_option('layout') == '3c-fixed' ) { $w = 480; $h = 225; } ?>
<a class="featured-article" href="<?php the_permalink(); ?>" rel="bookmark" style="background: url(<?php echo arras_get_thumbnail($w, $h); ?>) no-repeat;">
<span class="featured-entry">
<span class="entry-title"><?php the_title(); ?></span>
<span class="entry-summary"><?php echo arras_strip_content(get_the_excerpt(), 20); ?></span>
<span class="progress"></span>
</span>
</a>
</div>
<?php $count++; endwhile; endif; ?>
</div>
</div>
<?php endif; ?>
<!-- Featured Articles #2 -->
<?php if (!$paged) : if ( ($featured2_cat = arras_get_option('featured_cat2') ) !== '' && $featured2_cat != '-1' ) : ?>
<?php
if ($featured2_cat == '-5') $query2 = array('post__in' => get_option('sticky_posts'), 'showposts' => arras_get_option('featured2_count') );
elseif ($featured2_cat == '0') $query2 = 'showposts=' . arras_get_option('featured2_count');
else $query2 = 'showposts=' . arras_get_option('featured2_count') . '&cat=' . $featured2_cat;
$q2 = new WP_Query( apply_filters('arras_featured2_query', $query2) );
arras_get_posts('featured2', $q2);
?>
<?php endif; endif; ?>
<?php arras_above_index_news_post() ?>
<!-- News Articles -->
<?php
$news_query = array(
'cat' => arras_get_option('news_cat'),
'paged' => $paged,
'showposts' => ( (arras_get_option('index_count') == 0 ? get_option('posts_per_page') : arras_get_option('index_count')) )
);
// if you are a WP plugin freak you can use 'arras_news_query' filter to override the query
wp_reset_query(); query_posts(apply_filters('arras_news_query', $news_query));
arras_get_posts('index') ?>
<?php if(function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
<div class="navigation clearfix">
<div class="floatleft"><?php next_posts_link( __('Précédent', 'arras') ) ?></div>
<div class="floatright"><?php previous_posts_link( __('Suivant Entries', 'arras') ) ?></div>
</div>
<?php } ?>
<?php arras_below_index_news_post() ?>
<div id="bottom-content-1">
<ul class="clearfix xoxo">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bottom Content #1') ) : ?>
<?php endif; ?>
</ul>
</div>
<div id="bottom-content-2">
<ul class="clearfix xoxo">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bottom Content #2') ) : ?>
<?php endif; ?>
</ul>
</div>
<?php arras_below_content() ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
------------------------------------------------------------------------------------------------------------------------------
Voici le code du fichier HTML - mp3.html :
<HEAD>
<link rel="stylesheet" type="text/css" href="audio.css"/>
</HEAD>
<body>
<object class="audio" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload2.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="240" height="20" id="dewplayer" align="middle"><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="dewplayer-multi.swf?mp3=Remix_up_saw_liz_teaser.mp3&autostart=1&showtime=1" /><param name="quality" value="high" /><param name="bgcolor" value="ffffff" /><embed src="dewplayer-multi.swf?mp3=Remix_up_saw_liz_teaser.mp3 | Alors_on_danse_teaser.mp3 | up_saw_liz_teaser.mp3&autostart=1&showtime=1" quality="high" bgcolor="ffffff" width="240" height="20" name="dewplayer" wmode="transparent" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://get.adobe.com/flashplayer/"></embed></object>
</body>
Pour infos, la balise <object> représente le lecteur audio...
-------------------------------------------------------------------------------------------------------------------------
Est ce que quelqu'un à une idée et pourrait m'aider ?
A voir également:
- Probleme de frame qui se répètent
- Photo frame studio - Télécharger - Retouche d'image
- Frame host c'est quoi ✓ - Forum HTML
- Good frame - Télécharger - Photo & Graphisme
- Frame network 2.0 - Télécharger - Divers Utilitaires
- Frame host ✓ - Forum Windows