Announcement

Collapse
No announcement yet.

rotating banner

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ManagerJosh
    replied
    Instead of using the older phpAds, try using phpadsnew instead

    Leave a comment:


  • Jake Bunce
    replied
    That code isn't working? I would have to sit down and mess with it for a while. If you need help troubleshooting custom code then I recommend you post on www.vbulletin.org.

    I know my solution works, so you might try that instead.

    Leave a comment:


  • BIGMONAY2K
    replied

    Leave a comment:


  • BIGMONAY2K
    replied
    jake;

    what do you think about this code dude??

    Code:
    <div align="center">
    <SCRIPT LANGUAGE="JavaScript">
    Banner_imganz=10;
    var Banner_sctr=0;
    var Banner_halt=0;
    var Banner_rand=1;
    var Banner_timeout=40000;
    
    var Banner_isn=new Array();
    if (document.images) {
     for (i=0;i<Banner_imganz;i++) Banner_isn[i]=new Image();
    Banner_isn[0].src="http://.gif";
    Banner_isn[1].src="http://gif";
    Banner_isn[2].src="http://.gif";
    Banner_isn[3].src="http:/.gif";
    Banner_isn[4].src="http:/.gif";
    Banner_isn[5].src="http://.gif";
    Banner_isn[6].src="http://.gif";
    Banner_isn[7].src="http://.gif";
    Banner_isn[8].src="http://.gif";
    Banner_isn[9].src="http://.gif";
    } else {
    Banner_isn[0]="http://www.bannersite2.com/imagedir/image.ext";
    Banner_isn[1]="http://www.bannersite2.com/imagedir/image.ext";
    Banner_isn[2]="http://www.bannersite3.com/imagedir/image.ext";
    Banner_isn[3]="http://www.bannersite4.com/imagedir/image.ext";
    Banner_isn[4]="http://www.bannersite5.com/imagedir/image.ext";
    Banner_isn[5]="http://www.bannersite6.com/imagedir/image.ext";
    Banner_isn[6]="http://www.bannersite7.com/imagedir/image.ext";
    Banner_isn[7]="http://www.bannersite8.com/imagedir/image.ext";
    Banner_isn[8]="http://www.bannersite9.com/imagedir/image.ext";
    Banner_isn[9]="http://www.bannersite10.com/imagedir/image.ext";
    }
    var Banner_durl=new Array();
    Banner_durl[0]="http://www.";
    Banner_durl[1]="http://www.";
    Banner_durl[2]="http://www.";
    Banner_durl[3]="http://www.";
    Banner_durl[4]="http://www.";
    Banner_durl[5]="http://www.";
    Banner_durl[6]="http://www.";
    Banner_durl[7]="http://www.";
    Banner_durl[8]="http://www.";
    Banner_durl[9]="http://www.";
    function Banner_rotate(){
     if (Banner_halt!=1){
      if (Banner_rand==0) {Banner_sctr++;}
       else {Banner_sctr=Math.floor(Math.random()*Banner_imganz);}
      if (Banner_sctr>Banner_imganz-1) Banner_sctr=0;
      if (document.images) {
       document.Banner.src=Banner_isn[Banner_sctr].src;
      } else {
       document.Banner.src=Banner_isn[Banner_sctr];
      }
      setTimeout("Banner_rotate()",Banner_timeout);
     }
    }
    function Banner_link(){
     Banner_halt=1;
     if (Banner_durl[Banner_sctr].length!=0) location.href=Banner_durl[Banner_sctr];
    }
    function Banner_status(){ parent.window.status=Banner_durl[Banner_sctr];}
    </SCRIPT>
    
    <A HREF="#" onClick="Banner_link();return false" onMouseover="Banner_status();return true;" onMouseout="parent.window.status='';return true;">
    
    <SCRIPT LANGUAGE="JavaScript">
     Banner_sctr=-1; if (Banner_rand==0) {Banner_sctr++;}
      else {Banner_sctr=Math.floor(Math.random()*Banner_imganz);}
     if (document.images) {
      document.write('<img src="'+Banner_isn[Banner_sctr].src+'" alt="Banner" width=468 height=60 border=0 name=Banner></A>');
     } else {
      document.write('<img src="'+Banner_isn[Banner_sctr]+'" alt="Banner" width=468 height=60 border=0 name=Banner></A>');
     }
     setTimeout("Banner_rotate()",Banner_timeout);
    </SCRIPT>
    </div>

    Leave a comment:


  • Jake Bunce
    replied
    Try this.

    The only difference in 3.5.x is that you need to enter the PHP code into a plugin for the parse_templates hook location. The phpinclude_start template no longer exists.

    Leave a comment:


  • BIGMONAY2K
    started a topic rotating banner

    rotating banner

    rotating banner code?? I just don't seen to get that phpAds..I am looking for something that I just edit themplate.

    thanks

Related Topics

Collapse

Working...
X