如何在shadowbox中打开一个页面?
我想在shadowbox中打开一个新页面,当我点击代码时,这个链接在同一页面的shadowbox中打开一个新页面。 怎么做?
rfq_list.php
$(document).ready(function() { $(".fancybox").fancybox({ type: "iframe", helpers : { overlay : { closeClick: false} // prevents closing when clicking OUTSIDE fancybox }, closeClick : false, // prevents closing when clicking INSIDE fancybox scrolling : 'no', width : 550, height : 0, autoScale : true, openEffect : 'elastic', closeEffect : 'fade', closeBtn : true, afterClose:function () { window.location.reload(); } }).trigger("onclick"); }); parent.$.fancybox.close(); .fancybox-custom .fancybox-skin { box-shadow: 0 0 50px #222; } $(function() { $("table").tablesorter({debug: true}); }); $(function(){ var tfrow = document.getElementById('tfhover').rows.length; var tbRow=[]; for (var i=1;i<tfrow;i++) { tbRow[i]=document.getElementById('tfhover').rows[i]; tbRow[i].onmouseover = function(){ this.style.backgroundColor = '#f3f8aa'; }; tbRow[i].onmouseout = function() { this.style.backgroundColor = '#ffffff'; }; } });
rfq.php
function showUser(str) { var $txtHint = $('#txtHint'); if (str == "") { $txtHint.html(''); return; } $txtHint.load('rfq_list.php?q=' + str) }
这个脚本有什么问题?
你包括jQuery三次:
除了特殊情况,你必须包括一次(并使用noconflict)。
现在,表分类器插件将从第三个包含的jQuery中分离出来并且您将面临错误。
删除其他jQuery包含并仅使用最新的。