[b]added new feature: [color=green]shuffle switch[/color][/b] *see bottom of this post
hehehe
[b]Preview:[/b]
[b][url=http://profiles.friendster.com/7027003]Ma proffy[/url][/b] - it's random youtube on refresh baby! [img]http://h1.ripway.com/shakiro/banana.gif[/img]
For the [b]Newbies[/b], there is a the [b]premade sidebar code[/b] found further down
(For the Semi-Advanced) Here is the javascript for wherever you want to put your random videos. Try it on friendster, multiply, or wherever
<">[b]want to use it for random games?[/b] - to use it for random games, I suggest that you make sure the games are of the same size, then edit the width & height of the embed found in the code.
[b]for random music only?[/b] - edit or add the attributes you need for your player into the embed (i.e. - quality='high' autostart='true', loop='true', etc...)
[b]mixed random embeds?[/b] if you think that you can somehow make the embed function properly, then you could try mixing between video, flash, & music URLs.
[b]- FOR SIDEBAR -[/b]
[img]http://h1.ripway.com/shakiro214/images/mp4.JPG[/img]
this is a premade sidebar code with some youtube URLs. just copy, edit the URLs, and paste to js
<">[b]want more videos?[/b] - to add more videos or arrays simply add them following this format:
[quote]mtv[3]="SRC_URL_OF_YOUR_VIDEO";
mtv[4]="SRC_URL_OF_YOUR_VIDEO";
mtv[5]="SRC_URL_OF_YOUR_VIDEO";
etc....[/quote]
[quote][b]MORE ABOUT YOUTUBE VIDEOS[/b]
[b]want your youtube videos to autoplay?[/b] - just add [b]&autoplay=1[/b] at the end of the source url
-example-
[quote]mtv = new Array();
mtv[0]="http://www.youtube.com/v/hME7uyoNseo[b]&autoplay=1[/b]&rel=1";[/quote]
What is [b]&rel=1?[/b] [img]http://img223.imageshack.us/img223/5225/shockingsd8.gif[/img]
- When [b]&rel[/b] is equal to [b]1[/b] it means that the related videos menu will appear once your video ends.
- When it is set to [b]0[/b], that menu will not appear.[/quote]
[align=center][b]TIP: The Videos [color=red]DO NOT[/color] have to all be Youtube[/b][/align]
[b]Here's my newest feature: - [color=green]THE SHUFFLE SWITCH[/color] -[/b]
[img]http://h1.ripway.com/shakiro214/images/example4.jpg[/img]
Can you guess what it's for? [img]http://smileydatabase.com/s/94.gif[/img]
and here's the premade for a sidebar with a shuffle switch:
<">That's it! You're done!
[img]http://img486.imageshack.us/img486/5404/7155668qt1.gif[/img] Please [b]comment me[/b] if you like this idea...
Last edited by shakiro214 (2008-04-20 00:03:05)