开发者

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

开发者 https://www.devze.com 2022-12-14 19:33 出处:网络
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 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

精彩评论

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