mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
foggyLayer added
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12088 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
48ed5deddb
commit
c60b34725a
1 changed files with 29 additions and 0 deletions
29
common/js/foggyLayer.js
Normal file
29
common/js/foggyLayer.js
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
jQuery(function($){
|
||||||
|
var $foggyLayer = $("<div>");
|
||||||
|
$foggyLayer.css({
|
||||||
|
position: 'absolute',
|
||||||
|
top:0,
|
||||||
|
left:0,
|
||||||
|
backgroundColor:'#000',
|
||||||
|
opacity: 0,
|
||||||
|
display:'none',
|
||||||
|
zIndex:100
|
||||||
|
});
|
||||||
|
$($.find("body")).append($foggyLayer);
|
||||||
|
|
||||||
|
$(window).resize(function(){
|
||||||
|
$foggyLayer.css({
|
||||||
|
width: 0,
|
||||||
|
height: 0
|
||||||
|
});
|
||||||
|
|
||||||
|
setTimeout(function(){
|
||||||
|
$foggyLayer.css({
|
||||||
|
width: $(document).width(),
|
||||||
|
height: $(document).height()
|
||||||
|
});
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
|
||||||
|
$foggyLayer.show();
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue