Link to specific image on fotorama -


i have fotorama pictures , want link specific one. example i'd go third image of carousel link , not first one. guess should use .activeindex don't know how it.

thanks in advance!

this covered in fotorama documentation.

just add attribute data-hash="true" enclosing fotorama div element:

<div class="fotorama" data-hash="true">   <img src="1.jpg" id="photo_1">   <img src="2.jpg" id="photo_2">   <img src="3.jpg" id="photo_3">   ... etc ... </div> 

and link them using id attribute url fragment identifier, e.g.:

http://example.com/my_gallery.html#photo_1 http://example.com/my_gallery.html#photo_2 http://example.com/my_gallery.html#photo_3 

there examples can play here: http://fotorama.io/customize/hash/


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -