Skip to content

Instantly share code, notes, and snippets.

@darkfe
Created June 27, 2013 05:25
Show Gist options
  • Save darkfe/5874145 to your computer and use it in GitHub Desktop.
Save darkfe/5874145 to your computer and use it in GitHub Desktop.
xingming shiye
<style>
#sda_banner{
width:960px;
height:60px;
overflow:hidden;
margin:0 auto;
position:relative;
}
#sda_banner_closebtn{
width:19px;
height:21px;
overflow:hidden;
position:absolute;
right:3px;
top:3px;
z-index:1000;
background:url(http://pic.snyu.com/sdk/image/js/float_close.png);
}
#sda_banner_tiny{
width:60px;
height:60px;
overflow:hidden;
position:absolute;
right:0;
top:0;
z-index:1001;
}
</style>
<body>
<div id="sda_banner">
<script src="http://pic.snyu.com/sdk/js/a.js" charset="utf-8"></script>
<script>_SDA_.Alliance.init(201774);</script>
<div id="sda_banner_closebtn"></div>
</div>
<script>
seajs.use('http://code.jquery.com/jquery-1.9.1.min.js',function(){
$(document).on('click','#sda_banner_closebtn',function(){
$('#sda_banner').animate({height:0},300,function(){
$('<div id="sda_banner_tiny"></div>').appendTo(document.body);
_SDA_.Alliance.init(201775,{
target : 'sda_banner_tiny'
});
});
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment