/    Sign up×
Community /Pin to ProfileBookmark

Random Google Video.

Basically, I have multiple Google videos… but I only want to display one at a time on my site. So, the best way to do this is have the one displayed to be randomly picked… but I have no clue how to do this.

I do know the embed html is

<embed style=”width:400px; height:326px;” id=”VideoPlayback” type=”application/x-shockwave-flash” src=”http://video.google.com/googleplayer.swf?docId=-[b]4203295387902104151[/b]&hl=en”></embed>

The bolded part is the part that needs to be either

4203295387902104151
8909400237855893347
1446340990435255030

One of those three numbers. I know I CAN do it, just no clue what I’m doing enough to be able to do it. Help?

to post a comment
JavaScript

2 Comments(s)

×

Success!

Help @camalex spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...