Javascript and Ted
August 11, 2005 – 12:11 amSo I’ve been working on a new template for LiftPort but we’re transitioning to CMS, Mambo. So I have to figure out how to create a tempate that will work with that, as opposed to just something that works with what I created… which is what we have now.
Part of creating the template is writing the PHP and javascript that power the site; below is a snippit of the code that makes sure that Netscape based browsers play nice and don’t screw up the layout. Took me 20 minutes to figure out how/what it was doing. I need a Javascript refresher course badly.
<script language="JavaScript" type="text/javascript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)== {document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;}} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH location.reload(); } MM_reloadPage(true); //--> </script>
Ugly code aside, I’ve also been surely but slowly filling up Ted the Penguin with various bits of content that I’ve created over the years and is scattered around the web on various sites. So… check back for updates. If it’s not posted in the blog, check the sidebar to the right, it should have links to everything I put up.
Happy Surfing!
One Response to “Javascript and Ted”
heehee… you’re a geek.
love you!
By Karen on Aug 14, 2005