Link directly to Lightbox

  • Variado
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 10 months ago #15021 by Variado
Hi,

I just bought HOT Lightbox and i like to know if it is possible to go right to the lightbox. So is it possible to make a button > and when you press on it the lightbox will popup, without clicking on a thumbnail?

Thanks

Albert

Please Log in to join the conversation.

More
12 years 10 months ago #15027 by ivan.milic
You can simulate click on image when you do button click


jQuery('<button jquery selector>').click(function(){
jQuery('<thumb jquery selector>').click();
});

Please Log in to join the conversation.

  • Variado
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 10 months ago #15044 by Variado
Hi Ivan,

Thanks for the quick answer.

Where do i place the code you send me?

My wish is: When i place a text in an article like *Click here* the

lightbox should pop-up instead of the page with thumbnails.

Thanks,

Please Log in to join the conversation.

More
12 years 10 months ago #15056 by ivan.milic
That is example code you need to modify it . <button jquery selector> and <thumb jquery selector> should be replaced with real selectors.

You can put it in <body> of index.php of template before </body> in script block, also you need to call it when document is ready:

...
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('<button jquery selector>').click(function(){
jQuery('<thumb jquery selector>').click();
});
});
</script>
</body>
....

Please Log in to join the conversation.

  • salih
    Inactive member
  • New Member
  • New Member
More
12 years 8 months ago #16890 by salih
Replied by salih on topic Re: Link directly to Lightbox
hello

I need use auction factory compoment
directory img from store auction show up or from catgorey if can fix please contact me yahoo masseger panbr"yahooo.co.uk
HOT Lightbox - Joomla Lightbox Module

Please Log in to join the conversation.

More
12 years 8 months ago #16914 by ivan.milic
Send link so we can see

Please Log in to join the conversation.

Time to create page: 0.222 seconds
Powered by Kunena Forum