Need a Help

Discussion in 'HTML & Website Design' started by ankit1407, Aug 25, 2007.

  1. #1
    Guys i need a help, i want to show multiple videos passing by from my site in a random manner just like for eg you tube does where all videos will come and you can click them and open them in your own site ?

    any idea
     
    ankit1407, Aug 25, 2007 IP
  2. getwiththeprogram

    getwiththeprogram Peon

    Messages:
    120
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You will need to use Javascript or PHP to load a list of graphics/pages in a loop so each refresh will load the next one or set it to be random.
     
    getwiththeprogram, Aug 26, 2007 IP
  3. dannytuppeny

    dannytuppeny Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you can find it on another site, you can right-click and choose View Source to see the javascript they use to learn how to do it yourself :)
     
    dannytuppeny, Aug 26, 2007 IP
  4. tennisplayer89

    tennisplayer89 Peon

    Messages:
    387
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You'll need php. Viewing source sometimes doesn't work because the script is kept in an external file.
     
    tennisplayer89, Aug 26, 2007 IP
  5. dannytuppeny

    dannytuppeny Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah, if the javascript is in an external file, you'll see something like:

    <script type="text/ajavsacript" src="script_name.js" />

    and you'll have to copy the filename into your address bar. If it starts with a / then just prefix the domain, else leave the entire url minus its filename (and if it starts http:// then just use the url as it is).

    btw, you don't need php - I wrote an article about having random banners on Blogger, where you have no server code. It's nasty, but it works:

    http:// blog.dantup.me.uk/2007/08/random-banner-ads-on-blogger.html
     
    dannytuppeny, Aug 26, 2007 IP