sheraz Posted February 14, 2011 Share Posted February 14, 2011 hi, i want to load the jquery thickbox when the page loads. can some body guide me how to do this. i am trying to do it as below. function showthickbox() { var a = $("#link"); var t = a.title || a.name || null; var l = a.href || a.alt; var g = a.rel || false; tb_show(t,l,g); } <body onLoad="showthickbox();"> Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 14, 2011 Share Posted February 14, 2011 In jquery, you no longer use things like onLoad="function". You would use the document.ready() code. http://docs.jquery.com/How_jQuery_Works#Launching_Code_on_Document_Ready Quote Link to comment 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.