
Doresc sa fac si eu la forumul meu in spatele logo-ului , background miscator uite ca aici : LINK .
Va rog mult!
Multumesc!
Cod: Selectaţi tot
#branding{
background:#000 url("images/banner.png") repeat-x top;
height:130px
}
#banner_texture{
background:url("images/banner_texture.png") repeat;height:130px;
-moz-box-shadow:inset rgba(255,255,255,0.1) 0px -1px 0px;
-webkit-box-shadow:inset rgba(255,255,255,0.1) 0px -1px 0px;
box-shadow:inset rgba(255,255,255,0.1) 0px -1px 0px
}
#banner_content{
height:93px
}
#logo{
float:left
}
Cod: Selectaţi tot
<div id="branding" style="background-position: absolute 0px; "><div id="banner_texture"></div></div>
Cod: Selectaţi tot
// Created by ipbforumskins.com
jQuery.noConflict();
(function($) {
$.extend($.fx.step,{
backgroundPosition: function(fx) {
if (fx.state === 0 && typeof fx.end == 'string') {
var start = $.curCSS(fx.elem,'backgroundPosition');
start = toArray(start);
fx.start = [start[0],start[2]];
var end = toArray(fx.end);
fx.end = [end[0],end[2]];
fx.unit = [end[1],end[3]];
}
var nowPosX = [];
nowPosX[0] = ((fx.end[0] - fx.start[0]) * fx.pos) + fx.start[0] + fx.unit[0];
nowPosX[1] = ((fx.end[1] - fx.start[1]) * fx.pos) + fx.start[1] + fx.unit[1];
fx.elem.style.backgroundPosition = nowPosX[0]+' '+nowPosX[1];
function toArray(strg){
strg = strg.replace(/left|top/g,'0px');
strg = strg.replace(/right|bottom/g,'100%');
strg = strg.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");
var res = strg.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);
return [parseFloat(res[1],10),res[2],parseFloat(res[3],10),res[4]];
}
}
});
})(jQuery);
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();
}, 50
);
}
scrollbackground();
});
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator