how to add side by side banner in top forum position ?

ShieldX

Well-known member
Registered
Joined
Mar 27, 2022
Messages
449
Points
53

Reputation:

any code for this ? and what should be the perfect size so that banner get fit well.. ?
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
378
Points
53

Reputation:

any code for this ? and what should be the perfect size so that banner get fit well.. ?
ShieldXhave you searched the forums for this i seen this in the tips and guide
 

ShieldX

Well-known member
Registered
Joined
Mar 27, 2022
Messages
449
Points
53

Reputation:

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
378
Points
53

Reputation:

i looked around this is my bad i i thought it was what you where looking for but i do have the codes for that let me get it off my gameing pc
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
378
Points
53

Reputation:

this should be what you are looking for


Find the template header. Paste the following code at the end:



Code:
<div id="divAdRight" style="DISPLAY: none; POSITION: absolute; TOP: 0px">
<a href="http://url.com/"><img src="Link ảnh" width="125" height="400" /></a>
</div>
<div id="divAdLeft" style="DISPLAY: none; POSITION: absolute; TOP: 0px">
<a href="http://url.com/"><img src="Link ảnh" width="125" height="400" /></a>
</div>
<script>
    function FloatTopDiv()
    {
        startLX = ((document.body.clientWidth -MainContentW)/2)-LeftBannerW-LeftAdjust , startLY = TopAdjust+80;
        startRX = ((document.body.clientWidth -MainContentW)/2)+MainContentW+RightAdjust , startRY = TopAdjust+80;
        var d = document;
        function ml(id)
        {
            var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
            el.sP=function(x,y){this.style.left=x + 'px';this.style.top=y + 'px';};
            el.x = startRX;
            el.y = startRY;
            return el;
        }
        function m2(id)
        {
            var e2=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
            e2.sP=function(x,y){this.style.left=x + 'px';this.style.top=y + 'px';};
            e2.x = startLX;
            e2.y = startLY;
            return e2;
        }
        window.stayTopLeft=function()
        {
            if (document.documentElement && document.documentElement.scrollTop)
                var pY =  document.documentElement.scrollTop;
            else if (document.body)
                var pY =  document.body.scrollTop;
            if (document.body.scrollTop > 30){startLY = 3;startRY = 3;} else {startLY = TopAdjust;startRY = TopAdjust;};
            ftlObj.y += (pY+startRY-ftlObj.y)/16;
            ftlObj.sP(ftlObj.x, ftlObj.y);
            ftlObj2.y += (pY+startLY-ftlObj2.y)/16;
            ftlObj2.sP(ftlObj2.x, ftlObj2.y);
            setTimeout("stayTopLeft()", 1);
        }
        ftlObj = ml("divAdRight");
        //stayTopLeft();
        ftlObj2 = m2("divAdLeft");
        stayTopLeft();
    }
    function ShowAdDiv()
    {
        var objAdDivRight = document.getElementById("divAdRight");
        var objAdDivLeft = document.getElementById("divAdLeft");
        if (document.body.clientWidth < 1000)
        {
            objAdDivRight.style.display = "none";
            objAdDivLeft.style.display = "none";
        }
        else
        {
            objAdDivRight.style.display = "block";
            objAdDivLeft.style.display = "block";
            FloatTopDiv();
        }
    }
</script>
<script>
document.write("<script type='text/javascript' language='javascript'>MainContentW = 1000;LeftBannerW = 125;RightBannerW = 125;LeftAdjust = 5;RightAdjust = 5;TopAdjust = 155;ShowAdDiv();window.onresize=ShowAdDiv;;<\/script>");
</script>
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
378
Points
53

Reputation:

any code for this ? and what should be the perfect size so that banner get fit well.. ?
ShieldXthats the codes you just have to mess around with it they should show on both sides on the front end

it should look like this

Untitled.jpg
 

ShieldX

Well-known member
Registered
Joined
Mar 27, 2022
Messages
449
Points
53

Reputation:

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
378
Points
53

Reputation:

oh i dont use that i thought thats what you was asking for thats a xenforo tutorial my bad
 
Top