- <divclass=detail-conclear>
- <divid=mod_player_wrapclass=mod_player_wrap>
- <divclass=mod_inner>
- <divid=mod_innerclass=mod_player_sectioncentermod_independent>
- <div>
- <divid=mod_playerclass=mod_player>
- <divid=mod_player_skin> </div>
- <!--This div is where the player prepares output --><!--Introducing Tencent Video Player Component --><scriptlanguage=javascriptsrc=http://qzs.qq.com/tencentvideo_v1/js/tvp/tvp.player.jscharset=utf-8></script><scriptlanguage=javascript>
- //Define the video object
- varvideo=newtvp.VideoInfo();
- //Paste video to the video object
- video.setVid(c0146k6imdf);
- //Define the player object
- varplayer=newtvp.Player(320,240);
- //Set the video loaded when the player is initialized
- player.setCurVideo(video);
- //Set up a streamlined skin, only valid on demand
- //player.addParam(flashskin,http://imgcache.qq.com/minivideo_v1/vd/res/skins/TencentPlayerMiniSkin.swf);
- //Output player, the parameters are the id of the div above. If you want to output it to, write the id of the element.
- player.addParam(autoplay,1);
- player.addParam(wmode, transparent);
- //player.addParam(pic,http://img1.gtimg.com/ent/pics/hv1/75/182/1238/80547435.jpg);
- player.write(mod_player_skin);
- </script></div>
- </div>
- </div>
- </div>
- </div>
- </div>
PS: will correspond to:
Just replace the vid in video.setVid(c0146k6imdf); with your own video id.