1. deadspacex27.07.2024 в 21:15от
  2. Patronchik27.07.2024 в 20:31от
Загрузка...

Нужна помощь с кодом

Тема в разделе "Web-программирование", создана пользователем Rasl, 23.12.2012.

  1. Rasl

    Rasl

    Статус:
    Оффлайн
    Регистрация:
    08.09.12
    Сообщения:
    279
    Репутация:
    106 +/-
    Всем привет.
    Я сделал небольшой сайт на ucoze.
    Но что то пошло не так, какой то код сбился и картинка фона стоит не так.
    Помогите, кто поможет.
    Сайт: http://dota2-news.ru/
    Картинка в самом низу, если видите она вправо ушла

    Код нижней части сайта:
    Код:
    <!-- <Нижняя часть сайта> -->
    <!-- <footer> -->
    </div>
    <div id="copyright" class="clearfix">
    <p>
    <!-- <Содержиомое> -->
    $POWERED_BY$
    <!-- </Содержиомое> -->
    </p>
     </div>
     </div>
     <div><script type="text/javascript" src="/images/jquery.easing.1.3.js"></script>
     <script type="text/javascript" src="/images/superfish.js"></script>
     <script type="text/javascript">
     //<![CDATA[
    
     var $featured_area = jQuery('#featured-area'),
     $featured_content = jQuery('#feat-content');
    
     et_top_menu();
     et_search_bar()
     et_footer_improvements('#footer .widget');
     
     if ($featured_content.length) {
     var widthButtonsBg,
     controlTabString = 'a.control_tab',
     $controlTab = jQuery(controlTabString),
     $slider_control = jQuery('div#controls'),
     $slider_control_tab = jQuery('div#controls '+controlTabString),
     $slider_arrows = jQuery('#featured-area a#prevlink, #featured-area a#nextlink');
    
     <!-- buttons background --> 
     if ($controlTab.length === 2) widthButtonsBg = 434;
     if ($controlTab.length === 1) widthButtonsBg = 220; 
     if (widthButtonsBg) jQuery('#control-bg').css('width',widthButtonsBg+'px');
     
     function isIE6() { return ((window.XMLHttpRequest == undefined) && (ActiveXObject != undefined)) } 
     
     if (($featured_content.hasClass("custom_animation")) && (!isIE6()))
     et_custom_featured();
     else 
     et_cycle_integration(); 
     };
     
     
     <!---- Top Menu Improvements ---->
     function et_top_menu(){
     jQuery('ul.superfish').superfish({ 
     delay: 200, // one second delay on mouseout 
     animation: {opacity:'show',height:'show'}, // fade-in and slide-down animation 
     speed: 'fast', // faster animation speed 
     autoArrows: true, // disable generation of arrow mark-up 
     dropShadows: false // disable drop shadows 
     });
     
     jQuery('ul.nav > li > a').hover(function(){
     jQuery(this).stop().animate({paddingTop: "14px"},300,function(){
     jQuery(this).addClass("top_arrow");
     })
     },function(){
     jQuery(this).stop().removeClass("top_arrow").animate({paddingTop: "25px"},300);
     });
     
     
     var $current_page_cat = jQuery('ul.nav > li.current_page_item, ul.nav > li.current-cat');
     
     if ($current_page_cat.length) {
     //shows the current page,category arrow
     var currentLeft = $current_page_cat.position().left,
     currentWidth = $current_page_cat.width();
     
     if ($featured_area.length) currentLeft = currentLeft + 25;
     
     var currentSpan = '<span class="current_arrow" style="left: ' + currentLeft + 'px; width: '+ currentWidth +'px;"></span>';
     
     if ($featured_area.length) $featured_area.append(currentSpan)
     else jQuery("#content-top").append(currentSpan);
     };
     }; 
     
     
     <!---- Top Menu Improvements ---->
     function et_footer_improvements($selector){
     var $footer_widget = jQuery($selector);
     
     if (!($footer_widget.length == 0)) {
     $footer_widget.each(function (index, domEle) {
     if ((index+1)%3 == 0) jQuery(domEle).addClass("last").after("<div class='clear'></div>");
     });
     };
     };
     
     
     <!---- Search Bar Improvements ---->
     function et_search_bar(){
     var $searchform = jQuery('#header div#search-form'),
     $searchinput = $searchform.find("input#searchinput"),
     searchvalue = $searchinput.val();
     
     $searchinput.focus(function(){
     if (jQuery(this).val() === searchvalue) jQuery(this).val("");
     }).blur(function(){
     if (jQuery(this).val() === "") jQuery(this).val(searchvalue);
     });
     };
     
     <!---- Quote end Code style none ---->
     $('.bbCodeBlock').find('.codeMessage').removeAttr('style').css({overflow:'auto', maxHeight:'300px'}).end()
     .find('.bbCodeName').removeAttr('style').html('<b>Листинг кода:</b>').end();
     $('.bbQuoteBlock').find('.quoteMessage').removeAttr('style').end()
     .find('.bbQuoteName').removeAttr('style').prepend('<b>Цитата</b>').append(' :').find('.qName').prev('b').remove();
    
     //]]> 
     </script>
     <script type="text/javascript" src="/js/bbcodes.js"></script>
     <script type="text/javascript" src="/js/checkform.js"></script>
     </div>
    </div>
    <!-- </footer> -->
    <!-- </Нижняя часть сайта> -->
     
  2. NiceSkiLLs

    NiceSkiLLs

    Статус:
    Оффлайн
    Регистрация:
    07.08.12
    Сообщения:
    565
    Репутация:
    209 +/-
  3. MadHamster

    MadHamster

    Статус:
    Оффлайн
    Регистрация:
    13.12.12
    Сообщения:
    38
    Репутация:
    11 +/-
    Код:
    li.comment #respond textarea { width: 99% !important; }
    li.comment #respond input[type=text] { width: 50% !important; }
    .depth-1 li.comment #respond { padding-left:10px; }
    
    /*-----[Подвал]-----*/
    div#footer, div#footer-top {
    	width: 1001px;
    	margin: 0px 0px 0px -25px;
    }