A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Anyone knows a HTML code for banner rotation?

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    1

    Post Anyone knows a HTML code for banner rotation?

    I know there is some sort of code to rotate as many banners as you'd like but I haven't been lucky enough to find one as I am new at HTML.

    ANy suggestions?

  2. #2
    Member
    Join Date
    Jun 2001
    Location
    Swingin'!
    Posts
    57
    Your banner file names should be in an array, and then use Javascript to load them dynamically. The easy way is to do them in order, calling them randomly could be more confusing when you write the code but it's doable.
    An Ajax call summons the right file, and just load it into the <div> where the banners appear. jQuery makes this simple
    If you're trying to do some kind of swooping effect, jquery makes it stupid simple as well.
    Code:
    if(dreams&&hard_work&&sacrifice) {
    prosperity++;
    wisdom++;
    $++;
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center