Maru
04-04-2012, 03:40 AM
hi guys!
I'm trying to insert some php code into the simple gallery, I tried with this, but it doesn't work.
Can u help me? I couldn't found something on internet.
Thanks in advance...
Here is the code:
<script type="text/javascript">
var img = '<?php $imagen="imagenes/banners/$banners->id/n0-s0.jpg"; echo $imagen ?>'
var enlace = '<?php echo $banners->link ?>'
var tit = '<?php echo $banners->titulo ?>'
var mygallery=new simpleGallery({
wrapperid: "simplegallery", //ID of main gallery container,
dimensions: [1280, 510], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["img", "enlace", "tit", ""]
],
...
</script>
I'm trying to insert some php code into the simple gallery, I tried with this, but it doesn't work.
Can u help me? I couldn't found something on internet.
Thanks in advance...
Here is the code:
<script type="text/javascript">
var img = '<?php $imagen="imagenes/banners/$banners->id/n0-s0.jpg"; echo $imagen ?>'
var enlace = '<?php echo $banners->link ?>'
var tit = '<?php echo $banners->titulo ?>'
var mygallery=new simpleGallery({
wrapperid: "simplegallery", //ID of main gallery container,
dimensions: [1280, 510], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["img", "enlace", "tit", ""]
],
...
</script>