javascript - how to autostart nanoGallery from a link -
i know has been asked before answers given did not work me , scenario in case different.
i starting evaluate nanogallery, looks requirement run slideshow of inline image references. want run slideshow link rather having display set of thumbnails , clicking/tapping on 1 start slideshow. doesn't seem me particularly unusual requirement, large slideshow set of thumbnails occupy far space on screen.
my html simply:
<a id="startlink" href="javascript:void(0)" style="margin-bottom: 40px;">run slide show</a> <div id="nanogallery"> <a id="first" href=... data-ngdesc=... /> ...
so have tried:
$(document).ready(function () { $("#startlink").click(function (e) { $("#nanogallery").nanogallery({ slideshowautostart: true, ... }); $("#first").trigger("click"); }); });
i have tried various alternatives, including placing script block @ end of body rather in head, doing click() rather trigger("click"), referencing $("#nanogallery").children()[0] rather $("#first"), , on. have tried createevent/dispatchevent approach suggested elsewhere. ever row of (in case empty have not supplied thumbnail images) thumbnail blocks still have click on start slideshow. possible nanogallery uses different event or events rather click? has got work nanogallery?
i have seen suggestion use 'deep linking' using hash value in url identify gallery/album in question, have no idea how generate or determine value , may works online image repository such picasa.
jon
Comments
Post a Comment