Вход Регистрация
Файл: upload/static/jscript/ie6.js
Строк: 66
<?php
$Behavior
.buttonHover = function()
{    
    $(
'.button').hover(function()
    {
        $(
this).addClass('button_hover');
    },
    function ()
    {
        $(
this).removeClass('button_hover');
    });    
}

var 
initPage = function() 
{
    
initNav();
}
var 
initNav = function() 
{
    var 
menu_m = document.getElementById('main_nav');
    if (
menu_m) {
        var 
lis = menu_m.getElementsByTagName('li');
        for (var 
i = 0; i < lis.length; i++){
            
lis[i].onmouseover = function() {
                
this.className += ' hover';
            };
            
lis[i].onmouseout = function() {
                
this.className = this.className.replace('hover','');
            };
        }
    }
    
    var 
menu_m = document.getElementById('right_nav');
    if (
menu_m) {
        var 
lis = menu_m.getElementsByTagName('li');
        for (var 
i = 0; i < lis.length; i++){
            
lis[i].onmouseover = function() {
                
this.className += ' hover';
            };
            
lis[i].onmouseout = function() {
                
this.className = this.className.replace('hover','');
            };
        }
    }    
}
if (
window.addEventListener)
{
    
window.addEventListener("load", initPage, false);
} 
else if (
window.attachEvent)
{
    
window.attachEvent("onload", initPage);
}

$(function()
{
    $(
'#header ul li').bgiframe();
    if ($(
'#footer_bar_favorite').length > 0)
    {
        $(
'#footer_bar_favorite').bgiframe();
    }
    if ($(
'#footer_menu').length > 0)
    {
        $(
'#footer_menu').bgiframe();
    }
});
?>
Онлайн: 1
Реклама