我正在尝试在我的 DotNetNuke 网站上使用 Highslide ( http://highslide.com/ )。
问题是缩略图只是链接到图像,而不是在 Highslide 中打开。就好像javascript被忽略了。
我在屏幕截图部分显示了缩略图 - 示例如下:http: //leansoftware.net/en-us/help/exceldatabasetasks/introduction.aspx
我在模块的标题中包含了 javascript 引用:
<script type="text/javascript" src="http://leansoftware.net/highslide/easing_equations.js"></script>
<script type="text/javascript" src="http://leansoftware.net/highslide/highslide-with-gallery.js"></script>
<script type="text/javascript" src="http://leansoftware.net/highslide/highslide.config.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="http://leansoftware.net/highslide/highslide.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="http://leansoftware.net/highslide/highslide-ie6.css" />
<![endif]-->
然后在 DNN 模块内容中:
<div class="highslide-gallery">
<ul>
<li>
<a href="http://leansoftware.net/highslide/images/large/Edit_Titles.jpg" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Edit_Titles.jpg" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/DataSourceTab.JPG" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/DataSourceTab.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/Help/ExcelDatabaseTasks/Introduction/tabid/151/ctl/Edit/mid/682/language/en-US/highslide/images/large/Excel-More-Options.JPG" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Excel-More-Options.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/Excel-Workstation-Tab.JPG" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Excel-Workstation-Tab.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/DestTemplateTab.JPG" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/DestTemplateTab.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/Excel-Auto-Filter.jpg" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Excel-Auto-Filter.jpg" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/Edit-Relational-Data-In-Excel.jpg" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Edit-Relational-Data-In-Excel.jpg" />
</a>
</li>
<li>
<a href="http://leansoftware.net/Help/highslide/images/large/DataLoad.JPG" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/DataLoad.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/Excel-Batch-Tab.JPG" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Excel-Batch-Tab.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/WorksheetTab.JPG" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/WorksheetTab.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/Help/ExcelDatabaseTasks/highslide/images/large/Task-Parameters-In-Action.jpg" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Task-Parameters-In-Action.jpg" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/Excel-Task-Parameters.JPG" class="highslide">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Excel-Task-Parameters.JPG" />
</a>
</li>
</ul>
<div style="clear: both;"></div>
</div>
请问有人可以建议修复吗?
编辑(作者):格林威治标准时间 08:19 感谢您的回复。现在代码如下:
DNN 模块标题:
script type="text/javascript" src="http://leansoftware.net/highslide/easing_equations.js"></script>
<script type="text/javascript" src="http://leansoftware.net/highslide/highslide-with-gallery.js"></script>
<script type="text/javascript" src="http://leansoftware.net/highslide/highslide.config.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="http://leansoftware.net/highslide/highslide.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="http://leansoftware.net/highslide/highslide-ie6.css" />
<![endif]-->
HTML 模块:
<div class="highslide-gallery">
<ul>
<li>
<a href="http://leansoftware.net/highslide/images/large/Edit_Titles.jpg" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Edit_Titles.jpg" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/DataSourceTab.JPG" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/DataSourceTab.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/Excel-More-Options.JPG" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Excel-More-Options.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/Excel-Workstation-Tab.JPG" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Excel-Workstation-Tab.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/DestTemplateTab.JPG" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/DestTemplateTab.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/Excel-Auto-Filter.jpg" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Excel-Auto-Filter.jpg" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/Edit-Relational-Data-In-Excel.jpg" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Edit-Relational-Data-In-Excel.jpg" />
</a>
</li>
<li>
<a href="http://leansoftware.net/Help/highslide/images/large/DataLoad.JPG" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/DataLoad.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/Excel-Batch-Tab.JPG" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Excel-Batch-Tab.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/WorksheetTab.JPG" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/WorksheetTab.JPG" />
</a>
</li>
<li>
<a href="http://leansoftware.net/Help/ExcelDatabaseTasks/highslide/images/large/Task-Parameters-In-Action.jpg" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Task-Parameters-In-Action.jpg" />
</a>
</li>
<li>
<a href="http://leansoftware.net/highslide/images/large/Excel-Task-Parameters.JPG" class="highslide" onclick="return hs.expand(this, config1)">
<img alt="" src="http://leansoftware.net/highslide/images/thumbs/Excel-Task-Parameters.JPG" />
</a>
</li>
</ul>
<div style="clear: both;"></div>
</div>