Sina Weibo in the cancellation of attention pop-up confirmation box is friendly, the project needs to implement one, wrote a similar,
The idea is to write a hidden div, click the Cancel button, and then let the div slide out, click OK or cancel and then slide in
JS Code
function Confirmcancel (ID) {
$ ("#confirmwrapper"). Slidedown ("fast");
$ ("#confirm"). Slidedown ("fast");
function cancelconfirm () {
$ ("#confirmwrapper"). Slideup ("fast");
$ ("#confirm"). Slideup ("fast");
HTM code
<div class= "Confirm" id= "confirm" style= "Display:none"; "></div>
<div class= "Confirmwrapper" id= "Confirmwrapper" style= "Display:none"; "> <div class=" Top "> <p style=" FONT-SIZE:13PX; > OK no longer collection this restaurant?</p></div> <a class= "OK" href= "javascript:void (0);" onclick= "Javascript:cancel (7420);" ></a><a class= "No" href= "javascript:void (0);" onclick= "javascript:cancelconfirm ();" ></a> </div>