English 中文(简体)
缩略语
原标题:onclick change plugin settings

这里的背景是:

$(function()
{
    $( .info ).jScrollPane(
        {showArrows: true, hijackInternalLinks: true, animateScroll: true}
    );
}); 

问题是<条码>双星:真实,与arrow相冲突,但我需要内部连接。

I assume this will fix the conflict. When you click the arrow button: <a class="jspArrow jspArrowDown jspActive"</a> it will change the jScrollPane settings to animateScroll: false then when you unclick it reverts to animateScroll: true

我希望这一点是有意义的。 任何帮助都是巨大的。

不愿退学。 我已经开了一个mo子,因为你可以看到 down的 t子。 我认为,它涉及的是囚犯。 图表:真实情况

http://jsfiddle.net/sVSsy/

成就

最佳回答

There is no problem seen on the official scroll_to_animate.html DEMO page using both options you require when the DIV s width is around 600px.

解决办法是使用jScrollPane arrowButtonSpeed Options,其价值不低于违约0。 在使用诸如300px等较小的DIV时,使用某些浏览器,例如 Chrome。

This jsfiddle update also has a removed asset of a duplicated mouse script, replaced a duplicate ID one with an additional ID four for DIV content since an ID can only be used once. You ll see other speed settings with their default values that you can experiment with for any changes in your DIV size.

Here s the updated jsfiddle:
http://jsfiddle.net/sVSsy/3/

问题回答

试图以你想要的东西摧毁和重建。

var api= $( #element ).data( jsp );
api.destroy();
$( #element ).jScrollPane({animateScroll: true});

你曾经尝试过这样的东西:

$( yourelement ).click(function(){
    if($( panedelement ).jScrollPane.animateScroll === true)
        $( panedelement ).jScrollPane.animateScroll = false;
    else
        $( panedelement ).jScrollPane.animateScroll = true
});

你们可以对降温和吸烟事件负责:

http://www.w3schools.com/jsref/event_onmousedown.asp http://www.w3schools.com/jsref/event_onmouseup.asp

因此,如果arrow死,你会把mate子 set死。 骗局不实, up子上你会mate 情况的确如此。





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签