标签存档: IT - 第2页

我最中意的Windows Media Center插件

MacroTube 0.8 Beta: 直接在Windows媒体中心里看YouTube上的视频:
(http://thegreenbutton.com/forums/t/86771.aspx)

Heatwave Vista 1.3: 在Windows媒体中心里显示实时天气预报(包括中国城市)
(http://thegreenbutton.com/forums/t/59564.aspx?PageIndex=1)

Media Center Mail: 通过Windows媒体中心直接在电视上阅读电子邮件 (http://vistamcmail.oabsoftware.nl/)

此插件需要通过http://www.oabsoftware.nl/scripts/register1.php?ProductID=1发送姓名和Email获取激活码.

RadioTime: 在Windows Media Center里收听全球广播 (http://radiotime.com/tv/media_center)

Media Center Studio: 此插件允许你通过修改菜单或者更换主题来个性设置你的媒体中心(http://www.adventmediacenter.com/)

Kylo Browser: 在Windows Media Center里浏览网页,特别适合在电视上上网 (http://kylo.tv/)


Win7codecs: 播放rm和rmvb影音文件 (仅支持Windows 7里的媒体中心, 其它操作系统例如Windows Vista请自己百度一下)

把下面文字粘贴到写字板里另存为.reg文件,然后双击运行写入注册表

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.RM]
“PerceivedType”=”video”

[HKEY_CLASSES_ROOT\.RMVB]
“PerceivedType”=”video”

[HKEY_CLASSES_ROOT\.DAT]
“PerceivedType”=”video”

[HKEY_CLASSES_ROOT\.MP4]
“PerceivedType”=”video”

[HKEY_CLASSES_ROOT\.MOV]
“PerceivedType”=”video”

[HKEY_CLASSES_ROOT\.TS]
“PerceivedType”=”video”

[HKEY_CLASSES_ROOT\.TP]
“PerceivedType”=”video”

[HKEY_CLASSES_ROOT\.MKV]
“PerceivedType”=”video”

最后运行此插件

根据浏览器类型载入不同页面

在做“寇同飞的个人简历”这个页面是出现一个问题。因为简历是在Word里写的,所以在做这个网页时直接在Word里另存为网页文件,然后就传到网上来。后来发现Word里导出来的这个文件最优化了IE浏览器的用户体验,在像谷歌浏览器等其它浏览器里浏览时就出现了问题。所以,我就在网上寻找“能够根据不同浏览器载入不同页面”的代码。虽然一无所获,但是找到了一段“根据显示器分辨率载入不同网页”的JavaScript代码(http://dev.firnow.com/course/1_web/javascript/jsjs/200855/113537.html):

<Script Language=”JavaScript”>

if(screen.width==1024 && screen.height==768)

window.location=”1024.htm”;

if(screen.width==800 && screen.height==600)

window.location=”800.htm”;

if(screen.width==1280 && screen.height==1024)

window.location=”1280.htm”;

</Script>

和一段“判断浏览器类型”的代码(http://blog.csdn.net/andyhooo/archive/2007/09/21/1794090.aspx):

<script language=”JavaScript”>

<!–

function getOs()

{

var OsObject = “”;

if(navigator.userAgent.indexOf(“MSIE”)>0) {

return “MSIE”;

}

if(isFirefox=navigator.userAgent.indexOf(“Firefox”)>0){

return “Firefox”;

}

if(isSafari=navigator.userAgent.indexOf(“Safari”)>0) {

return “Safari”;

}

if(isCamino=navigator.userAgent.indexOf(“Camino”)>0){

return “Camino”;

}

if(isMozilla=navigator.userAgent.indexOf(“Gecko/”)>0){

return “Gecko”;

}

}

alert(“您的浏览器类型为:”+getOs());

–>

</script>

所以照猫画虎,结合两端代码,做出了我想要的效果:

<script language=”JavaScript”>
if(navigator.userAgent.indexOf(“MSIE”)>0)
window.location=”cv.htm”;
if(isFirefox=navigator.userAgent.indexOf(“Firefox”)>0)
window.location=”cv1.htm”;
if(isSafari=navigator.userAgent.indexOf(“Safari”)>0)
window.location=”cv1.htm”;
if(isCamino=navigator.userAgent.indexOf(“Camino”)>0)
window.location=”cv1.htm”;
if(isMozilla=navigator.userAgent.indexOf(“Gecko/”)>0)
window.location=”cv1.htm”;
</script>
这段代码找出了浏览器的具体类型,对我来说应该是没用的。我只需要定义IE和非IE,然后载入不同页面。不知道谁能帮我?
Content Protected Using Blog Protector By: PcDrome.