MyBB Cloud Advertisements

Ashley S

Paragon
Joined
Jun 7, 2010
Messages
2,074
Reaction score
34
FP$
501
Hello guys.
Having a problem with Cloud Advertisements.

Here is the code

Code:
<hr class="divider" />
        <div class="panel bg1">
           <div class="inner"><span class="corners-top"><span></span></span>
           <div style="text-align: center;">
<script type="text/javascript">var cloud = new Array();
 
cloud[0]=["#","Cloud ads"];
cloud[1]=["#","Cloud ads"];
cloud[2]=["#","Cloud ads"];
cloud[3]=["#","Cloud ads"];
cloud[4]=["#","Cloud ads"];
cloud[5]=["#","Cloud ads"];
cloud[6]=["#","Cloud ads"];
cloud[7]=["#","Cloud ads"];
cloud[8]=["#","Cloud ads"];
cloud[9]=["#","Cloud ads"];
cloud[10]=["#","Cloud ads"];
cloud[11]=["#","Cloud ads"];
cloud[12]=["#","Cloud ads"];
cloud[13]=["#","Cloud ads"];
cloud[14]=["#","Cloud ads"];
 
for( i=0; i<cloud.length; i++){size = 8+(Math.random()*9);if( size < 8 ){color = '#176093'}else if( size > 8 && size < 9 ){color = '#6CB2E4'}else if( size > 10 && size < 11 ){ color = '#6CB2E4'}else if( size > 12 && size < 16 ){ color = '#176093'}else{color = '#176093';}document.write("<span style='font-size:"+size+"px;margin: 18px;'>");document.write("<a href='"+cloud[i][0]+"' style='color:"+color+";text-decoration: none;' target='_blank'>"+cloud[i][1]+"</a>"); document.write("</span> ");}</script>
 </div>
        </div>
        <span class="corners-bottom"><span></span></span></div>

Here's the preview of it being a bug.
Preview: - http://i.imgur.com/nDMND.png

Can anyone help out please 😉
Thanks!
 
death180 said:
It looks like it's working fine to me.

There's no border, table around it to make it look better and neater.
Anyway I could do that 😉?

Thanks.
 
Add this to your css
Code:
.panel bg1 {
border: 1px solid #000
}
That will give you a 1px black solid border around it.
 
Back
Top Bottom