Ir para conteúdo

POWERED BY:

Arquivado

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

visitante_php

flash nao aparece

Recommended Posts

eu so fazendo um sistema d banner randomico em flash, da seginte maneira, o flash eh q vai carregar os arquivos, pq como ele pode carregar externamente swf e jpg, pq nao usa-lo, ja vi "profissionais" fazer um codigo comum pra imagem e colocar um embed caso a extensao do arquivo for swf....o flash esta randomizando normal.o problema eh q ele nao esta aparecendo no template q eu fiz....nao aparece nada, você clica com o botao direito e aparece o menu, mas ele fica todo branco, dentro do flash, as imagens aparece, no html q publico com ele, ele tb aparece, as imagens tb...menos ele no template...ae vai o codigo do template

 

<?php require_once('../Connections/odebateon2008.php');
include("../admin/banners/banner.php"); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
	case "text":
	  $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
	  break;	
	case "long":
	case "int":
	  $theValue = ($theValue != "") ? intval($theValue) : "NULL";
	  break;
	case "double":
	  $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
	  break;
	case "date":
	  $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
	  break;
	case "defined":
	  $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
	  break;
  }
  return $theValue;
}
}

$maxRows_secoes = 16;
$pageNum_secoes = 0;
if (isset($_GET['pageNum_secoes'])) {
  $pageNum_secoes = $_GET['pageNum_secoes'];
}
$startRow_secoes = $pageNum_secoes * $maxRows_secoes;

mysql_select_db($database_odebateon2008, $odebateon2008);
$query_secoes = "SELECT * FROM secoes ORDER BY secao ASC";
$query_limit_secoes = sprintf("%s LIMIT %d, %d", $query_secoes, $startRow_secoes, $maxRows_secoes);
$secoes = mysql_query($query_limit_secoes, $odebateon2008) or die(mysql_error());
$row_secoes = mysql_fetch_assoc($secoes);

if (isset($_GET['totalRows_secoes'])) {
  $totalRows_secoes = $_GET['totalRows_secoes'];
} else {
  $all_secoes = mysql_query($query_secoes);
  $totalRows_secoes = mysql_num_rows($all_secoes);
}
$totalPages_secoes = ceil($totalRows_secoes/$maxRows_secoes)-1;

mysql_select_db($database_odebateon2008, $odebateon2008);
$query_caderno1 = "SELECT * FROM subcategorias WHERE fk_cat = 1";
$caderno1 = mysql_query($query_caderno1, $odebateon2008) or die(mysql_error());
$row_caderno1 = mysql_fetch_assoc($caderno1);
$totalRows_caderno1 = mysql_num_rows($caderno1);

mysql_select_db($database_odebateon2008, $odebateon2008);
$query_caderno2 = "SELECT * FROM subcategorias WHERE fk_cat = 2";
$caderno2 = mysql_query($query_caderno2, $odebateon2008) or die(mysql_error());
$row_caderno2 = mysql_fetch_assoc($caderno2);
$totalRows_caderno2 = mysql_num_rows($caderno2);
?><!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">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<link href="../tema/estilo1.css" rel="stylesheet" type="text/css" />
<script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="200" border="0" align="center" id="tablecontent">
  <tr>
	<td>data</td>
	<td>logo</td>
	<td>dolar</td>
	<td>banner</td>
  </tr>
  <tr>
	<td colspan="4"><table border="0">
	  <tr>
		<?php
  do { // horizontal looper version 3
?>
		  <td>| <a href="../secao.php?secao=<?php echo $row_secoes['id']; ?>"><?php echo $row_secoes['secao']; ?></a> |</td>
		  <?php
	$row_secoes = mysql_fetch_assoc($secoes);
	if (!isset($nested_secoes)) {
	  $nested_secoes= 1;
	}
	if (isset($row_secoes) && is_array($row_secoes) && $nested_secoes++ % 8==0) {
	  echo "</tr><tr>";
	}
  } while ($row_secoes); //end horizontal looper version 3
?>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td colspan="4"><table width="100" border="0" id="menua">
		<tr>
		  <td><div align="center"><a href="#">Principal</a></div></td>
		  <td><div align="center"><a href="#">Anuncie</a></div></td>
		  <td><div align="center"><a href="#">Edições</a></div></td>
		  <td><div align="center"><a href="#">Fale conosco</a></div></td>
		  <td><div align="center"><a href="#">Fique por dentro</a></div></td>
		  <td><div align="center"><a href="#">Telefones úteis</a></div></td>
		  <td><div align="center"><a href="#">Indique este site</a></div></td>
		  <td><div align="center"><a href="#">Expediente</a></div></td>
		  <td><div align="center">
			<ul id="Caderno1" class="MenuBarHorizontal">
			  <li><a class="MenuBarItemSubmenu" href="#">Caderno 1</a>
				<ul>
				  <?php do { ?>
					<li><a href="../subcategoria.php?subcategoria=<?php echo $row_caderno1['id']; ?>"><?php echo $row_caderno1['subcat']; ?></a></li>
					<?php } while ($row_caderno1 = mysql_fetch_assoc($caderno1)); ?>
				</ul>
			  </li>
			</ul>
		  </div></td>
		  <td><div align="center">
			<ul id="caderno2" class="MenuBarHorizontal">
			  <li><a class="MenuBarItemSubmenu" href="#">Caderno 2</a>
				<ul>
				  <?php do { ?>
					<li><a href="../subcategoria.php?subcategoria=<?php echo $row_caderno2['id']; ?>"><?php echo $row_caderno2['subcat']; ?></a></li>
					<?php } while ($row_caderno2 = mysql_fetch_assoc($caderno2)); ?>
				</ul>
			  </li>
			</ul>
		  </div></td>
		  <td><div align="center"><a href="#">Cadastre-se</a></div></td>
		  <td><div align="center"><a href="#">Administração</a></div></td>
		</tr>
	  </table></td>
  </tr>
  <tr>
	<td colspan="4">banner
	  <table width="100%" border="0" align="center">
		<tr>
		  <td><form id="form1" name="form1" method="post" action="">
			  <label>
			  <input type="text" name="busca" id="busca" />
			  </label>
			  <label>
			  <input type="submit" name="button" id="button" value="Buscar" />
			  </label>
		  </form></td>
		  <td> </td>
		  <td> </td>
		</tr>
	  </table></td>
  </tr>
  <tr>
	<td colspan="3"><!-- TemplateBeginEditable name="conteudo" -->conteudo<!-- TemplateEndEditable --></td>
	<td width="280px">banner
	  <table width="280" border="1" align="center">
		<tr>
		  <td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','280','height','190','src','../admin/banners/banner1','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../admin/banners/banner1' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="280" height="190">
			<param name="movie" value="../admin/banners/banner1.swf" />
			<param name="quality" value="high" />
			<embed src="../admin/banners/banner1.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="280" height="190"></embed>
		  </object></noscript></td>
		</tr>
		<tr>
		  <td> </td>
		</tr>
		<tr>
		  <td> </td>
		</tr>
		<tr>
		  <td> </td>
		</tr>
	  </table></td>
  </tr>
  <tr>
	<td colspan="4">copyright</td>
  </tr>
</table>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("Caderno1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
var MenuBar2 = new Spry.Widget.MenuBar("caderno2", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
<?php
mysql_free_result($secoes);

mysql_free_result($caderno1);

mysql_free_result($caderno2);
?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

topico resolvido, o dream colocava o endereço errado: o template aparecia pq no template o caminho ficava certo, as quando aplicava o template, o des********* mudava o caminho

 

obrigado a atencao de todos

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.