0

我正在尝试在我的 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>
4

1 回答 1

0

您的“a href”根本没有调用 Highslide JS 脚本。仅仅用“class='highslide'”标记它们是不够的。您需要添加一个 onclick 属性。

让我们获取您的第一个链接:

<a href="/highslide/images/large/Edit_Titles.jpg" class="highslide">

这需要是:

<a href="/highslide/images/large/Edit_Titles.jpg" class="highslide" onclick="return hs.expand(this)">

highslide.config.js 文件的链接也是一个问题。它指向似乎不存在的东西。

于 2013-06-12T02:18:22.460 回答