HTML page We just put something in it.
| The code is as follows |
Copy Code |
<div class= "Toolbarframe" style= "Display:none;" ><a href= "http://www.111cn.net" target= "_blank" ></a><a class = "Bigad_close" > Close </a></div> |
jquery Code
| The code is as follows |
Copy Code |
<script src= "/js/v2/jquery-1.7.2.min.js" language= "JavaScript" type= "Text/javascript" ></script> <script> $ (function () {
SetTimeout (' $ (' Toolbarframe '). Show ("Slow") ', 3000;
SetTimeout (' $ (' toolbarframe '). Hide ("slow") ', 13000);
$ (". Bigad_close"). Click (function () { $ (". Toolbarframe"). Hide ("slow"); }) }); </script> |
Explain the above
| The code is as follows |
Copy Code |
SetTimeout (' $ (' Toolbarframe '). Show ("Slow") ', 3000; After three seconds div slowly from small to big Show out SetTimeout (' $ (' toolbarframe '). Hide ("slow") ', 13000); 10 seconds to automatically hide the div from the big to the small. $ (". Bigad_close"). Click (function () { $ (". Toolbarframe"). Hide ("slow"); }) |
This is the user to close, click on the shutdown can be achieved off this layer.