How to invoke simplemodal with onclick inline?
问题 I can use Eric Martin's simplemodal somewhat. But I would like to call it inline with onclick . Something inline like this: <a href="http://ibm.com" onclick="$.modal({url:'http://ibm.com', width:586,height:570,animate:true,opacity:60})"> IBM </a> Not like this: (typically at the bottom of the page) $('.free_modal').click(function(e) {var hrefval= $(this).attr("href"); $.modal('<iframe src="' + hrefval + '" height="535" width="1000" style="border:none; margin:0 9px; padding-bottom:0; padding