小编viv*_*vek的帖子

如何在鼠标悬停时停止jquery imageslider

这是我的网站演示:http://daplonline.in/index5.php

我得到了这个jquery:http://designm.ag/tutorials/image-rotator-css-jquery/

用户鼠标悬停在小拇指图像当前幻灯片上时,我想停止滑块自动停止用户无法读取图像的广告

我想制作自动但当用户点击或鼠标悬停在小图像滑块上时必须停止.

我的jquery代码在这里

    <script type="text/javascript">
var intervalId;
var slidetime = 2500; // milliseconds between automatic transitions

$(document).ready(function() {  

  // Comment out this line to disable auto-play
    intervalID = setInterval(cycleImage, slidetime);

    $(".main_image .desc").show(); // Show Banner
    $(".main_image .block").animate({ opacity: 0.85 }, 1 ); // Set Opacity

    // Click and Hover events for thumbnail list
    $(".image_thumb ul li:first").addClass('active'); 
    $(".image_thumb ul li").click(function(){ 
        // Set Variables
        var imgAlt = $(this).find('img').attr("alt"); //  Get Alt Tag of Image …
Run Code Online (Sandbox Code Playgroud)

html javascript css jquery

1
推荐指数
1
解决办法
6826
查看次数

单击网站中的任何位置时如何关闭弹出窗口

我想在用户点击正文中的任意位置时关闭弹出广告.

这是我的网站http://daplonline.in/.我想在用户点击网站的任何位置时隐藏或关闭广告.

这是弹出的HTML代码:

<div style="top: 100px; background-color: rgba(5, 5, 0, 0.7); display: block;" id="wd1_nlpopup" data-expires="30" data-delay="10">
    <div id="overlay">
        <a href="#closepopup" id="wd1_nlpopup_close">x</a>
        <div class="content">  
            <a href="buyonline.php"><img src="images/online_course.gif"/></a>
        </div>                  
    </div>
</div>
Run Code Online (Sandbox Code Playgroud)

这是JavaScript代码:

<script type="text/javascript">
    $("body").click(function(){
        alert("me");
    });
</script>
Run Code Online (Sandbox Code Playgroud)

html css jquery

0
推荐指数
1
解决办法
2万
查看次数

标签 统计

css ×2

html ×2

jquery ×2

javascript ×1