Hey guys, I found this simple lightbox js >> http://www.cssjockey.com/files/downloads/code/jquery_css_lightbox/index.htm The lightbox will show if we click on the link. But how do we make it auto load under some circumstances: <script type="text/javascript"> if (document.getElementById('adc').clientHeight < 20) { what's the code to add here so that the lighbox will show?; }</script>
If you have the code from the tutorial in your html just add after the 2 click events this : $('a#show-panel').trigger('click');