hi every body
i have template that it contains this type of java script for displaying wallpaper in the main screen :
<!-- JAVASCRIPT TRIGGERS -->
<script type="text/javascript">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({
theme: 'dark_square'
});
});
$.backstretch("images/background-home.jpg", {speed: 'slow'});
</script>
and i wanna change it to this form :
<!-- JAVASCRIPT TRIGGERS -->
<script type="text/javascript">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({
theme: 'dark_square'
});
});
$.backstretch("<? include "banner.php"; ?>", {speed: 'slow'});
</script>
but the problem is here because it doesn't work
i tested it in banner.php page and it is worked correctly and i don't have any problem with it .
banner.php :
<?php
include"db.php";
$sql=mysql_query("select * from banner where tf='1' ");
$r=mysql_fetch_array($sql);
$name=$r['name'];
echo"<img src=\"admin/banner/images/$name\" width=\"1440\" height=\"900\">";
?>
is there any body to help me please ???