Ir para conteúdo
Fórum Script Brasil
  • 0

Como Colocar Um Topo Flash No Lugar De Topo.jpg


Guest - Evan F. Gois -

Pergunta

Guest - Evan F. Gois -

Bom dia!

Preciso alterar o codigo a baixo para incerir um topo em flash, .swf , at´agora só consegui colocar gif jpg, alguém pode me ajudar por favor....... segue a baixo o codigo

echo "<br>\n"

."<table cellpadding=\"0\" cellspacing=\"10\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#EEEEEE\">\n"

."<tr>\n"

."<td bgcolor=\"#EEEEEE\">\n"

."<a href=\"index.php\"><img src=\"themes/Anagram/images/topo.gif\" align=\"left\" alt=\""._WELCOMETO.">\n"

."<input type=\"text\" name=\"query\" size=\"14\"></font></form></td>\n"

Link para o comentário
Compartilhar em outros sites

10 respostass a esta questão

Posts Recomendados

  • 0

tenta isso

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="32" height="32">
<param name="movie" value="animacao.swf">
<param name="quality" value="high">
<embed src="animacao.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed></object>

Link para o comentário
Compartilhar em outros sites

  • 0
Guest Visitante

olhem no codio que coloquei acima, não tem "Coloque no lugar da imagem (<img>), entre <a> e </a>" o codigo é este ue tenho que alterar

echo "<br>\n"

."<table cellpadding=\"0\" cellspacing=\"10\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#EEEEEE\">\n"

."<tr>\n"

."<td bgcolor=\"#EEEEEE\">\n"

."<a href=\"index.php\"><img src=\"themes/Anagram/images/topo.gif\" align=\"left\" alt=\""._WELCOMETO.">\n"

."<input type=\"text\" name=\"query\" size=\"14\"></font></form></td>\n"

Link para o comentário
Compartilhar em outros sites

  • 0

Segue abaixo todo o código para você entender melhor...

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

/* Function themeheader() */

/* */

/* Control the header for your site. You need to define the */

/* BODY tag and in some part of the code call the blocks */

/* function for left side with: blocks(left); */

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

function themeheader() {

global $user, $banners, $sitename, $slogan, $cookie, $prefix, $anonymous, $db;

cookiedecode($user);

$username = $cookie[1];

if ($username == "") {

$username = $anonymous;

}

echo "<body bgcolor=\"#ffffff\" text=\"#000000\">\n";

if ($banners) {

include("banners.php");

}

echo "<br>\n"

."<table cellpadding=\"0\" cellspacing=\"10\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#EEEEEE\">\n"

."<tr>\n"

."<td bgcolor=\"#EEEEEE\">\n"

."<a href=\"index.php\"><img src=\"themes/Anagram/images/logo.gif\" align=\"left\" alt=\""._WELCOMETO.">\n"

."<input type=\"text\" name=\"query\" size=\"14\"></font></form></td>\n"

."</tr></table>\n"

."<table cellpadding=\"1\" cellspacing=\"2\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#DAD8D8\">\n"

."<tr>\n"

."<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='/'\"><a href=\"/\">Home</a></td>\n"

."<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Your_Account'\"><a href=\"modules.php?name=Your_Account\">Sua Conta</a></</td>\n"

."<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Content'\"><a href=\"modules.php?name=Content\">Conteúdo</a></td>\n"

."<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Submit_News'\"><a href=\"modules.php?name=Downloads\">Downloads</a></td>\n"

."<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Top'\"><a href=\"modules.php?name=Top\">Top 10</a></td>\n"

."</tr>\n"

."</table>\n"

."<table cellpadding=\"0\" cellspacing=\"0\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#fefefe\">\n"

."<tr>\n"

."<td bgcolor=\"#DAD8D8\" colspan=\"4\"><IMG src=\"themes/Anagram/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"

."</tr>\n"

."<tr valign=\"middle\" bgcolor=\"#DAD8D8\">\n"

."<td width=\"20%\" nowrap><font class=\"content\">\n";

if ($username == "Anonymous") {

echo "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">"._LOGINCREATE."</a>\n";

} else {

echo "&nbsp;&nbsp;"._HELLO." $username!";

}

echo "</font></td>\n"

."<td align=\"center\" height=\"20\" width=\"60%\">\n"

."&nbsp;\n"

."</td>\n"

."<td align=\"right\" width=\"20%\"><font class=\"content\">\n"

."<script type=\"text/javascript\">\n\n"

."<!-- // Array ofmonth Names\n"

."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"

."var now = new Date();\n"

."thisYear = now.getYear();\n"

."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"

."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"

."// -->\n\n"

."</script></b></font></td>\n"

."<td>&nbsp;</td>\n"

."</tr>\n"

."<tr>\n"

."<td bgcolor=\"#DAD8D8\" colspan=\"4\"><IMG src=\"themes/ Anagram/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"

."</tr>\n"

."</table>\n"

;

$public_msg = public_message();

echo "$public_msg<br>";

echo "<!-- Begin Main Content -->\n"

."<table width=\"780\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n"

."<td background=\"themes/Anagram/images/column-bg.gif\" width=\"150\" valign=\"top\">\n";

blocks(left);

echo "</td>\n"

."<td><img src=\"themes/Anagram/images/pixel.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>\n"

."<td><img src=\"themes/Anagram/images/pixel.gif\" width=\"5\" height=\"1\" border=\"0\" alt=\"\"></td>\n"

."<td width=\"100%\">\n";

Link para o comentário
Compartilhar em outros sites

  • 0

Tente assim:

echo "<br>\n"
."<table cellpadding=\"0\" cellspacing=\"10\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#EEEEEE\">\n"
."<tr>\n"
."<td bgcolor=\"#EEEEEE\">\n"
."<a href='index.php'><img src='themes/Anagram/images/topo.gif' align='left' alt='SEJA BEM VINDO'></a>\n"
."<input type=\"text\" name=\"query\" size=\"14\"></font></form></td>\n"

Uma coisa pra que tanto quebra de linha "/n" ?

Link para o comentário
Compartilhar em outros sites

  • 0

tenta assim

echo "<br>\n"

."<table cellpadding=\"0\" cellspacing=\"10\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#EEEEEE\">\n"

."<tr>\n"

."<td bgcolor=\"#EEEEEE\">\n"

."<a href=\"index.php\<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"32\" height=\"32\"><param name=\"movie\" value=\"animacao.swf\"><param name=\"quality\" value=\"high\"><embed src=\"animacao.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"32\" height=\"32\"></embed></object>\n"

."<input type=\"text\" name=\"query\" size=\"14\"></font></form></td>\n"

etc...

obs. coloca tudo na mesma linha, o codigo que carrega o flash

testei esse outro jeito e deu certo

echo "<br>\n"
."<table cellpadding=\"0\" cellspacing=\"10\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#EEEEEE\">\n"
."<tr>\n"
."<td bgcolor=\"#EEEEEE\">\n"
."<a href=\"index.php\">
<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"700\" height=\"50\">
<param name=\"movie\" value=\"animacao.swf\">
<param name=\"quality\" value=\"high\">
<embed src=\"animacao.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"700\" height=\"50\"></embed></object>
\n"
."<input type=\"text\" name=\"query\" size=\"14\"></font></form></td>\n"
."</tr></table>\n"
."<table cellpadding=\"1\" cellspacing=\"2\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#DAD8D8\">\n"
."<tr>\n"
."<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='/'\"><a href=\"/\">Home</a></td>\n"
."<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Your_Account'\"><a href=\"modules.php?name=Your_Account\">Sua Conta</a></</td>\n"
."<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Content'\"><a href=\"modules.php?name=Content\">Conteúdo</a></td>\n"
."<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Submit_News'\"><a href=\"modules.php?name=Downloads\">Downloads</a></td>\n"
."<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Top'\"><a href=\"modules.php?name=Top\">Top 10</a></td>\n"
."</tr>\n"
."</table>\n"

."<table cellpadding=\"0\" cellspacing=\"0\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#fefefe\">\n"
."<tr>\n"
."<td bgcolor=\"#DAD8D8\" colspan=\"4\"><IMG src=\"themes/Anagram/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."<tr valign=\"middle\" bgcolor=\"#DAD8D8\">\n"
."<td width=\"20%\" nowrap><font class=\"content\">\n";
if ($username == "Anonymous") {
echo "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">"._LOGINCREATE."</a>\n";
} else {
echo "&nbsp;&nbsp;"._HELLO." $username!";
}
echo "</font></td>\n"
."<td align=\"center\" height=\"20\" width=\"60%\">\n"
."&nbsp;\n"
."</td>\n"
."<td align=\"right\" width=\"20%\"><font class=\"content\">\n"
."<script type=\"text/javascript\">\n\n"
."<!-- // Array ofmonth Names\n"
."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"
."var now = new Date();\n"
."thisYear = now.getYear();\n"
."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
."// -->\n\n"
."</script></b></font></td>\n"
."<td>&nbsp;</td>\n"
."</tr>\n"
."<tr>\n"
."<td bgcolor=\"#DAD8D8\" colspan=\"4\"><IMG src=\"themes/ Anagram/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."</table>\n"

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...