1) Script Title:
Simple Controls Gallery v1.4
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...plegallery.htm
3) Describe problem:
I have problems with
In head I have:
Code:<script type="text/javascript" src="/categ.js"></script> <script type="text/javascript" src="/simplegallery.js"> /*********************************************** * Simple Controls Gallery- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more ***********************************************/ </script>
In categ.js, I have:
In body I have:Code:<script type="text/javascript"> var mygallery=new simpleGallery({ wrapperid: "category1", //ID of main gallery container, dimensions: [360, 260], //width/height of gallery in pixels. Should reflect dimensions of the images exactly .................. </script>
When I load page, the script is not called, because is in extended file. If I paste it directly in head - it's works.Code:<div id="category1"></div>
So, How I can call from "body" with some tag the function in categ.js








Bookmarks