Tarih: 2007-05-21, 11:40:52 Mesaj konusu: Javascript li ve Flashli Blokta sorun?
Merhaba,
Ben Biletix gibi değişten haber bulugu yaptım, 600x200 boyutlarında kendi kendine değişen ust haber bloklarından. Yalnız bu Flash ve javascriptle yapilan html kodlarını php cevirdigimd esayfada gözükmüyor ve sorun oluyor...
Kod lar aşağıdaki gibidir...
Kod:
<script type="text/j a v a s c r i p t" src="swfobject.js"></script>
<p id="player2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/j a v a s c r i p t">
var s2 = new SWFObject("imagerotator.swf","rotator","600","200","7");
s2.addVariable("file","playlist.xml");
s2.addVariable("transition","random");
s2.addVariable("shownavigation","true");
s2.addVariable("overstretch","true");
s2.write("player2");
</script>
Kısaca bu kodlar ile Blok yapmak istemekteyim.
Saygılaırmla...
Tarih: 2007-05-21, 18:54:01 Mesaj konusu: Re: Javascript li ve Flashli Blokta sorun?
Merhaba.
Kod:
<?php
if (eregi("block-Block_Adi.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "<script type=\"text/j a v a s c r i p t\" src=\"swfobject.js\"></script> ";
$content .= "<p id=\"player2\"><a href=\"http://www.macromedia.com/go/getflashplayer\">Get the Flash Player</a> to see this player.</p> ";
$content .= "<script type=\"text/j a v a s c r i p t\"> ";
$content .= " var s2 = new SWFObject(\"imagerotator.swf\",\"rotator\",\"600\",\"200\",\"7\"); ";
$content .= " s2.addVariable(\"file\",\"playlist.xml\"); ";
$content .= " s2.addVariable(\"transition\",\"random\"); ";
$content .= " s2.addVariable(\"shownavigation\",\"true\"); ";
$content .= " s2.addVariable(\"overstretch\",\"true\"); ";
$content .= " s2.write(\"player2\"); ";
$content .= "</script> ";
?>
Yukarıdaki kodların tümünü seçin daha sonra not defterini açın.
Yukarıdaki kopyaladığınız kodları not defterine yapıştırınız.
Kod:
if (eregi("block-Block_Adi.php",$PHP_SELF)) {
Yukarıdaki Block_Adi yazan yere bloga vermek istediğiniz adı yazınız örnek verelim.
Kod:
if (eregi("block-Biletix.php",$PHP_SELF)) {
Olsun.
Sonra not defterimizi Farklı Kaydet diyelim. Cıkan pencerede dosyamızı block-Biletix.php olarak kaydedelim.
Ftp de bulunan block klasorune dosyamızı atıp admin panelin blogu aktif ediyoruz.
Tarih: 2007-05-21, 19:20:48 Mesaj konusu: Re: Javascript li ve Flashli Blokta sorun?
MuratKiLiC usta,
Dediklerini yaptım ama sitede görüntülenmedi, ben direk HMTL kodunu asağı yazayım...
Kod:
<html>
<head>
<script type="text/j a v a s c r i p t" src="swfobject.js"></script>
</head>
<body>
<p id="player2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/j a v a s c r i p t">
var s2 = new SWFObject("imagerotator.swf","rotator","600","200","7");
s2.addVariable("file","playlist.xml");
s2.addVariable("transition","random");
s2.addVariable("shownavigation","true");
s2.addVariable("overstretch","true");
s2.write("player2");
</script>
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız