karlosrapanui Posted February 27, 2012 Report Share Posted February 27, 2012 Olha só.....tenho essa rotina pra filtrar os bannerswhile ($row = mysql_fetch_array($rsExibirBannerHome, MYSQL_ASSOC)) { $idPosicao = $row['posicao']; if ($idPosicao == '1') { $localBanner1 = "adm-5CEB03C2-7C9F-44F9-8D44-4B7B9B63DEB2/".$row['banner']; $linkBanner1 = 'http://'.$row["link"]; }}pra exibir echo "<a href='$linkBanner1' target='_blank' rel='lightbox[roadtrip]'>"; echo "<img src='$localBanner1' border='0' width=480 height=180 /></a>";exibe na boa.....porem eu quero exibir um banner feito em flash....fiz assim echo "<a href='$linkBanner1' target='_blank' rel='lightbox[roadtrip]'>"; echo( "<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=\"200\" height=\"85\"><param name=\"movie\" value=\"$localBanner1\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><param name=\"movie\" value=\"$localBanner1\" /><embed src=\"$localBanner1?linkURL=$linkBanner1\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"type=\"application/x-shockwave-flash\" width=\"200\" height=\"85\"></embed></object> ");echo "</a>";ele exibe o banner....porem não habilita o link...O que sera que ta errado nesse "trem" ?[]'sCarlos Quote Link to comment Share on other sites More sharing options...
0 JaguA Posted March 3, 2012 Report Share Posted March 3, 2012 VOcê não precisa teressa linha echo "<a href='$linkBanner1' target='_blank' rel='lightbox[roadtrip]'>"; já no codigo do banner vai te que mudar um poco tenta dessa forma ve se da certo. echo( '<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=\"200\" height=\"85\"><param name=\"movie\" value=\"'$localBanner1.'\"> <param name=\"quality\" value=\"high\"> <param name=\"wmode\" value=\"transparent\"> <param name=\"movie\" value=\"'.$localBanner1.'\" /> <embed src=\"'.$localBanner1.'?linkURL='.$linkBanner1.'\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"200\" height=\"85\"></embed></object> '); Quote Link to comment Share on other sites More sharing options...
Question
karlosrapanui
Olha só.....tenho essa rotina pra filtrar os banners
while ($row = mysql_fetch_array($rsExibirBannerHome, MYSQL_ASSOC)) {
$idPosicao = $row['posicao'];
if ($idPosicao == '1') {
$localBanner1 = "adm-5CEB03C2-7C9F-44F9-8D44-4B7B9B63DEB2/".$row['banner'];
$linkBanner1 = 'http://'.$row["link"];
}
}
pra exibir
echo "<a href='$linkBanner1' target='_blank' rel='lightbox[roadtrip]'>";
echo "<img src='$localBanner1' border='0' width=480 height=180 /></a>";
exibe na boa.....porem eu quero exibir um banner feito em flash....
fiz assim
echo "<a href='$linkBanner1' target='_blank' rel='lightbox[roadtrip]'>";
echo( "<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=\"200\" height=\"85\"><param name=\"movie\" value=\"$localBanner1\">
<param name=\"quality\" value=\"high\">
<param name=\"wmode\" value=\"transparent\">
<param name=\"movie\" value=\"$localBanner1\" />
<embed src=\"$localBanner1?linkURL=$linkBanner1\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"
type=\"application/x-shockwave-flash\" width=\"200\" height=\"85\"></embed></object> ");
echo "</a>";
ele exibe o banner....porem não habilita o link...
O que sera que ta errado nesse "trem" ?
[]'s
Carlos
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.