I'll try to use a code jquery inline into a page content

<script>

$(document).ready(function(){ $.lightbox(' http://www.mysite.com/files/prova.jpg')} ;

</script>

How I need do it?

I've see that I need to use this syntax

<?php
drupal_add_js('$(document).ready(function({$.lightbox('http://www.walterfantauzzi.com/files/prova.jpg')};', 'inline');}));
?>

But It not work why???

Comments

Anonymous’s picture

Why not use lightbox2 module instead? http://drupal.org/project/lightbox2.
Using inline code gives you no flexibility at all.