当幻灯片中的事件发生时,幻灯片将进入展开状态 [英] when event raised in slide the slide goes to unexpand

查看:82
本文介绍了当幻灯片中的事件发生时,幻灯片将进入展开状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的页面中创建了一个幻灯片放映我在.aspx中使用此代码

在jquery中我正在使用这个jquery函数



I created one slide show in my page I am using this code in .aspx
In jquery I am using this jquery function

$(document).ready(function () {
        $("#flip").click(function (e) {
            $("#hide").slideToggle("slow");
            e.preventDefault();
        });
    });





当我点击按钮时,幻灯片正在向下扩展,



但是,这里我在幻灯片框中的问题我在下拉事件被触发时创建了一个下拉列表,幻灯片将向上展开。



我需要解决方案,因为只有在下拉事件发生时它才会向下扩展触发或在页面上触发的任何其他事件。



这意味着当我点击下拉按钮时它会回到帖子后立即滑动框上升。如何防止这种情况。



请与我分享任何想法。



Here when I click button the slide is expanding down,

But, here my issue in slide box I created one drop down when the drop down event is fired the slide is goes to expounds to up.

I need solution like it should be expanding down only when drop down event is fired or any other events fired on the page.

This means when I click drop down button its going to the post back then immediately slide box goes up. How can I prevent this.

please share any idea to me.

推荐答案

document )。ready( function (){
(document).ready(function () {


#flip)。click( function (e) {
("#flip").click(function (e) {


#hide)。slideToggle(< span class =code-string> slow);
e.preventDefault();
});
});
("#hide").slideToggle("slow"); e.preventDefault(); }); });





这时当我点击按钮时,幻灯片正在向下扩展,



但是,这里我在幻灯片框中的问题我在下拉事件被触发时创建了一个下拉列表,幻灯片将逐渐展开。



我需要解决方案,因为只有当下拉事件被触发或任何其他情况时它才应该向下扩展在页面上触发的事件。



这意味着当我点击下拉按钮时它会回到帖子后立即滑动框上升。我怎样才能防止这种情况发生。



请与我分享任何想法。



Here when I click button the slide is expanding down,

But, here my issue in slide box I created one drop down when the drop down event is fired the slide is goes to expounds to up.

I need solution like it should be expanding down only when drop down event is fired or any other events fired on the page.

This means when I click drop down button its going to the post back then immediately slide box goes up. How can I prevent this.

please share any idea to me.


这篇关于当幻灯片中的事件发生时,幻灯片将进入展开状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆