[Resolvido] Erro no Firefox!
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"](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"](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
Discussão (6)
Carregando comentários...