Alright, I promise I haven't gone completely drop-down crazy... Well maybe just a little....
Here's the code to turn your "recent posts" display in your blogspot blog into a drop-down menu.
<p style="text-align: center">
<select name="PreviousItemsMenu" onChange="location.href=this.options[this.selectedIndex].value;">
<option value="/">- Recent Posts -</option>
<BloggerPreviousItems>
<option value="<$BlogItemPermalinkURL$>"><$BlogPreviousItemTitle$></option>
</BloggerPreviousItems>
</select>
</p>
I modified Li Zhao's code for the archive drop-down to work with the "10 most recent posts" display in blogger. Let me know if it works for you.
I used centricle to convert the code so that it would display in this post. Thanks to Improbulus for the tip.
See other posts in Blogger Hacks: The Series
And this is a great tip from you too, shall give it a go!
http://del.icio.us/doc/feeds/js
I'm considering trying it, although I really like your idea of using drop-down menus for categories, archives, and possibly recent posts. I haven't decided whether or not to implement any of those, but rest assured I'll give you due credit... :-)
Now if I can just figure out how to make the two menus the same width.
You can put it wherever you like. As a straight swap-out, it should replace the bloggerprevous items tags.... You can comment them out, insert the new code, and preview your page so that the changes aren't irreversible. It can go anywhere you like, though, so experiment 'til it looks good w/ your template!
The Bleeding Ear
Any ideas?
has anybody figured out how to change the text length in the drop down menu, so that it can be shortened in teh drop down menu?
emailing me at BlogsoupATgmailDOTCOM would be great.
thank you in advance for any help you might have.
select { width: 10em; }
input[type='submit'] { width:auto; }
input[type='button'] { width:auto; }
input { width: 10em; }
input[type='image'] { width:auto; }
I inserted the code and it works perfectly.
At least for Firefox. For IE the dropdownmenu doesn't expand when clicked on so it is impossible to read the longer post-titles.
Anyone a sollution? (besides adding a button "best viewed in Firefox")
Arne.
Here's a link to my blog so you can see what I mean.
It will default to accomodate your longest post title. You can use CSS to limit the size of the unselected box. See Stephen's comment on Freshblog.