Highslide不会在Wordpress上展开图像
我正在尝试在没有插件的情况下将Highslide与我的Wordpress站点集成。我已将hs.graphicsDir变量更改为:Highslide不会在Wordpress上展开图像,highslide,Highslide,我正在尝试在没有插件的情况下将Highslide与我的Wordpress站点集成。我已将hs.graphicsDir变量更改为: graphicsDir : 'http://hyohanpark.com/wp-content/themes/Noir/highslide/graphics/' “我的标签”中的代码也为: <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/hig
graphicsDir : 'http://hyohanpark.com/wp-content/themes/Noir/highslide/graphics/'
“我的标签”中的代码也为:
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/highslide/highslide-with-gallery.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/highslide/highslide.config.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/highslide/highslide.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/highslide/highslide-ie6.css" />
<![endif]-->
我怀疑图像的onclick
与highslide.config.js文件的内容不一致
在onclick
中使用config1
时,还需要在highslide.config.js文件中使用相应的配置对象:
配置对象可以为空,但它通常包含库的设置。我怀疑图像的onclick
与highslide.config.js文件的内容不一致
在onclick
中使用config1
时,还需要在highslide.config.js文件中使用相应的配置对象:
配置对象可以为空,但通常会包含库的设置。谢谢!var config1不知怎么丢失了,所以我在中添加了该部分。它仍然不起作用,但我最终在wordpress中找到了图像的高级设置,并在“Link Rel”框中添加了“highslide”。这就成功了!谢谢var config1不知怎么丢失了,所以我在中添加了该部分。它仍然不起作用,但我最终在wordpress中找到了图像的高级设置,并在“Link Rel”框中添加了“highslide”。这就成功了!
<div class="highslide-gallery">
<ul>
<li>
<a href="http://hyohanpark.com/wp-content/uploads/2013/03/IMG_0042.png" class="highslide"
onclick="return hs.expand(this, config1 )">
<img src="http://hyohanpark.com/wp-content/uploads/2013/03/IMG_0042.png" width="230" height="154" alt=""/>
</a>
</li>
</ul>
<div style="clear:both"></div></div>
var config1 = {
//configurations for the images
};