Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Php embed code help

Options
  • 31-10-2011 10:37pm
    #1
    Registered Users Posts: 18


    So i need a help if anyone can.i just put up a nice piece of code that shuffles music videos i picked from youtube for my friend's blog.they work ok but i am trying figure out how to do it with online games. were gonna pick our favorite games from arcadecabin.com

    the previous code for the youtube is this
    <?php

    $videos = array(
    'pLGcj62fdKo',
    '-QKj62RKBrM',
    'D78AQSAKQLQWI9',
    '_YVY3JYgWHs',
    '60GKTp0pf1A',
    'pEPmp5Wv9uo',
    '2AdaZoWW6uc',
    'l7Hk0KXEf94',
    'SDTZ7iX4vTQ&ob',
    'XC5vmnnj8l4',
    'qQYpF2pCkLI&ob=av3e',
    '7iODSZL7XkQ',
    'YoZHE9UE5as',
    'aHU3s1pdacY',

    // Add more ids there list this:
    // 'id',
    );


    $video = $videos[rand(0, count($videos) - 1)];

    echo '<center><object width="480" height="385">
    <param name="movie" value="http://www.youtube.com/v/',
    $video, '&hl=en_US&fs=1&"></param><param name="allowFullScreen"
    value="true"></param><param name="allowscriptaccess" value="always">
    </param><embed src="http://www.youtube.com/v/', $video,
    '&hl=en_US&fs=1&" type="application/x-shockwave-flash"
    allowscriptaccess="always" allowfullscreen="true" width="480"
    height="385"></embed></object></center>';

    ?>

    any help would be great, may look into shuffling games from various sites
    Tagged:


Advertisement