/    Sign up×
Community /Pin to ProfileBookmark

Creating a video scroll bar (Help)

[url]http://www.youtube.com/[/url]

Hello guys, how can I create a scroll bar with all the related videos shown, just like the Suggestions of youtube.com

Greatly appreciate if anyone could help me out. Thanks.

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@morphox85Mar 17.2011 — Something like this?

[code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>-</title>
<style media="screen" type="text/css">
body, html{ padding:0px; margin:0px;}
#container{ width:840px; height:450px;}
#video{ width:640px; height:390px; float:left;}
#suggestions{ float:right; width:200px; height:390px; overflow-y:scroll; overflow-x:hidden;}
.suggestionvideos, ul{ width:200px; list-style:none; padding:4px; margin:0px;}
.suggestionvideos, li{ height:50px; padding-bottom:4px;}
.suggestionvideos, p{ float:right; display:inline-block; width:145px; text-align:left;}
.suggestionvideos, span{ float:left; width:50px; height:50px; display:inline-block; background-color:#CCC;}
/*640 x 390*/
</style>
</head>
<body>
<div id="container">
<div id="video"><object width="640" height="390"><param name="movie" value="http://www.youtube.com/v/82utG7Q3G_k?fs=1&amp;hl=nl_NL&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/82utG7Q3G_k?fs=1&amp;hl=nl_NL&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="390"></embed></object></div>
<div id="suggestions">
<ul>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
<li><span>video image</span><p>description</p></li>
</ul>
</div>
</div>
</body>
</html>
[/code]
×

Success!

Help @helohelo 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.13,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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