Monday, December 05, 2005

Creating a dropdown menu for your Archives

Blogger automatically creates an archive for your blog, displaying a list of links to your archived posts in a sidebar on your blog.
If you have been blogging for a long time, this list of archive links will become very long, hereby sometimes interfering with the layout of your blog.
You can however create a dropdown menu for your archives in Blogger, reducing your archive list to one single line, like you see in the sidebar on the left.

All you have to do to create your own dropdown menu is copy and paste the following code into your template on the location where you want the dropdown menu, without changing anything:


<p style="text-align: center">
<select name="ArchiveMenu" onChange="location.href=this.options[this.selectedIndex].value;">
<option value="/">- Archives -</option>
<BloggerArchives>
<option value="<$BlogArchiveURL$>"><$BlogArchiveName$></option>
</BloggerArchives>
<option value="/">Current Posts</option>
</select>
</p>


Tags:

4 Comments:

Blogger Ten Thousand Angels said...

A v handy snippet of code - I've used it in my blog (Ten Thousand Angels) - I'll post a link = recommendation to your pages tomorrow. Thanks again;

23:52  
Anonymous tek said...

Nice tip!

12:44  
Anonymous Design for MySpace said...

Tried it blogroll is working.

07:25  
Blogger Jesni said...

Hi,

You have an interesting blog.

Here is a mobile networking site called MoDazzle, With MoDazzle you can access Salesforce, Facebook and Linkedin on your mobile via SMS and email without internet or GPRS. You can also access other online services like Google maps, Starbucks etc.

Check this site for free registration
www.modazzle.com/cms/userLogin.html?channel=CM&camp=mobilenetdj


Merry Christmas

07:51  

Post a Comment

Links to this post:

Create a Link

<< Home