New Community Forums are coming. Watch this space for news.
Subscribe: RSS
  • Hi,

    I am calling the thumbs and the pictures on the same page. But when I click on thumb I get this error message on line 4:
    SyntaxError: Unexpected EOF

    <li>
           <a href="javascript:void(0);"
    onClick="javascript:showPic('[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]','[+maxigallery.picture.title:htmlent+]','[+maxigallery.picture.descr:htmlent+]',[+maxigallery.picture_width_normal+],[+maxigallery.picture_height_normal+]);return
    false;">
                   <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]"
    class="thumbnail" title="[+maxigallery.picture.title:htmlent+]"
    alt="[+maxigallery.picture.title:htmlent+]" />
           </a>
    </li>


    <script type="text/javascript">
    function showPic(url,title,descr,width,height) {
           var img = document.getElementById('maxImage');
           var titleHolder = document.getElementById('maxTitle');
           var descrHolder = document.getElementById('maxDescr');
    	   var newImg = new Image();
    	   newImg.onLoad = doImage(img,url,width,height);
           if (titleHolder != null) {
                   for (var i = 0; i < titleHolder.childNodes.length; i++) {
                           titleHolder.removeChild(titleHolder.childNodes[i]);
                   };
                   if (title != "") {
                           var node=document.createTextNode(title);
                   }
                   else {
                           var node=document.createTextNode("");
                   }
                   titleHolder.appendChild(node);
           }
           if (descrHolder != null) {
                   for (var i = 0; i < descrHolder.childNodes.length; i++) {
                           descrHolder.removeChild(descrHolder.childNodes[i]);
                   };
                   if (descr != "") {
                           var node=document.createTextNode(descr);
                   }
                   else {
                           var node=document.createTextNode("");
                   }
                   descrHolder.appendChild(node);
           }
    }
     
    function doImage(img,url,width,height) {
    img.src=url;
    }
    </script>


    Anybody have same problem or knows why?

    Thanks!
    Melinda