Jump to content

Cerere Script Afisare Bannere Prin Rotatie Pentru Ipb?


Go to solution Solved by Courage,

Recommended Posts

Posted
Stie cineva un script sa pun mai multe bannere dupa gametracker si sa se schimbe intre ele.
As vrea sa pun banner dasta 
 
<iframe src="http://cache.www.gametracker.com/components/html0/?host=IP SERVER&bgColor=333333&fontColor=CCCCCC&titleBgColor=222222&titleColor=FF9900&borderColor=555555&linkColor=FFCC00&borderLinkColor=222222&showMap=1&currentPlayersHeight=100&showCurrPlayers=1&topPlayersHeight=100&showTopPlayers=1&showBlogs=0&width=240" frameborder="0" scrolling="no" width="240" height="536"></iframe>
Am cautat pe net si nu am gasit,am gasit doar pentru bannere simple + link dar nu pentru codu de mai sus..

Nu ma prea pricep la ipb si incerc cu ajutorul vostru sa invat.

Respect http://pctroubleshooting.ro/

Posted

Am gasit, poftiti scriptul si voua: ;)

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
          <script>
$('html').addClass('js');
$(function() {
var timer = setInterval( showDiv, 5000);
var counter = 0;
function showDiv() {
if (counter ==0) { counter++; return; }
$('div','#container')
      .stop()
      .hide()
      .filter( function() { return this.id.match('div' + counter); })   
      .show('fast');
counter == 3? counter = 0 : counter++; 
}
});
          </script>
<style type="text/css" media="screen">
                   .display { width:auto; height:auto; border: 2px solid #000; }
                   .js .display { display:none; }
          </style>
<div id='container'>
                    <div id='div1' class='display'>1</div>
                    <div id='div2' class='display'>2</div>
                    <div id='div3' class='display'>3</div>

</div>

Sper ca va descurcati sa il adaugati.

Nu ma prea pricep la ipb si incerc cu ajutorul vostru sa invat.

Respect http://pctroubleshooting.ro/

  • Moderators
  • Solution
Posted

Putin PHP si te-ai scos.

<php>
$numar = rand(1, x); // x = numarul maxim de bannere

if ($numar == 1)
{
	$mesaj = 'bla bla bla courage a fost aici, cod 1';
}

else if ($numar == 2)
{
	$mesaj = 'bla bla bla courage a fost aici, cod 2';
}

//---------------------------------------//

else if ($numar == x)
{
	$mesaj = 'bla bla bla courage a fost aici, cod x';
}
</php>

Si afisezi unde vrei in template cu

{$mesaj}
  • Upvote 2

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • 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.