Tag Archives: IT - Page 2

Plug-ins for Windows Media Center

MacroTube 0.8 Beta: To watch YouTube videos directly on your Media Center:
(http://thegreenbutton.com/forums/t/86771.aspx)

Heatwave Vista 1.3: to display Live Weather for Windows Media Center
(http://thegreenbutton.com/forums/t/59564.aspx?PageIndex=1)

Media Center Mail: to read e-mails on Media Center TV (http://vistamcmail.oabsoftware.nl/)
An Activation Code is required by sending name and email at http://www.oabsoftware.nl/scripts/register1.php?ProductID=1.

RadioTime: To listen radios around the world (http://radiotime.com/tv/media_center)

Media Center Studio: To customise your Windows Media Center by rearranging menus and changing themes (http://www.adventmediacenter.com/)

Kylo Browser: To surf on the Internet in the Windows Media Center (http://kylo.tv/)


Win7codecs: To play .rm / .rmvb files in the Widnows Media Player (only for Windows 7, please Google for other OS)

Save following text as a .reg file and run it

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”

Install Win7codes

Load page based on Browser’s type

The page of “Tongfei Kou’s CV” was saved as .htm in Word 2007. This makes the page be best displayed in IE browser. For the same experience by other browsers, it is necessary to identify the type of browser and accordingly locate IE to one page and other browsers to another page which loads a .pdf version of the CV. The often used solution on the cyberword is JavaScript, but I have no idea about it at all.

However, thanks to Google, I found a code to locate difference pages based on the screen solution of visitor’s (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>

and another code to identify the type of browser (http://www.cnblogs.com/JustinYoung/articles/1014374.html):

<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(“Your browser type is:”+getOs());
–>
</script>

Hereby, I combined two codes. It works for me and I got exactly what I want:

<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>
I’m thinking there must be a similar code that only identifies “IE” and “Non-IE”. I need your help…
Content Protected Using Blog Protector By: PcDrome.