Jump to content

Cum Fac Banner-Ul Sa Se Miste?


Roberto Luigi
Go to solution Solved by gadeas,

Recommended Posts

  • Moderators

Downloadeaza fisieru ipbforumskins.js din:

public_html > public > style_images > skinu care folosesti > js 

Si adauga intre:

jQuery(document).ready(function($){
    /* Mai multe coduri jQuery */
});

Urmatoru cod:

    var backgroundpos = 0;
    var offset = 1;
    function scrollbackground() {
        offset = (offset < 1) ? offset + (backgroundpos - 1) : offset - 1;
        $('#branding').css("background-position", + offset + "px 0");
        setTimeout(function() {
            scrollbackground();
            }, 100
        );
    }
    scrollbackground();

Backgroundu trebuie sa fie setat pe idu:

#branding
  • Upvote 1

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Link to comment
Share on other sites

Asta am eu in ipbforumskins.js :

jQuery.noConflict();

jQuery(document).ready(function($){

    $('a[href=#top], a[href=#ipboard_body]').click(function(){
        $('html, body').animate({scrollTop:0}, 400);
return false;
    });
    
    $(".forum_name").hover(function() {
        $(this).next(".forum_desc_pos").children(".forum_desc_con").stop()
        .animate({left: "0", opacity:1}, "fast")
        .css("display","block")
    }, function() {
        $(this).next(".forum_desc_pos").children(".forum_desc_con").stop()
        .animate({left: "10", opacity: 0}, "fast", function(){
            $(this).hide();
        })
    });
    
    $('#topicViewBasic').click(function(){
        $(this).addClass("active");
        $('#topicViewRegular').removeClass("active");
        $("#customize_topic").addClass("basicTopicView");
        $.cookie('ctv','basic',{ expires: 365, path: '/'});
        return false;
    });
    
    $('#topicViewRegular').click(function(){
        $(this).addClass("active");
        $('#topicViewBasic').removeClass("active");
        $("#customize_topic").removeClass("basicTopicView");
        $.cookie('ctv',null,{ expires: -1, path: '/'});
        return false;
    });
    
    if ( ($.cookie('ctv') != null))    {
        $("#customize_topic").addClass("basicTopicView");
        $("#topicViewBasic").addClass("active");
    }
    else{
        $("#topicViewRegular").addClass("active");
    }
});
Link to comment
Share on other sites

  • Moderators
  • Solution

Modifica cu:

jQuery.noConflict();

jQuery(document).ready(function($){

    $('a[href=#top], a[href=#ipboard_body]').click(function(){
        $('html, body').animate({scrollTop:0}, 400);
return false;
    });
    
    $(".forum_name").hover(function() {
        $(this).next(".forum_desc_pos").children(".forum_desc_con").stop()
        .animate({left: "0", opacity:1}, "fast")
        .css("display","block")
    }, function() {
        $(this).next(".forum_desc_pos").children(".forum_desc_con").stop()
        .animate({left: "10", opacity: 0}, "fast", function(){
            $(this).hide();
        })
    });
    
    $('#topicViewBasic').click(function(){
        $(this).addClass("active");
        $('#topicViewRegular').removeClass("active");
        $("#customize_topic").addClass("basicTopicView");
        $.cookie('ctv','basic',{ expires: 365, path: '/'});
        return false;
    });
    
    $('#topicViewRegular').click(function(){
        $(this).addClass("active");
        $('#topicViewBasic').removeClass("active");
        $("#customize_topic").removeClass("basicTopicView");
        $.cookie('ctv',null,{ expires: -1, path: '/'});
        return false;
    });
    
    if ( ($.cookie('ctv') != null))    {
        $("#customize_topic").addClass("basicTopicView");
        $("#topicViewBasic").addClass("active");
    }
    else{
        $("#topicViewRegular").addClass("active");
    }

    var backgroundpos = 0;
    var offset = 1;
    function scrollbackground() {
        offset = (offset < 1) ? offset + (backgroundpos - 1) : offset - 1;
        $('#branding').css("background-position", + offset + "px 0");
        setTimeout(function() {
            scrollbackground();
            }, 100
        );
    }
    scrollbackground();
});

 

Cum am zis, banneru trebuie sa fie in:

#branding {

Nu conteaza cum e numit, nu conteaza ce mai are prin cod. Dar sa fie acolo.

 

Ce spui tu din ACP si configuratie este la skinu Animate care are deja acel cod setat, doar modifici la o configuratie creata de ei din "No" in "Yes". Daca nu ai inceput sa modifici de la Animate, nu ai acea functie in skin.

  • Upvote 2

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Link to comment
Share on other sites

  • Moderators

La:

#branding {

Trebuie sa ai setat:

background: /* Cod css */;

Adica imaginea sa fie acolo setata.

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Link to comment
Share on other sites

  • Moderators

In ipb_styles.css cauti:

#branding {

Si intre { } adaugi:

background: #000 url("Link spre banner") repeat-x top;

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 months later...
  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.