我正在尝试复制Nextopia的快速查看弹出窗口的外观。他们正在使用Colorbox。我们网站上的一个例子是http://www.hatsinthebelfry.com/category/womens-hats.html
这是当前按钮的Miva代码(测试页面:http://www.hatsinthebelfry.com/category/NEXtest.html)
当前按钮:
<input type="button" value="Quick View" onClick="divwin=dhtmlwindow.open('divbox&mvt:product:id;', 'div', 'somediv&mvt:product:id;', '&mvt:global:JSProdName;', 'width=600px,height=560px,top=20px,scrolling=1, center=1'); return false" style="cursor:hand;" class="nxt_moreinfo">这是我从Jack Moore (Colorbox的开发者)那里得到的代码,但这是用来打开一个html页面的。我需要打开一个div。
<button onclick='$.colorbox({href:"example.html"}); return false;'></button>谁能告诉我如何在colorbox语法中正确调用miva代码?
发布于 2012-10-18 02:17:58
据我所知,你问这个:
$.colorbox({ href: '#inline_content', inline:true });和html:
<div style='display:none'>
<div id='inline_content'>test</div>
</div>发布于 2012-11-30 03:11:59
$.colorbox({
rel:'mycontent',
inline:true,
href: function(){var url = $(this).attr('href'); return url;}
});
<a rel="mycontent" href="do-something.php?productid=somevalue">Do Something</a>上面允许使用单一的颜色盒引用。
https://stackoverflow.com/questions/12940414
复制相似问题