Title1

Title2

Title3

3-2 fancybox

程式


	# ---- fancybox_code ----
	if (!file_exists(XOOPS_ROOT_PATH . "/modules/tadtools/fancybox.php")) {
		redirect_header("index.php", 3, _MA_NEED_TADTOOLS);
	}
	include_once XOOPS_ROOT_PATH . "/modules/tadtools/fancybox.php";
	$fancybox = new fancybox('.showOne', '90%', '90%');
	$reload = false;
	$fancybox->render($reload);

樣板


            <div id="product-single"  class="">
              <{if $row.pic}>
                <a href="<{$row.pic}>" class="showOne" title="點我看大圖">
                  <img src="<{$row.pic}>" class="img-responsive">
                </a>
              <{/if}>
            </div>