Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Need Help Regarding A Random Video Widget For Blogger

  1. #1
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Need Help Regarding A Random Video Widget For Blogger

    Hi all! I'm looking for a script (or service) that can be added in the blogger HTML/Javascript widget. The script should be able to show random videos on my blog. I want to store the embed codes of many videos (from youtube, dailymotion etc.) in that script, and then as the user refreshes the page, a random video from that list is shown.

    Thanks,
    Sam.

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    See the code from the link below. It might help:
    http://www.ahfb2000.com/webmaster_he...56&postcount=2
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. The Following User Says Thank You to rangana For This Useful Post:

    CrazySam (08-21-2008)

  4. #3
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Thumbs up

    Oh thank you thank you so much!!!! You're a genious!! This is exactly what I was looking for!!! YIPPEEE!!!!!!!!!

  5. #4
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    What should I do to make this script as
    <script src="http://www.someserver.com/randomvideo.js" type="text/javascript"></script>

    Then I can upload this randomvideo.js to that server after adding newer videos without requiring to go to my blog admin.

    Also is there any limit for the number of videos I can add? Will the page load slower if I add too many videos??

  6. #5
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Quote Originally Posted by CrazySam View Post
    What should I do to make this script as
    <script src="http://www.someserver.com/randomvideo.js" type="text/javascript"></script>

    Then I can upload this randomvideo.js to that server after adding newer videos without requiring to go to my blog admin.
    If I take you right, you can save the file as randomvideo.js and place it in the same folder to where your page resides.

    Quote Originally Posted by CrazySam View Post
    Also is there any limit for the number of videos I can add? Will the page load slower if I add too many videos??
    There's no limit. And no, the page will not load slower since only one video will be shown every page's reload.

    Hope that makes sense.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  7. #6
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by rangana View Post
    If I take you right, you can save the file as randomvideo.js and place it in the same folder to where your page resides.
    It is not working when I do like that. I made the randomvideo.js and hosted it on googlepages. Then from Blogger, I called
    <script src="http://myid.googlepages.com/randomvideo.js" type="text/javascript"></script>

    What am I doing wrong?

  8. #7
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Please provde a link instead.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  9. #8
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by rangana View Post
    Please provde a link instead.

    I'm sorry, I didn't understand what you meant by "providing a link instead."

  10. #9
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Put a link to the problem page, there are problems that aren't in the line of code you provided, and may be others, a link to the page will allow us to see it all for ourselves.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  11. #10
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Okay here is the link to the problem page:

    http://samstestblog5.blogspot.com/

    Please help me.

    Thanks...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •