Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于div显示的滚动javascript_Javascript_Jquery_Html_Css_Asp Classic - Fatal编程技术网

用于div显示的滚动javascript

用于div显示的滚动javascript,javascript,jquery,html,css,asp-classic,Javascript,Jquery,Html,Css,Asp Classic,我试图完成一个滚动或悬停几个链接,以显示一个带有几个屏幕截图的div。我应该如何开始写这个脚本 这是我的HTML <section class="tabs-content"> <table class="imagetable" cellpadding="0" cellspacing="0" width="100%"> <tr> <th colspan="2" class="reportname">Exam Repor

我试图完成一个滚动或悬停几个链接,以显示一个带有几个屏幕截图的div。我应该如何开始写这个脚本

这是我的HTML

<section class="tabs-content">
      <table class="imagetable" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <th colspan="2" class="reportname">Exam Reports</th>
    </tr>
    <tr>
      <td valign="top" class="formlabel" width="50%"><p><strong>For Faculty</strong><br />
      </p>
        <ul>
          <li><strong><a href="#">Exam Summary</a></strong><br /> 
            <em>Colorful and attractive end-of-exam report provides a clean summary from Learning Outcomes to At-Risk students<br />
            </em><br />
          </li>
          <% if session("medical") = 1 then %>
          <li><strong><a href="exams_category.asp">Category Analysis</a></strong><br />
            <em>Learning outcomes performance breakdown</em><br />
            <br />
          </li>
          <% end if %>
          <li><strong><a href="exams_itemanalysis.asp">Item/Question Analysis</a></strong><br />
            <em>Take an in-depth look at each item and its' performance</em><br />
<br />
          </li>
          <li><strong><a href="exams_etresults.asp">List of Students Scores</a></strong><br />
            <em>Simple list of every exam takers performance…configurable</em></li>
          </ul>
        <p>&nbsp;</p>
        <p><strong>For Students</strong><br />
        </p>
        <ul>
          <li><strong><a href="exams_release.asp">Release results directly to students</a></strong><br />
            <em>Make results available to students&hellip;configurable from simple to colorful</em></li>
        </ul></td>
      <td valign="top" class="formfield"  width="50%"><p><strong>Misc Administrative Reports<br /> <!--this section will be hidden and an image placeholder will display the images from the above report links-->
      </strong></p>
      <ul>
        <li><a href="exams_elapsedtime.asp">ET Elapsed Time</a></li>
        <li><a href="exams_backwardnav.asp">Backward Navigation</a></li>
        <li><a href="exams_unanswered.asp">Unanswered Essays</a></li>
        <li><a href="exams_midexam.asp">Mid-Exam Restart</a></li>
        <li><a href="exams_hardware.asp">Hardware Comparison</a></li>
        <li><a href="exams_absentee.asp">Absentee Report</a></li>
        <li><a href="exams_missingkeyword.asp">Missing Keywords</a></li>
      </ul></td>
      </tr>
    </table>
  </section>

    </div>
</div>

考试报告
为教员提供


  • 丰富多彩、吸引人的期末考试报告为有风险的学生提供了一份清晰的学习结果摘要


  • 学习成果绩效分解


  • 深入查看每个项目及其“性能”


  • 每个考生成绩的简单列表…可配置

面向学生


  • 将结果提供给学生&hellip;可配置从简单到丰富多彩
杂项管理报告

想法?我希望最后一个列表被上面链接的滚动图片所取代

Chris使用jQuery的.hover()方法。它允许您定义当用户将鼠标悬停在选择器上时激发的方法。它还有一个hoverOut事件处理程序,您可以在其中定义一个方法,作为离开选择器的用户来寻址

这将与您相关:

.hover(handlerIn(eventObject)、handlerOut(eventObject)) handlerIn(eventObject)鼠标指针进入元素时要执行的函数。 handlerOut(eventObject)鼠标指针离开元素时要执行的函数

所以你应该做一些类似的事情:

$('yourLinkSelector').hover(function(){
       //handle the user mouseover here..
       //remove last list
       //show your screenshot div
   }, function(){
       //handle the mouseout here..
       //do whatever div removal you need for the screenshot div
       //show last list again...
});
使用jQuery的.hover()方法。它允许您定义当用户将鼠标悬停在选择器上时激发的方法。它还有一个hoverOut事件处理程序,您可以在其中定义一个方法,作为离开选择器的用户来寻址

这将与您相关:

.hover(handlerIn(eventObject)、handlerOut(eventObject)) handlerIn(eventObject)鼠标指针进入元素时要执行的函数。 handlerOut(eventObject)鼠标指针离开元素时要执行的函数

所以你应该做一些类似的事情:

$('yourLinkSelector').hover(function(){
       //handle the user mouseover here..
       //remove last list
       //show your screenshot div
   }, function(){
       //handle the mouseout here..
       //do whatever div removal you need for the screenshot div
       //show last list again...
});