$('#item-analysis,#item-home,#item-reports,#item-news').hover(function(){ $(this).find('a').addClass('hover'); $(this).find('.submenu').fadeIn(200); },function(){ $(this).find('a').removeClass('hover'); $(this).find('.submenu').fadeOut(200); }).find('ul li:last-child').css('border-bottom','0').end().find('ul li:first-child').css('border-top','0'); $(document).ready(function(){ $.get("ajax-data/today_events.php?1603779961", function(data){ $('#today_events').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/today_gold.php?905887439", function(data){ $('#today_gold').css('display','none').html(data).fadeIn(); }); }); function reloadByAjax() { $.get("ajax-data/today_events.php?1399178822", function(data){ $('#today_events').html(data); }); $.get("ajax-data/today_gold.php?375739478", function(data){ $('#today_gold').html(data); }); $.get("ajax-data/today_events2.php?id=&274077856", function(data){ $('#today_events2').html(data); }); $.get("ajax-data/today_gold2.php?id=&159697869", function(data){ $('#today_gold2').html(data); }); $.get("ajax-data/today_events3.php?id=&1647767555", function(data){ $('#today_events3').html(data); }); } setInterval("reloadByAjax()", 1000 * 60 * 10); // reload by Ajax every 1 minutes function popup(objSender) { newwindow=window.open(objSender.getAttribute('href'),'','width=850,height=600,resizable=yes, screenX=100,scrollbars=1,screenY=200,location=no'); if (window.focus) {newwindow.focus()} return false; } function popup2(objSender) { newwindow=window.open(objSender.getAttribute('href'),'','width=420,height=440,resizable=yes, screenX=100,scrollbars=1,screenY=200,location=no'); if (window.focus) {newwindow.focus()} return false; } (function($) { if ($.browser.mozilla) { $.fn.disableTextSelect = function() { return this.each(function() { $(this).css({ 'MozUserSelect' : 'none' }); }); }; } else if ($.browser.msie) { $.fn.disableTextSelect = function() { return this.each(function() { $(this).bind('selectstart', function() { return false; }); }); }; } else { $.fn.disableTextSelect = function() { return this.each(function() { $(this).mousedown(function() { return false; }); }); }; } })(jQuery); $(function() { $('.AllWeb').disableTextSelect(); }); if(jQuery) (function(){ $.extend($.fn, { rightClick: function(handler) { $(this).each( function() { $(this).mousedown( function(e) { var evt = e; $(this).mouseup( function() { $(this).unbind('mouseup'); if( evt.button == 2 ) { handler.call( $(this), evt ); return false; } else { return true; } }); }); $(this)[0].oncontextmenu = function() { return false; } }); return $(this); }, rightMouseDown: function(handler) { $(this).each( function() { $(this).mousedown( function(e) { if( e.button == 2 ) { handler.call( $(this), e ); return false; } else { return true; } }); $(this)[0].oncontextmenu = function() { return false; } }); return $(this); }, rightMouseUp: function(handler) { $(this).each( function() { $(this).mouseup( function(e) { if( e.button == 2 ) { handler.call( $(this), e ); return false; } else { return true; } }); $(this)[0].oncontextmenu = function() { return false; } }); return $(this); }, noContext: function() { $(this).each( function() { $(this)[0].oncontextmenu = function() { return false; } }); return $(this); } }); })(jQuery); $(function() { $("#AllWeb").rightClick( function(e) { $("#log").prepend('Click on ' + $(this).attr('id') + '
'); }); });