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();"> Link to comment https://forums.phpfreaks.com/topic/227637-how-to-load-thickbox-at-onload-event/ 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 Link to comment https://forums.phpfreaks.com/topic/227637-how-to-load-thickbox-at-onload-event/#findComment-1174088 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.