Help with banner rotator

Discussion in 'Programming' started by a4kata, Aug 7, 2009.

  1. #1
    Hello, I have 2 html codes and I want to rotate them . Can somebody give me simple code for rotating 2 html codes thanks in advance .
     
    a4kata, Aug 7, 2009 IP
  2. cool_buddy1991

    cool_buddy1991 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It will work in Mozilla or Crome better

    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);

    remember keep ur content in block

    PS: If you need an web developer feel free to contact (a) psychocoding@y7mail.com
     
    cool_buddy1991, Aug 7, 2009 IP
  3. PHP-Guru

    PHP-Guru Greenhorn

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #3
    lol))) i'm crying :D

    he needs not the rotator in degrees))

    
    if(rand(0, 1) == 1)
    {
        echo("YOUR FIRST CODE HERE");
    }
    else
    {
        echo("THE SECOND ONE HERE");
    }
    
    PHP:
    don't forget to replace every single quotation mark " with \"

    good luck ))
     
    PHP-Guru, Aug 9, 2009 IP
  4. mps705

    mps705 Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This will work.

    You can also use mt_rand in place of rand.
    mt_rand supposed to produce better random number than rand.
     
    mps705, Aug 10, 2009 IP
  5. glitto

    glitto Notable Member

    Messages:
    2,839
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    205
    #5
    glitto, Aug 10, 2009 IP