0

Nextopia のクイック ビュー ポップアップの外観を再現しようとしています。彼らはカラーボックスを使用しています。私たちのサイトの例は、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>

カラーボックス構文でmivaコードを正しく呼び出す方法を誰か教えてもらえますか?

4

2 に答える 2

0
$.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>

上記は、単一のカラーボックス参照を許可します。

于 2012-11-29T19:11:59.003 に答える
0

あなたがこれについて尋ねていることを理解しているように:

$.colorbox({ href: '#inline_content', inline:true });

そしてhtml:

<div style='display:none'>
     <div id='inline_content'>test</div>
</div>
于 2012-10-17T18:17:58.413 に答える