$('#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?944137983", function(data){ $('#today_events').css('display','none').html(data).fadeIn(); }); $.get("data/shakhes.php?444239181", function(data){ $('#shakhes').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/today_events2.php?560175428", function(data){ $('#today_events2').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/today_photo.php?2036889358", function(data){ $('#today_photo').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/tv.php?864144706", function(data){ $('#tv').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/prices.php?159074651", function(data){ $('#prices').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/news3.php?1868193317", function(data){ $('#news3').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/news2.php?169772632", function(data){ $('#news2').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/news1.php?1569404845", function(data){ $('#news1').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/tahlilha.php?1998550112", function(data){ $('#tahlilha').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/porsesh.php?601773329", function(data){ $('#porsesh').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/goftegoo.php?98317077", function(data){ $('#goftegoo').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/latest_updates.php?435221302", function(data){ $('#latest_updates').css('display','none').html(data).fadeIn(); }); $.get("ajax-data/today_events3.php?id=&224910659", function(data){ $('#today_events3').css('display','none').html(data).fadeIn(); }); }); function reloadByAjax() { $.get("ajax-data/today_events.php?1127351720", function(data){ $('#today_events').html(data); }); $.get("data/shakhes.php?814261895", function(data){ $('#shakhes').html(data); }); $.get("ajax-data/today_events2.php?id=&1830485055", function(data){ $('#today_events2').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') + '
'); }); });