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

(Resolvido) Erro no Firefox!


Vagner Nunes

Pergunta

Prezados,

Bom dia. Preciso da ajuda dos senhores, estou com problema aqui, tenho um include aqui que aparece umas campanhas em Flash, o problema que não está aparecendo no Firefox.

No Internet Explorer, está funcionando perfitamente, o problema é o Mozila.

Segue código abaixo:

<?php require_once('Connections/Conn.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;
}
}
mysql_select_db($database_Conn, $Conn);
$query_Campanhas = "SELECT * FROM campanhas WHERE ativo = 'Ativar' ORDER BY RAND()";
$Campanhas = mysql_query($query_Campanhas, $Conn) or die(mysql_error());
$row_Campanhas = mysql_fetch_assoc($Campanhas);
$totalRows_Campanhas = mysql_num_rows($Campanhas);
?>
<script language="JavaScript" type="text/javascript">
{
swf = "campanhas/<?php echo $row_Campanhas['arquivo'];?>"
}
document.write('<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="434" height="153"><param name="movie" value="' + swf + '"><param name="quality" value="high"> <param name="wmode"     value="transparent"><embed src="' + swf + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="153" height="434"></embed></object>')
</script>
<?php
mysql_free_result($Campanhas);
?>

Sds,

Vagner Nunes

Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

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...