![]() | | ||||||||
| | #1 |
| HyperActive Warrior War Room Member Join Date: Dec 2006 Location: Maryland, USA
Posts: 262
Thanks: 9
Thanked 131 Times in 41 Posts
|
Hey guys, I've been searching for a script that would allow me to have 3-4 youtube or vimeo videos rotate on each refresh of my site. I haven't really found anything yet that I can make heads or tails out of. Is anyone familiar with a script that would let me do this on my site or knows of the proper html maybe? Basically I have a video widget in my sidebar of my wordpress blog and I would like 4 videos to be rotated upon each visit and on each new page as the user navigates through the site. Thanks much! |
| | |
| | #2 | |
| Active Warrior War Room Member Join Date: Jun 2009 Location: United Kingdom
Posts: 42
Thanks: 0
Thanked 2 Times in 2 Posts
| Quote:
Code: <? $video[] = "HTML Video Code 1"; $video[] = "HTML Video Code 2"; $video[] = "HTML Video Code 3"; $video[] = "HTML Video Code 4"; echo $video[rand(0,count($video)-1)]; ?> | |
| The Open Source Membership Site Software Check out these awesome plugins available from the Wordpress Repository Theme Shortcodes, | ||
| | |
| | #3 |
| HyperActive Warrior Join Date: Jun 2009
Posts: 104
Thanks: 3
Thanked 4 Times in 4 Posts
|
Thanks Rob, you helps me to solve my problem too.
|
| I will build, SEO and promote your blog to over 1000 blog for only $5 PM me or ask me via Yahoo Messenger (my id:saifulbest) for more info about this crazy deal. | |
| | |
| | #4 |
| Warrior Member Join Date: Oct 2008 Location: Houston
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
Will this work on the pages you create as well, with out the widget side bar? Still a little new at this... Where exactly would that code go on the php? Thanks for your help I have been searching high and low for the last week... lol
|
| | |
| | |
![]() |
|
| Tags |
| rotating, script, video, youtube |
| Thread Tools | |
| |
![]() |