Saturday, January 20, 2007

Guestbook

Please take a moment to sign the guestbook to let me know that you were here. Thanks and keep in touch! :)

Guestbook

Please take a moment to sign the guestbook to let me know that you were here. Thanks! :)

George Mason Tops Northeastern, 78-53

Today was my first time attending a basketball game at George Mason University. It was a pretty good game, because we won. :)

Go Patriots!

George Mason Tops Northeastern, 78-53

George Mason Tops Northeastern, 78-53

George Mason Tops Northeastern, 78-53

George Mason Tops Northeastern, 78-53

Tuesday, January 9, 2007

Flash and Javascript

A useful function to interact with Flash movie with Javascript. Works in most browsers. Thanks Permadi.com! :)

function getFlashMovieObject(movieName)
{
if (window.document[movieName])
{
return window.document[movieName];
}
if (navigator.appName.indexOf("Microsoft Internet")==-1)
{
if (document.embeds && document.embeds[movieName])
return document.embeds[movieName];
}
else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
{
return document.getElementById(movieName);
}
}

Monday, January 8, 2007

Cross-Browser getElementById()

A useful Javascript function to return the ID of an element that is supposed to work on most browsers.Thanks Netlobo.com! :)

function returnObjById( id )
{
if (document.getElementById)
var returnVar = document.getElementById(id);
else if (document.all)
var returnVar = document.all[id];
else if (document.layers)
var returnVar = document.layers[id];
return returnVar;
}