English 中文(简体)
• 如何在不发生 mo花事件的情况下引发习惯 cur变
原标题:How to trigger custom cursor change on mousedown without mousemove event (jQuery)

Trying to change the cursor

我正试图树立一个可观的滚动形象,因此,当一个变数被 set为可喜的模式时,试图将 cur子改变成像,使我能够有好可用。 我发现的是,在我点击“一页”和“N”移动时, cur子只作改动,而不只是像我点击这一页。 下面是一些例子:

$(".page").on("mousedown", function (evt) {
    if(model.zoomMode){
        $( .page ).css( cursor , url("img/hand_closed.gif"),auto );
    }       
}).on("mouseup", function (evt) {
    if(model.zoomMode){
        $( .page ).css( cursor , url("img/hand_open.gif"),auto );
    }
});

Another approach relying more on CSS

当我使用班级也取得同样效果时,似乎就会出现这种情况。 比如,动物体温模式在page子之外增加了一个等级,然后是 j:

$(".page").on("mousedown", function (evt) {
    $( .page ).addClass( mouseDown );
}).on("mouseup", function (evt) {
    $( .page ).removeClass( mouseDown );
});

之后,在社会保障局:

.zoom .page:hover{
    cursor:url(../img/hand_open.gif),auto;
}

.zoom .page.mouseDown:hover{
    cursor:url(../img/hand_closed.gif),auto;
}

我正在利用18个神学院进行测试。 任何人都知道一种办法,可以启动CSS的治疗器,而不必移动。

问题回答

短期答复:无

长期回答: Nope, sorry.

()





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签