魔秀网上线拉

Posted August 24th, 2007. Filed under Internet Other


http://www.moreshow.cn

上个周末加上最近几天的一些业余时间做了这个视频聚合网站,正好手中还有一个moreshow.cn的域名,配上正好,感觉还ok哈。
也不喊什么口号了,希望大家能多多支持!目前还不支持分类,因为所有的数据都是程序自动跑出来的,没有任何人工整理,下周想想如何自动分类和加tag。

希望大家多提意见,多多支持拉!

腾讯的套套网

Posted August 13th, 2007. Filed under Internet Other


www.taotao.com

今天腾讯旗下的滔滔网正式上线公测了,但是我觉得叫“套套网”更合适更好记一些,原因有二:

网站创意明显抄袭twitter,所谓“套创意”,是为“一套”;
页面布局抄袭痕迹太过严重,比较一下国内的类twitter网站,几乎都长得一模一样,所谓“套模版”,是为“二套”;

我用qq号登录以后,获得了一个身份证,1383号“套客”!

不过还是要赞一下,因为腾讯也算是尽力运用了客户端上所能用到的资源,结合了QQ签名来做这个事情,算是一个表扬吧。

不过这里提醒一下,可要严防SPAM哦,因为今天公测第一天我就不止一次在首页上看到了非常纯粹的广告信息!

To be a dreamer

Posted August 11th, 2007. Filed under Life Other

Maybe you will say I am a dreamer,but I’m not the only one.

John Lennon的《Imagine》又一次在耳边响起,激起了我逝去已久的激情和梦想细胞。

我最新的梦想就是上半生努力赚钱,然后将我的下半生(上次有一位女同事很邪恶地听成了“下半身”)投入到防止地球变暖的活动当中去…

因为这几天的天气实在是太热了,尤其是当我抱着主板已经壮烈牺牲的本本走在没有任何遮罩的中关村大街上的时候,热辣辣的阳光让我强烈地感觉到这个星球就要完蛋了。再这样下去,几十年以后,人类只能生存在水下或者地下了吧…那个时候,中国乐坛或许又会重新流行起任贤齐的那首《我是一只鱼》了吧。而且我可不想在《未来水世界》那样的环境下生存,连个踢球的地方都没有…

所以从现在起,我要努力赚钱,勇敢做梦。

用javascript操作MediaPlayer

Posted August 8th, 2007. Filed under Javascript Other

最近要为点播页面开发一些新的功能,比如点播的播完自动跳转、节目记忆等,需要与activex对象进行一些通讯并进行一些操作,和开发activex的同事交流了一下,发现并不难,只要用javascript响应mediaplayer的内部事件就行,其中与流播放有直接关系的事件有:OpenStateChange,PlayStateChange,Buffering,MarkerHit,ScriptCommand等。

我这里只需要检测播放器是否已经播完视频文件,所以只需要对PlayStateChange进行监控即可,把javascript的代码发在这里,并附上PlayStateChange的一些状态参数,更详细的介绍请看这里

  1. <script lang="javascript" type="text/javascript">
  2. var last_order =1;
  3. var order =1;
  4. var rid=0;
  5.  
  6. function changeFileUrl(rid,order)
  7. {
  8. window.rid = rid;
  9. window.order = order;
  10. basic_url = "dianbo/playlist/";
  11. wmplayer.stop();
  12. wmplayer.FileName = basic_url+rid+"_"+order+".asx";
  13. wmplayer.play();
  14. setTimeout("changePlayStat()","1000");   
  15.     }
  16.  
  17. function changePlayStat()
  18. {
  19. old_itemId = window.rid+"_"+window.last_order;
  20. now_itemId = window.rid+"_"+window.order;
  21. try{
  22. document.getElementById(old_itemId).className="";
  23. //alert(old_itemId);
  24. document.getElementById(now_itemId).className="now";
  25. window.last_order = window.order;
  26. setCookie(window.rid,window.order);
  27. }
  28. catch(e){};
  29. }
  30.  
  31. function wmplayer.CorePlayer::PlayStateChange(state)
  32. {
  33. //alert(state);
  34. if(state==8)
  35. {
  36. window.order = parseInt(window.order)+1;
  37. setTimeout("changePlayStat()","1000");   
  38.     }
  39. }
  40.  
  41. function checkLastPlay()
  42. {
  43. last_play = getCookie(window.rid);
  44. if(last_play>0) 
  45. {
  46. if(confirm("您上次看到第"+last_play+"集,要继续观看吗?"))
  47. {
  48.     window.order = last_play;
  49.     window.last_order = last_play;
  50.     changeFileUrl(window.rid,window.order);
  51.         }
  52. else changeFileUrl(window.rid,window.order);
  53. return;   
  54.     }
  55. changeFileUrl(window.rid,window.order);
  56. }
  57. checkLastPlay();
  58. </script>

状态参数如下:

wmppsUndefined = 0;//未知状态
wmppsStopped = 1;//播放停止
wmppsPaused = 2;//播放暂停
wmppsPlaying = 3;//正在播放
wmppsScanForward = 4;//向前搜索
wmppsScanReverse = 5;//向后搜索
wmppsBuffering = 6;//正在缓冲
wmppsWaiting = 7;//正在等待流开始
wmppsMediaEnded = 8;//播放流已结束
wmppsTransitioning = 9;//准备新的媒体文件
wmppsReady = 10;//播放准备就绪
wmppsReconnecting = 11;//尝试重新连接流媒体数据
wmppsLast = 12;//上一次状态,状态没有改变

Sunflower

Posted August 7th, 2007. Filed under Design Life Other



点击看大图

下午画的一幅《向日葵》,不知道为什么,最近似乎有很多东西需要表达,不管以哪种方式,总是迫不及待地想要从我的心里面吐出来。

 Page 1 of 2  1  2 下一页