肖恩D++
Not Equal C && !=C && 不等于西
-
I Will Always Love You男生版?女生版?
Posted on April 8th, 2010 Add comments一早来到办公室,大家都在谈论这个号称中国版Susan Boyle的小胖:
唱的虽然不错,但总是有点变态的感觉——想到了春哥——一会儿提姆跑过来告诉我们,这人原来是他发小的同学……
529 views -
可怜的youtube
Posted on April 7th, 2010 1 comment发现国内不能看youtube已有一段时间了,可一直懒得安装其他播放器。因为youtube的embed功能太好用了,既不用占seantian.com的空间,速度貌似还快过,只是无奈这厮由于出身问题惨遭封杀……算了,莫谈国事!
——痛下决心,还是想其他办法为妙,目前看来。
429 views -
世界上第一辆搭配IPad的汽车
Posted on April 6th, 2010 Add comments一句话:这帮哥们太有才了。
305 views -
“情人眼里出西施”英文版?
Posted on March 29th, 2010 Add comments和Jahan聊天一直是件很有趣的事情:他虽然是伊朗人,但由于在美国生活得太久,以至于经常以西方人的思维考虑问题。不过,他的血统又使他能认同中国的文化。
中午吃完饭闲聊,山木同志和他讲解“中国四大美女”,Jahan突然冒出一句:“beauty is in the eye of the beholder…”突然发现这句话似乎很贴切地形容了这个地球上的中国人都知道的典故的内在含义,不觉感叹起这位国际友人的顿悟能力。
聊完专门查了一下,原来这句话出自公元前三世纪的古希腊。
495 views -
Embed own video player to website
Posted on March 18th, 2010 Add commentsSometimes I hate to embed Youtube to my website, cause somehow it seems like my friends in china can’t watch them. What I need just embed our own video player into the website:
- first, need a free player. There are many streaming player such jwplayer, flowplayer, etc. I prefer flowplayer, cause it’s simple. (download from here)
- Unzip, put all files into web server and choose an easily remembered place as you will place a path to these files later in your web pages.
-
- To include file flowplayer-3.1.4.min.js in the web page you place the following tag in the HEAD section of your web page:
1<script src="yourpath/flowplayer-3.1.4.min.js"></script> - To place the link to your video file in the web page, the simplest way is to use the following A tag on your web page. The video will automatically play there:
123<a href="http://www.mywebsite.com/myVideo.flv"style="display:block;width:425px;height:300px;"id="player"></a> - Finally, to load the player on the A tag just described, you place the following script in your page, following the A tag:
123<script language="JavaScript">flowplayer("player", "yourpath/flowplayer-3.1.5.swf");</script> - Also, I really hate autoplay the video when loading pages. So we can modify the configuration:
12345678<script language="JavaScript">flowplayer("player", "yourpath/flowplayer-3.1.5.swf", {clip: {autoPlay: false,autoBuffering: true}});</script>
- To include file flowplayer-3.1.4.min.js in the web page you place the following tag in the HEAD section of your web page:
- So a complete functional web page that plays videos with Flowplayer is:
12345678910111213141516171819202122<html><head><title>Your Title</title><script src="yourpath/flowplayer-3.1.4.min.js"></script></head><body><a href="http://www.mywebsite.com/myVideo.flv"style="display:block;width:425px;height:300px;"id="player"></a><script language="JavaScript">flowplayer("player", "yourpath/flowplayer-3.1.5.swf", {clip: {autoPlay: false,autoBuffering: true}});</script></body></html>
388 views






Recent Comments