If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Member Deek Fracott's Avatar
    Join Date
    Sep 2012
    Clarksville, TN
    Member #
    doing an inhouse project... employer requests "mock" banner advertisements. I am looking for a basic JS type widget I can manipulate like an object. Need the JS to randomly select an img/swf from a directory folder to load up as a banner in a predef table (maybe something like 200x800). Hotscripts have some good ones, but I wanted an opinion from this webcommunity because yall are just so good at knowing whats up. Thanks!


  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Cottage Grove, Minnesota
    Member #
    761 times
    Each time the page is refreshed (using PHP)?
    Or is this where it rotates on its own (javascripting) with no refresh?

    Either way, if your page is a PHP script, like "index.php", you could
    put your banners in their own directory. PHP will automatically grab
    all .png, .gif, or .jpg files from that directory and create the javascripting
    to rotate the banners using those images. Simply adding banners or
    deleting them in that directory will affect the page. No scripting changes
    needed to edit the banners.

    If it only changes when a user refreshes, you don't need javascripting (only PHP).

    You mention SWF (Flash). That is a different story. PHP can still render the
    HTML/javascripting, but dynamically rotating between JPG images and Flash
    is going to be tricky. I recommend not using Flash because of support lacking
    for Apple devices? Do they support Flash yet ... I'm not sure?

  4. #3
    Member mhookem's Avatar
    Join Date
    May 2012
    Chesterfield, Derbyshire. United Kingdom
    Member #
    Flash yes. But 'they're' calling it Adobe Air.

  5. #4
    Senior Member Kayo's Avatar
    Join Date
    Dec 2006
    Brampton Ontario
    Member #
    39 times
    Last time I checked, Apple is still not supporting Flash.

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 04:58 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2022 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: