Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(function(){
- $("ul a").click(function(){
- pagina = $(this).attr('href')
- $("#meio").load(pagina);
- return false;
- })
- })
- </script>
- <div id="meio" style="width:768px; margin:0 auto; overflow:scroll;height:100%;"></div>
- <script type="text/javascript">
- var pagina = "";
- <!-- aqui vc muda o tempo de espera -->
- var espera = 10;
- function mostra(){
- if(tempo < 1){
- if(pagina != "publicidade"){
- pagina = "publicidade";
- $("#meio").load("publicidade.php");
- }
- }
- else{
- tempo --;
- }
- }
- var tempo = espera;
- $(document).scroll(function(){
- tempo = espera;
- });
- $(document).mousemove(function(){
- tempo = espera;
- });
- $(document).click(function(){
- tempo = espera;
- });
- $(document).mousedown(function(){
- tempo = espera;
- });
- $(document).ready(function(){
- setInterval(mostra, 1000);
- });
- </script>
- <script type="text/javascript">
- $(document).ready(function(){
- $("#slide").click(function(){
- $("#meio").load("menu.php");
- pagina = "";
- tempo = espera;
- });
- });
- </script>
- <script type="text/javascript">
- $(function(){
- $('#slides').slides({
- preload: false,
- preloadImage: 'img/loading.gif',
- play: 10000,
- hoverPause: false,
- animationStart: function(current){
- $('.caption').animate({
- bottom:-35
- },100);
- if (window.console && console.log) {
- // example return of current slide number
- console.log('animationStart on slide: ', current);
- };
- },
- animationComplete: function(current){
- $('.caption').animate({
- bottom:0
- },200);
- if (window.console && console.log) {
- // example return of current slide number
- console.log('animationComplete on slide: ', current);
- };
- },
- slidesLoaded: function() {
- $('.caption').animate({
- bottom:0
- },200);
- }
- });
- });
- </script>
- <script>
- $(document).on('click', function(){
- $("#meio").load('menu.php');
- })
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement