javascript - Fancybox open with autplay via secondary link -


i using free "fancybox wordpress" plugin open couple of images nice lightbox.

now have huge title image saying "show diashow" , pictures of gallery underneath single pics. clicking single images opens them how supposed be, beeing able navigation left/right. problem is, if click huge title image, should open first image of gallery + set autoplay. how can achieve this?

i tried this, didnt work out:

html

<a id="diashow" href="/wp-content/gallery/galerie/1457454_10152045202815199_1685986480_n.jpg" rel="fancybox"><img src="/wp-content/themes/kt2014/images/diashow.jpg" alt="diashow starten" /></a> 

js

$(document).ready(function() {     /// start diashow autplay on click         jquery('#diashow').click(function(evt) {             jquery("a.fancybox").fancybox.open();             jquery.fancybox.play();         }); }); 

thanks every on this!


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -