OnLoad Click or Trigger embed lightbox

Wednesday, July 2, 2014

When I get on one of my pages I want an lightbox to be loaded. I cant figure out how to make it happen.


Part of the jQuery:



<head>
<script src="http://ift.tt/rs8qB8"></script>
<script type="text/javascript" src="jss/jquery.js"></script>
<script src='http://ift.tt/1jIJ48Y'></script>
<script>
$(document).ready(function() {
$(".foo").trigger('click');
<script
});
</head>


The image/link that should be clicked automaticly:



<img class="foo" src="imgs/logo-growpact.png"data-rel='fh5-light-box-demo' data-href='http://ift.tt/1rh9ndO' data-width='1280' data-height='720' data-title='Rootcage'></a>






http://ift.tt/1jIJ491