开发者

mimick google results buttons, can that be done via jquery?

when your signed into google, and you search for anything you get the result back. you then have these buttons where you can bump the result up/down, or even delete it.

when you delete a result, it disappears and then you get t开发者_运维问答his animated image of a cloud that disappears.

How do they inject that image before it disappears?

(BTW, I want to see that image, how can I find out the url to that image?)


Developer tools of any decent browser(Chrome, Firefox, Opera, Internet Explorer 8) are able to show you a detailed view of all HTTP requests.

http://www.google.com/images/swxa.png


Seems to me you could click the button, the entry would be replaced with a cloud-exploding gif, and then the result would be hidden. Maybe the id of that result would be associated with a "dont-show" list which itself is associated with your ipaddress/userid/session.

# Just an idea - untested
$(".result .deleteButton").click(function(){
  $(this)
    .parent()
    .html($(".cloud").clone())
    .fadeOut();
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜