< link rel="DCTERMS.isreplacedby" href="http://ban-sidhe.com" >

Friday, January 14

Drop-down "classics" menu : how-to?

At James' request, here's how I did. It's nothing fancy, it's all manual editing of the template, nothing automatic : I started with this blogger help file. I then modified the proposed menu by replacing the blogger tags with permanent links to create a classics menu, along the lines of :
<select name="classicsmenu" onchange="document.location.href=this.options[this.selectedIndex].value;"> <option selected>- Classics - </option> <option value="http://yourblog.blogspot.com/classic1.html">Title of classic 1 </option> <option value="http://yourblog.blogspot.com/classic2.html">Title of classic 2 </option> </select>
You insert that in your template wherever you want the menu to appear. Note that I have been unable to limit the size of the menu, which seems to be determined by the size of the longest "title of classic N" character string. You'll have to experiment to see what the maximum title length that will fit in your template without ruining the set-up, and then ensure that no title is longer than that. Since you manually enter the title, you can shorten it from the original post title if required. I hope that was clear enough, and if anyone has an idea on how to limit the size of a drop-down menu to a specific number of characters, I'd love to hear it, because I could put back the recent post menu as a drop-down too, without worrying about title lengths. PS : For this post, I learned how to quote html code on a webpage without the browser interpreting it as html code, thanks to special characters, and it ain't pretty. Location : Beauvais, France

0 Insights :

Post a Comment

<< Home

Missed a recent post? Find it here.

Looking for more B.S.? Find it here.