SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Sep 2008
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    advertising module

    This task is doing a module to swap ads randomly from folder named “ads” on the root like
    http://www.amcham.org.eg/membership/...s_database.asp

    the advertising are either .swf, or .gif all that i need is to play the swf (when one is finished it starts the other one.. till the display of all swf's)..

    The folder “ads” is supposed to have 5 ads, when it finished number 1... it start randomly until it finish displaying all the advertising swf... i dont want to display only one of the five ... but display all in a random way..

    can anyone help me in doing this module using php

  2. #2
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    This isn't done with PHP OR ASP, which are Server-Side languages - it is a client-side thing. You need JavaScript to fire the swf files one by one, or maybe run them through a Flash or Java applet.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  3. #3
    SitePoint Addict
    Join Date
    Sep 2008
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by arkinstall View Post
    This isn't done with PHP OR ASP, which are Server-Side languages - it is a client-side thing. You need JavaScript to fire the swf files one by one, or maybe run them through a Flash or Java applet.
    thnx for ur reply but do u have any idea to make it using javascript ??? or ajax?

  4. #4
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,237
    Mentioned
    239 Post(s)
    Tagged
    1 Thread(s)
    JQuery can help you with that (www.jquery.com). JQuery has its own documentation and it can load the files for you. If you have any questions, pm and I will move the thread to the Javascript forum.


Bookmarks

Posting Permissions

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