Welcome to Our Community

Wanting to join the rest of our members? Feel free to sign up today.

I need help [.php style]

Discussion in 'The Lounge' started by Close, Nov 25, 2006.

  1. Close

    Close 幸せ雑&

    Joined:
    Oct 13, 2006
    Messages:
    1,774
    Likes Received:
    32
    Location:
    Ohio
    Wii Friend Code: 0000-0000-0000-0000
    0000-0000-0000-0000
    Okay, I have seen a persons sig using image rotation and I have a question.
    I have the htm(l) code for it, and have the url but I cant find a site that has .php support :(
    And heres the htm(l) code :
    <script language="JavaScript">
    <!-- Begin
    rnd.today=new Date();
    rnd.seed=rnd.today.getTime();

    function rnd() {
    rnd.seed = (rnd.seed*9301+49297) % 233280;
    return rnd.seed/(233280.0);
    };

    function rand(number) {
    var result = Math.ceil(rnd()*number);
    if (!result)result++;
    return result
    };
    var ad_cnt5 = 5;
    var ad5 = rand(ad_cnt5);
    var link5;
    var adBanner5;
    var width5
    var height5
    if (ad5==1) {
    link5="http://img462.imageshack.us/img462/9571/awesomenarutogb2.png";
    adBanner5="http://img462.imageshack.us/img462/9571/awesomenarutogb2.png";
    width5="468";
    height5="60";
    alt5="nothing";
    }
    if (ad5==2) {
    link5="http://img293.imageshack.us/img293/9439/gearsofxu5.png";
    adBanner5="http://img293.imageshack.us/img293/9439/gearsofxu5.png";
    width5="468";
    height5="60";
    alt5="nothing";
    }
    if (ad5==3) {
    link5="http://img293.imageshack.us/img293/1653/narutozzru5.png";
    adBanner5="http://img293.imageshack.us/img293/1653/narutozzru5.png";
    width5="468";
    height5="60";
    alt5="nothing";
    }
    if (ad5==4) {
    link5="http://img293.imageshack.us/img293/7154/uchihazt4.png";
    adBanner5="http://img293.imageshack.us/img293/7154/uchihazt4.png";
    width5="468";
    height5="60";
    alt5="nothing";
    }
    if (ad5==5) {
    link5="http://img293.imageshack.us/img293/1579/awardem2.png";
    adBanner5="http://img293.imageshack.us/img293/1579/awardem2.png";
    width5="468";
    height5="60";
    alt5="nothing";
    }
    document.write('<center><a href="' + link5 + '" target="_top">');
    document.write('<img src="' + adBanner5 + '" width=' + width5 + ' height=' + height5 + ' border=0 alt="' + alt5 + '"></a>');
    document.write('</center>');
    // End -->
    </SCRIPT>
     
  2. MetroidZ

    MetroidZ Only took 4 years to get1

    Joined:
    May 20, 2006
    Messages:
    3,593
    Likes Received:
    3
    Location:
    London, England Rank: i-wii-sistable
    Wii Friend Code: 1000-0000-0000-0000
    1000-0000-0000-0000
    Just make an animated gif, it loses some quality but its good.
     
  3. i0n

    i0n :eek:

    Joined:
    Apr 30, 2006
    Messages:
    2,463
    Likes Received:
    96
    Location:
    UK
    thats javascript, why would you need php?
     
  4. Close

    Close 幸せ雑&

    Joined:
    Oct 13, 2006
    Messages:
    1,774
    Likes Received:
    32
    Location:
    Ohio
    Wii Friend Code: 0000-0000-0000-0000
    0000-0000-0000-0000
  5. Close

    Close 幸せ雑&

    Joined:
    Oct 13, 2006
    Messages:
    1,774
    Likes Received:
    32
    Location:
    Ohio
    Wii Friend Code: 0000-0000-0000-0000
    0000-0000-0000-0000
    #5 Close, Nov 25, 2006
    Last edited: Nov 25, 2006

Share This Page