tarayıcılarda flash sorunu

sinan

OpenCart-TR
Katılım
21 Eki 2010
Mesajlar
63
Tepkime puanı
0
Puanları
0
dönen flash koydum ancak farklı kodlar farklı sorunlara yol açtı.
Kod:
<div>
<object align="absMiddle" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="558" height="200">
	<param name="movie" value="carousel.swf">
	<param name="quality" value="medium">
	<param name="scale" value="exactfit">
	<param name="wmode" value="window">
<embed src="carousel.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="558" height="200" quality="High">
</object>
 </div>
yukarıdaki kod explorerda normal
in99x2.jpg
resimdeki gibi.
firefox da işte arka tarafı siyah olarak çıkıyor.
24b2g6c.jpg


Kod:
<object align="absMiddle" classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="200" width="558"><param name="loop" value="false" /><param name="quality" value="high" /><param name="allowScriptAccess" value="always" /><param name="scale" value="exactfit" /><param name="movie" value="carousel.swf" /><param name="quality" value="high" /><param name="movie" value="carousel.swf" /><param name="movie" value="carousel.swf" /><param name="movie" value="carousel.swf" /><param name="Movie" value="carousel.swf" /><param name="Quality" value="High" /><param name="Scale" value="ExactFit" /><param name="Play" value="true" /><param name="Loop" value="false" /><param name="Menu" value="false" /><param name="salign" value="L" /><embed allowscriptaccess="always" height="200" loop="false" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" scale="exactfit" src="carousel.swf" type="application/x-shockwave-flash" width="558"></embed></object>
yukardaki kodsa firefoxda sorunsuz explorer da ise boş çıkıyor.işin içinden çıkamadım.önerinizi bekliyorum.
 

bilgikur

OpenCart-TR
Katılım
13 Kas 2010
Mesajlar
38
Tepkime puanı
0
Puanları
0
o sorun bendede var. anlamadım gititi.
 

sinan

OpenCart-TR
Katılım
21 Eki 2010
Mesajlar
63
Tepkime puanı
0
Puanları
0
çözüme /public_html/catalog/view/theme/default/template/common/home.tpl
dosyasına php kodla farklı tarayıcılara göre swf uyumluluyla halldettim.

home.tpl içeriği.

PHP:
<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content">
  <?php if ($welcome) { ?>
  <div class="top">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center">
      <h1><?php echo $heading_title; ?></h1>
    </div>
  </div>
  <div class="middle">
   <?php
/*
farklı tarayıcılara göre müdahale ettik
by sinan 
*/

$browser = getenv('HTTP_USER_AGENT');
$swf = null;
    if(strpos($browser,'MSIE') !== false)
    {
        $swf = '<div><object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" align="absMiddle" border="0" height="200" width="558"><param name="movie" value="carousel.swf"><param name="quality" value="medium"><param name="scale" value="exactfit"><param name="wmode" value="window"><embed src="carousel.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" quality="High" height="200" width="558"></object></div>';
    }
    
    
    else
    {
        $swf = '<div><object align="absMiddle" classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="200" width="558"><param name="loop" value="false" /><param name="quality" value="high" /><param name="allowScriptAccess" value="always" /><param name="scale" value="exactfit" /><param name="movie" value="carousel.swf" /><param name="quality" value="high" /><param name="Quality" value="High" /><param name="Scale" value="ExactFit" /><param name="Play" value="true" /><param name="Loop" value="false" /><param name="Menu" value="false" /><param name="salign" value="L" /><embed allowscriptaccess="always" height="200" loop="false" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" scale="exactfit" src="carousel.swf" type="application/x-shockwave-flash" width="558"></embed></object></div>'; // :D
    }
    
    echo $swf;
?> 
    <!--div><?php echo $welcome; ?></div-->
  </div>
  <div class="bottom">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center"></div>
  </div>
  <?php } ?>
  <?php foreach ($modules as $module) { ?>
  <?php echo ${$module['code']}; ?>
  <?php } ?>
</div>
<?php echo $footer; ?>
 
Üst