Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Giveaway Page</title>
- <script src="http://code.jquery.com/jquery-latest.js"></script>
- <script>
- (function($)
- {
- $(document).ready(function()
- {
- $.ajaxSetup(
- {
- cache: false,
- beforeSend: function() {
- $('#content').hide();
- $('#loading').show();
- },
- complete: function() {
- $('#loading').hide();
- $('#content').show();
- },
- success: function() {
- $('#loading').hide();
- $('#content').show();
- }
- });
- var $container = $("#content");
- $container.load("giveaway.html");
- var refreshId = setInterval(function()
- {
- $container.load('giveaway.html');
- }, 29000);
- });
- })(jQuery);
- </script>
- <script>
- (function($)
- {
- $(document).ready(function()
- {
- $.ajaxSetup(
- {
- cache: false,
- beforeSend: function() {
- $('#content').hide();
- $('#loading').show();
- },
- complete: function() {
- $('#loading').hide();
- $('#content').show();
- },
- success: function() {
- $('#loading').hide();
- $('#content').show();
- }
- });
- var $container = $("#content2");
- $container.load("giveaway.html");
- var refreshId = setInterval(function()
- {
- $container.load('giveaway.html');
- }, 5000);
- });
- })(jQuery);
- </script>
- </head>
- <body>
- <?php
- $filename = 'giveaway.html';
- if (file_exists($filename)) {
- <div id="wrapper">
- <div id="content"></div>
- </div>
- }
- else {
- <div id="wrapper">
- <div id="content2"></div>
- </div>
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment