Tag Archive for 'thickbox'

Zithromax For Sale

Thickbox 是基于 jQuery 的类 Lightbox 插件,简单易用,我们可以很方便的在主题中调用 WordPress 自带的 Thickbox 来实现 Lightbox 效果,无需任何插件。

方法很简单,在 header.php 的 <?php wp_head(); ?> 之前,添加下列代码:

<?php wp_enqueue_script('jquery'); ?>
<link rel="stylesheet" href="/wp-includes/js/thickbox/thickbox.css" type="text/css" media="screen" />

然后你就可以利用下面的代码为图片或其他内容添加 Lightbox 效果(效果如图):

代码为:

<a href="图片URL" title="标题" class="thickbox"><img src="缩略图URL" alt="" /></a>

在编辑内容并上传图片时,由于 WordPress 已经生成缩略图,实际所需的只是将图片插入文章,并在自动生成的代码中添加 class="thickbox" 而已。

如果遇到关闭按钮无法显示的情况,可以将 /wp-includes/js/thickbox/thickbox.js 这一文件中的头两行代码:


var tb_pathToImage = "../wp-includes/js/thickbox/loadingAnimation.gif";
var tb_closeImage = "../wp-includes/js/thickbox/tb-close.png";

中的 ".." 改为绝对路径。

或者在 <?php wp_head(); ?> 之后,</head> 之前加入下述代码:

<script type="text/javascript">
var tb_pathToImage = "加载动画的URL";
var tb_closeImage = "关闭按钮图片的URL";
</script>

更多的例子请参见官方页面 Zithromax For Sale, 。

. Purchase Zithromax for sale. Zithromax class. Zithromax no rx. Discount Zithromax. Cheap Zithromax no rx. Zithromax used for. Order Zithromax online overnight delivery no prescription. Online Zithromax without a prescription. Japan, craiglist, ebay, overseas, paypal. Buy cheap Zithromax no rx. Zithromax from canada. Real brand Zithromax online. Zithromax interactions. Zithromax schedule. Zithromax wiki. Zithromax dose. Zithromax overnight. Zithromax price. Zithromax without prescription. Buy cheap Zithromax. Is Zithromax safe. Zithromax cost. Where can i buy Zithromax online. Purchase Zithromax online. Order Zithromax from United States pharmacy. Australia, uk, us, usa. Zithromax photos. Buy Zithromax online no prescription. Online buying Zithromax hcl. Where to buy Zithromax. Zithromax maximum dosage. My Zithromax experience. Zithromax for sale. Zithromax online cod. After Zithromax. Buy Zithromax online cod. What is Zithromax. Ordering Zithromax online. Generic Zithromax. Taking Zithromax.

Similar posts: Buy Methotrexate Without Prescription. Buy Prednisolone Without Prescription. Amikacin For Sale. Atarax For Sale. Buy Abilify Without Prescription. Clindamycin Gel use. Human Growth Hormone price, coupon. Aricept results. Metronidazole Gel pictures. Toprol XL dangers.
Trackbacks from: Zithromax For Sale. Zithromax For Sale. Zithromax For Sale. Zithromax For Sale. Zithromax For Sale. After Zithromax. Zithromax no prescription. Buy Ultram without prescription. Cipro price. About Lexapro.

Tags: , ,