Neither one is valid javascript code. If they are fragments of valid code, the second one should probably be:
Code:
gallery4.buildpagination("galleryalt", ["<img src='http://domain.com/images.jpg' />"
But according to the documentation, both parameters must be arrays, so:
Code:
gallery4.buildpagination(["galleryalt"], ["<img src='http://domain.com/images.jpg' />"
And that's still just a fragment, the second array needs to be closed and perhaps have another item or items in it, and the function lacks a closing ).
Bookmarks