Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript CSS tricks sidebar randomization

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30757
    Attila Hajzer
    Participant

    did chris use PHP, Javascript or jQuery to randomize the affiliates ?

    like i know the’r going to need their own div of some sort weather its one Class and margin padding, or if individual divs then nth child maybe, but to randomize on refresh, how did he do that! and to make a check so their not duplicated?

    this is the site im working on :

    http://attilahajzer.pcriot.com/sites/Dylan/

    ps im just starting out with javascript and PHP

    #74194
    TheDoc
    Member

    Chris is actually using “BuySellAds” as a service.

    But this can also be done using some simple JavaScript or PHP. If you search Google for “random include php” you’ll find lots of PHP examples.

    #73762
    Chris Coyier
    Keymaster

    I have a whole article on this: https://css-tricks.com/random-ad-positions/

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.