Vincent Cheung

Vincent Cheung's Blog


« Newer Post Home Older Post »

Saturday, August 19, 2006

The new blogger

I got the invite to upgrade my blog to the new Blogger today. I'm not making use of any of the new features yet (eg. tags, comment feed, different archiving links). That's b/c it doesn't let you edit the raw html once you convert to a new template and I have a lot of custom code in my template. Plus, I want to do a complete overhaul of the design of this blog when I do the conversion.

The best thing about the new blogger is that the pages are dynamically created. It's all backend stuff. You don't see the effect, but for me, when I'm changing the settings, I no longer have to "republish" my blog, which takes a while since my blog is pretty big.

Anyways, while I was looking through things, I made some cosmetic changes to my blog. It's all in the sidebar. The most noticeable difference is that I now show a picture on the side. The cool thing is the picture randomly changes everytime you load the page! It's similar to what Nusraat does, but I had to do it slightly different b/c I'm using Blogger and not hosting it myself. I just used a bit of Javascript to write the image tag into the document where the image url is randomly chosen.

Code snippet:

<script language="JavaScript">
<!--
var numImages = 5;
var imgIdx = Math.floor(Math.random() * numImages);
document.write("<img src='http://www.blah.com/ImageName" + imgIdx + ".jpg'>");
//-->
</script>
<noscript>
<img src="http://www.blah.com/ImageName.jpg" />
</noscript>

7 Comments:

Sarah said...

does switching to the new blogger involve flooding google reader?

Vince said...

Ya, I guess b/c the feed was redone.

Bob said...

what?? how come I didn't get invited? :(

Bob said...

and how come i'm posting as robsblogcomments?? what is going on here?

Vince said...

I guess that's the Google account that you're signed in with. The new blogger requires you to sign in with a Google account. Same thing when commenting on blogs under the new blogger.

JL said...

Hey!
So i just noticed today that you have n't been posting in a while... or rather they haven't been showing on GIntern...

I guess i'm just going to have to sign up for your feed seperatly

Vince said...

Ya, GIntern stopped updating since I moved to the new blogger. I e-mailed Ben about it, who forwarded it to Will who is apparently the guy handling the web server. Haven't heard from Will yet.

Post a Comment