Jump to content
DevFuse Forums

[RESOLVED] Add ad block in header


darK

Recommended Posts

  • Management

Haven't tested this, but try opening your Admin CP > Look & Feel Tab > IP.Board Skin > Global Templates > globalTemplate

 

Find:

<div id='branding'>

 

Add Above:

<div style='float:right; margin-top:10px; margin-right:320px;'>img banner here</div>

 

Save Template Bit

Link to comment
Share on other sites

Edit was not available so I'm posting again.

 

<div style='float:right; margin-top:0.8%; margin-right:21.4%;'><a href='http://www.devfuse.com'><img src='http://www.eahelp.net/stf/468x68.jpg' /></a></div>

 

Btw, here is perfect fit for that place in % :)

Link to comment
Share on other sites

Ok final question, how to put this:

<div style='float:right; margin-top:0.8%; margin-right:21.4%;'></div>

 

in this:

document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
Edited by darK
Link to comment
Share on other sites

Solved:

 

<script language="JavaScript">

function random_imglink(){

var myimages=new Array()

//specify random images below. You can have as many as you wish

myimages[1]="http://eahelp.net/stf/468x68.jpg"

//specify corresponding links below

var imagelinks=new Array()

imagelinks[1]="http://www.devfuse.com"

var ry=Math.floor(Math.random()*myimages.length)

 

if (ry==0)

ry=1

document.write('<div style="float:right; margin-top:0.8%; margin-right:21.4%;"><a href="'+imagelinks[ry]+'"><img src="'+myimages[ry]+'" border="0"></a></div>');

}

random_imglink()

</script>

 

Here is working version of random ads image.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...