evet denedim ve malesef olmadı ancak tek sorun orda değil. şöyle açıklayayım;
var photoArray = new Array(
// Source, Width, Height, Caption
new Array("IMG_0470.jpg", "650", "488", "Resim için açıklama"),
new Array("IMG_2441.jpg", "582", "350", "Mt. Toll as seen from the slopes of Mt. Audubon"),
new Array("IMG_2449.jpg", "600", "300", "Taking flight from the summit of Paiute"),
new Array("IMG_0677.jpg", "650", "488", "Plodding up Queen's Way Couloir on Apache"),
new Array("P3220073.jpg", "600", "400", "A storm brews in the distance (Red Rocks, NV)")
);üstteki kod manuel olarak resimleri çekiyor bu yazılı iken çalışıyor sayfamız sorun yok.
<?php echo "deneme"; ?>
var photoArray = new Array(
// Source, Width, Height, Caption
new Array("IMG_0470.jpg", "650", "488", "Resim için açıklama"),
new Array("IMG_2441.jpg", "582", "350", "Mt. Toll as seen from the slopes of Mt. Audubon"),
new Array("IMG_2449.jpg", "600", "300", "Taking flight from the summit of Paiute"),
new Array("IMG_0677.jpg", "650", "488", "Plodding up Queen's Way Couloir on Apache"),
new Array("P3220073.jpg", "600", "400", "A storm brews in the distance (Red Rocks, NV)")
);kodumuza sadece deneme amaçlı echo ekliyoruz ve sayfa patlıyor malesef.. php kodunu <script> </script> alanlarının arasında kullanmama izin vermiyor sanıyorum, bunun için bir çözüm üretmem gerek. js hakkında pek fazla bilgim olmadığı için deneme yanılma yaparak ilerliyorum.