Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

xarlington

Animação em Flash não aparece em site no Wordpress?

Recommended Posts

Ola galera, terminei de fazer um site para colocalo no Wordpress, o site contem uma animação em Flash, a animação funciona perfeitamente quando o tema nao esta no wordpress ja quando eu coloco no wordpress a animação nao e exibida, estou a utilizar o UFO um arquivo que exibe os SWF em sites em Tableless ou XHTML, mais mesmo assim a animação não aparece no Wordpress... gostaria de saber o pq isso ta acontecendo e se tem que instalar algum plugin expecifico do Wordpress para que faça a animação aparecer.

 

Obrigado

Compartilhar este post


Link para o post
Compartilhar em outros sites

Provavelmente o caminho para o arquivo swf está errado, verifique isso. Se puder, poste aqui a página online.

 

Creio que nao pq ja verifiquei, irei chegar novamente, sobre o site ele ainda não esta online.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Brother, tenta inserir utlizando essa biblioteca JS. Vou dar um exemplo:

 

Biblioteca JS

 

<script type="text/javascript" src="swfobject.js"></script>

Link para download: SWFObject

 

Programação

<div id="nome-da-div-aqui"></div>
    
<script type="text/javascript">
		var params = {};
		var trans = "logo.swf"; // local aonde se encontra seu arquivo SWF
		params.quality="high";
		swfobject.embedSWF(trans, "nome-da-div-aqui", "451", "117", "9.0.0", trans, {}, params); // nome da sua div, tamanhos e versão do flash
</script>

Você cria a div do seu item em Flash e abaixo insere o codigo, claro utilizando tamanhos, nomes, e local dele que você possui ai.

A biblioteca é muito boa, eu indico.

Espero ter ajudado.

Abraços.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Olá galera, estou criando um site no wordpress com algumas animaçoes em flash, porém ainda não conseguir fazer com que as mesmas aparecem no Wordpress, no Layout comum a animação aparece, já quando eu envio o Layout para o Wordpress a mesma não aparece, gostaria de saber de vc6 se tem algum Script que faça com que uma animação em Flash apareça no Wordpres.

 

Obrigado

 

Happy Christmas http://forum.imasters.com.br/public/style_emoticons/default/natal_happy.gif http://forum.imasters.com.br/public/style_emoticons/default/natal_biggrin.gif

Compartilhar este post


Link para o post
Compartilhar em outros sites

Brother se você fizer igualzinho como expliquei naquele post ele funciona, mas se tu dixa um . errado, um link com algo diferente ele já não funciona..

Cola pra nós ae como utilizou ele..

Compartilhar este post


Link para o post
Compartilhar em outros sites

E ae deu certo?

 

Não, infelizmente ainda nao deu certo nao, acho que devo esta fazendo alguma coisa de errado... eu peguei o codigo aqui como você havia dito:

 

Header.php

Obs: Aqui fica o codigo do java script "<script type="text/javascript" src="swfobject.js"></script>"

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Beah Móveis®, Bh, belo horizonte, moveis salas, moveis cozinha, moveis banheiro, moveis escritorio, moveis sofas, moveis poltronas" />
<meta name="description" content="Beah Móveis®, Belo horizonte, bh" />
<meta name="author" content="W3C Masters, 31-3357-1566" />
<meta name="robot" content="ALL" />
<meta name="distribuition" content="Global" />
<meta name="ratings" content="General" />
<meta name="city" content="Belo horizonte" />
<meta name="country" content="Brazil" />
<meta name="classification" content="internet" />
<title>Beah Moveis® | Desde 1980 fazendo a vida mais feliz</title>
<link href="<?=bloginfo('template_url');?>/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="swfobject.js"></script>
<?php wp_head();?>
</head>

<body>
<img src="<?=bloginfo('template_url');?>/imagens/upload/bg-site.jpg" alt="beah moveis, bh" id="background" /><!--INICIO IMAGEM DE FUNDO-->
<div id="estrutura"><!--INICIO DA ESTRUTURA-->
<div id="topo"><!--INICIO TOPO-->
<div id="menu"><!--INICIO MENU-->
<ul>
<li><a href="<?php echo get_option('home');?>" title="Página inicial">Home</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=3" title="Sobre nós">A Beah</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=10" title="Estoque estantes">Estantes</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=139" title="Estoque salas de jantar">Salas de jantar</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=148" title="Estoque racks">Racks</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=154" title="Estoque projetados">Projetados</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=160" title="Estoque decor">Decor</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=135" title="Entre em contato conosco">Contato</a></li>
</ul>
</div><!--FIM MENU-->
<div id="logomarca"><!--INICIO LOGOMARCA-->
<h1><a href="." title="Beah Móveis"><img src="<?=bloginfo('template_url');?>/imagens/upload/logomarca.png" border="0" alt="Beah móveis, bh, belo horizonte" /></a></h1>
</div><!--FIM LOGOMARCA-->
<div id="slogan-busca"><!--INICIO SLOGANBUSCA-->
<div id="slogan"><!--INICIO BOX SLOGAN-->
<img src="<?=bloginfo('template_url');?>/imagens/upload/slogan.png" alt="Beah móveis, bh, belo horizonte" />
</div><!--FIM BOX SLOGAN-->
<div id="busca"><!--INICIO BUSCA-->
<?php livesearchpopup_searchbox();?>
</div><!--FIM BUSCA-->
</div><!--FIM SLOGANBUSCA-->
</div><!--FIM TOPO-->

Index.php:

Obs: Aqui fica a animação mais o codigo "<div id="nome-da-div-aqui"></div>

 

<script type="text/javascript">

var params = {};

var trans = "logo.swf"; // local aonde se encontra seu arquivo SWF

params.quality="high";

swfobject.embedSWF(trans, "nome-da-div-aqui", "451", "117", "9.0.0", trans, {}, params); // nome da sua div, tamanhos e versão do flash

</script>"

 

 

<?php get_header();?>
<div id="animacao"></div>
    <script type="text/javascript">
                var params = {};
                var trans = "animacaoprinc.swf"; // local aonde se encontra seu arquivo SWF
                params.quality="high";
                swfobject.embedSWF(trans, "animacao", "451", "117", "9.0.0", trans, {}, params); // nome da sua div, tamanhos e versão do flash
</script><!--BOX ANIMACAO PRINC-->
<div id="conteudo"><!--INICIO CONTEUDO-->
<h2><img src="<?=bloginfo('template_url');?>/imagens/upload/produtos-princ.png" alt="Beah móveis, bh, belo horizonte, moveis"/></h2>
<div id="box-cozinhas"><!--INICIO BOX COZINHAS-->
<?php query_posts('showposts=1&cat=6');?>
<?php if(have_posts()): while(have_posts()) : the_post();?>
<h4>Cozinhas</h4>
<h3><a href="<?php the_Permalink();?>"><img src="<?php $key="feature"; echo get_post_meta($post->ID,$key,true);?>" border="0" width="107px" height="72px" title="<?php the_title();?>" alt="<?php the_title();?>"/></h3>
<h5><?php the_title();?></h5>
<p><?php the_excerpt_rereloaded(7);?></p></a>
<?php endwhile; else:?>
<?php endif;?>
<a href="<?php the_Permalink();?>"><span>[+]Saiba mais</span></a>
</div><!--FIM BOX COZINHAS-->
<div id="box-salas"><!--INICIO BOX SALAS-->
<?php query_posts('showposts=1&cat=7');?>
<?php if(have_posts()): while(have_posts()) : the_post();?>
<h4>Salas</h4>
<h3><a href="<?php the_Permalink();?>"><img src="<?php $key="feature"; echo get_post_meta($post->ID,$key,true);?>" border="0" width="107px" height="72px" title="<?php the_title();?>" alt="<?php the_title();?>"/></h3>
<h5><?php the_title();?></h5>
<p><?php the_excerpt_rereloaded(7);?></p></a>
<?php endwhile; else:?>
<?php endif;?>
<a href="<?php the_Permalink();?>"><span>[+]Saiba mais</span></a>
</div><!--FIM BOX SALAS-->
<div id="box-sofas"><!--INICIO BOX SOFAS-->
<?php query_posts('showposts=1&cat=8');?>
<?php if(have_posts()): while(have_posts()) : the_post();?>
<h4>Sofas</h4>
<h3><a href="<?php the_Permalink();?>"><img src="<?php $key="feature"; echo get_post_meta($post->ID,$key,true);?>" border="0" width="107px" height="72px" title="<?php the_title();?>" alt="<?php the_title();?>" /></h3>
<h5><?php the_title();?></h5>
<p><?php the_excerpt_rereloaded(7);?></p></a>
<?php endwhile; else:?>
<?php endif;?>
<a href="<?php the_Permalink();?>"><span>[+]Saiba mais</span></a>
</div><!--FIM BOX POLTRONAS-->
<div id="box-poltronas"><!--INICIO BOX SOFAS-->
<?php query_posts('showposts=1&cat=9');?>
<?php if(have_posts()): while(have_posts()) : the_post();?>
<h4>Poltronas</h4>
<h3><a href="<?php the_Permalink();?>"><img src=<?php $key="feature"; echo get_post_meta($post->ID,$key,true);?> border="0" width="107px" height="72px" title="<?php the_title();?>" alt="<?php the_title();?>"/></h3>
<h5><?php the_title();?></h5>
<p><?php the_excerpt_rereloaded(7);?></p></a>
<?php endwhile; else:?>
<?php endif;?>
<a href="<?php the_Permalink();?>"><span>[+]Saiba mais</span></a>
</div><!--FIM BOX POLTRONAS-->
</div><!--FIM CONTEUDO-->
<?php get_footer();?>

 

Estou colocando a biblioteca SWFObject dentro da pasta Themes do Wordpress.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Posta ai como você utilizou o SWFobject, para darmos uma conferida..

 

header.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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Beah Móveis®, Bh, belo horizonte, moveis salas, moveis cozinha, moveis banheiro, moveis escritorio, moveis sofas, moveis poltronas" />
<meta name="description" content="Beah Móveis®, Belo horizonte, bh" />
<meta name="author" content="W3C Masters, 31-3357-1566" />
<meta name="robot" content="ALL" />
<meta name="distribuition" content="Global" />
<meta name="ratings" content="General" />
<meta name="city" content="Belo horizonte" />
<meta name="country" content="Brazil" />
<meta name="classification" content="internet" />
<title>Beah Moveis® | Desde 1980 fazendo a vida mais feliz</title>
<link href="<?=bloginfo('template_url');?>/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="swfobject.js"></script>
<?php wp_head();?>
</head>

<body>
<img src="<?=bloginfo('template_url');?>/imagens/upload/bg-site.jpg" alt="beah moveis, bh" id="background" /><!--INICIO IMAGEM DE FUNDO-->
<div id="estrutura"><!--INICIO DA ESTRUTURA-->
<div id="topo"><!--INICIO TOPO-->
<div id="menu"><!--INICIO MENU-->
<ul>
<li><a href="<?php echo get_option('home');?>" title="Página inicial">Home</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=3" title="Sobre nós">A Beah</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=10" title="Estoque estantes">Estantes</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=139" title="Estoque salas de jantar">Salas de jantar</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=148" title="Estoque racks">Racks</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=154" title="Estoque projetados">Projetados</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=160" title="Estoque decor">Decor</a></li>
<li><a href="<?php echo get_option('home');?>/?page_id=135" title="Entre em contato conosco">Contato</a></li>
</ul>
</div><!--FIM MENU-->
<div id="logomarca"><!--INICIO LOGOMARCA-->
<h1><a href="." title="Beah Móveis"><img src="<?=bloginfo('template_url');?>/imagens/upload/logomarca.png" border="0" alt="Beah móveis, bh, belo horizonte" /></a></h1>
</div><!--FIM LOGOMARCA-->
<div id="slogan-busca"><!--INICIO SLOGANBUSCA-->
<div id="slogan"><!--INICIO BOX SLOGAN-->
<img src="<?=bloginfo('template_url');?>/imagens/upload/slogan.png" alt="Beah móveis, bh, belo horizonte" />
</div><!--FIM BOX SLOGAN-->
<div id="busca"><!--INICIO BUSCA-->
<?php livesearchpopup_searchbox();?>
</div><!--FIM BUSCA-->
</div><!--FIM SLOGANBUSCA-->
</div><!--FIM TOPO-->

 

Index.php

<?php get_header();?>
<div id="animacao"></div>
    <script type="text/javascript">
                var params = {};
                var trans = "animacaoprinc.swf"; // local aonde se encontra seu arquivo SWF
                params.quality="high";
                swfobject.embedSWF(trans, "animacao", "451", "117", "9.0.0", trans, {}, params); // nome da sua div, tamanhos e versão do flash
</script><!--BOX ANIMACAO PRINC-->
<div id="conteudo"><!--INICIO CONTEUDO-->
<h2><img src="<?=bloginfo('template_url');?>/imagens/upload/produtos-princ.png" alt="Beah móveis, bh, belo horizonte, moveis"/></h2>
<div id="box-cozinhas"><!--INICIO BOX COZINHAS-->
<?php query_posts('showposts=1&cat=6');?>
<?php if(have_posts()): while(have_posts()) : the_post();?>
<h4>Cozinhas</h4>
<h3><a href="<?php the_Permalink();?>"><img src="<?php $key="feature"; echo get_post_meta($post->ID,$key,true);?>" border="0" width="107px" height="72px" title="<?php the_title();?>" alt="<?php the_title();?>"/></h3>
<h5><?php the_title();?></h5>
<p><?php the_excerpt_rereloaded(7);?></p></a>
<?php endwhile; else:?>
<?php endif;?>
<a href="<?php the_Permalink();?>"><span>[+]Saiba mais</span></a>
</div><!--FIM BOX COZINHAS-->
<div id="box-salas"><!--INICIO BOX SALAS-->
<?php query_posts('showposts=1&cat=7');?>
<?php if(have_posts()): while(have_posts()) : the_post();?>
<h4>Salas</h4>
<h3><a href="<?php the_Permalink();?>"><img src="<?php $key="feature"; echo get_post_meta($post->ID,$key,true);?>" border="0" width="107px" height="72px" title="<?php the_title();?>" alt="<?php the_title();?>"/></h3>
<h5><?php the_title();?></h5>
<p><?php the_excerpt_rereloaded(7);?></p></a>
<?php endwhile; else:?>
<?php endif;?>
<a href="<?php the_Permalink();?>"><span>[+]Saiba mais</span></a>
</div><!--FIM BOX SALAS-->
<div id="box-sofas"><!--INICIO BOX SOFAS-->
<?php query_posts('showposts=1&cat=8');?>
<?php if(have_posts()): while(have_posts()) : the_post();?>
<h4>Sofas</h4>
<h3><a href="<?php the_Permalink();?>"><img src="<?php $key="feature"; echo get_post_meta($post->ID,$key,true);?>" border="0" width="107px" height="72px" title="<?php the_title();?>" alt="<?php the_title();?>" /></h3>
<h5><?php the_title();?></h5>
<p><?php the_excerpt_rereloaded(7);?></p></a>
<?php endwhile; else:?>
<?php endif;?>
<a href="<?php the_Permalink();?>"><span>[+]Saiba mais</span></a>
</div><!--FIM BOX POLTRONAS-->
<div id="box-poltronas"><!--INICIO BOX SOFAS-->
<?php query_posts('showposts=1&cat=9');?>
<?php if(have_posts()): while(have_posts()) : the_post();?>
<h4>Poltronas</h4>
<h3><a href="<?php the_Permalink();?>"><img src=<?php $key="feature"; echo get_post_meta($post->ID,$key,true);?> border="0" width="107px" height="72px" title="<?php the_title();?>" alt="<?php the_title();?>"/></h3>
<h5><?php the_title();?></h5>
<p><?php the_excerpt_rereloaded(7);?></p></a>
<?php endwhile; else:?>
<?php endif;?>
<a href="<?php the_Permalink();?>"><span>[+]Saiba mais</span></a>
</div><!--FIM BOX POLTRONAS-->
</div><!--FIM CONTEUDO-->
<?php get_footer();?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

"Estou colocando a biblioteca SWFObject dentro da pasta Themes do Wordpress." respondi no outro tópico que você criou, porque tipo, não adianta só joga dentro da themes, tem que joga aonde o link mostra wp-content/themes/seutema/js/swfobject.js (isso é um exemplo) a mesma coisa pro arquivo .swf que falei no outro post.

 

Algum Administrador, por favor una esses dois tópicos dele!

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.