jerald717 Posted June 25, 2011 Share Posted June 25, 2011 Hi, I am relatively new to Javascript and PHP. I have managed to figure out how to implement lightbox in displaying an image upon the click of an <a href> link but what I really want to do is to embed the lightbox display in my website's index.php and have it auto-load when I access the url of my main page. I have searched the web for this and have not found any tutorial / solution. Would anyone be able to help in this area? Many thanks. Quote Link to comment https://forums.phpfreaks.com/topic/240354-auto-load-lightbox/ Share on other sites More sharing options...
Omirion Posted June 25, 2011 Share Posted June 25, 2011 I don't really understand what your goal is here. A little more info perhaps? Quote Link to comment https://forums.phpfreaks.com/topic/240354-auto-load-lightbox/#findComment-1234637 Share on other sites More sharing options...
ZulfadlyAshBurn Posted June 25, 2011 Share Posted June 25, 2011 what you need would be window onload. this might help <script> window.onload = function () { // put what you want to execute here. } </script> Quote Link to comment https://forums.phpfreaks.com/topic/240354-auto-load-lightbox/#findComment-1234662 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.