Make a selection from the drop-down list.




Make a selection from the second drop-down list.

The second drop-down was made to work by changing the 'form name="jump" ' to "left" and the change was also made "location=". Interestingly, the second "jump" inside the [] was not changed.

Saturday, August 28, 2010

Drop Down Link List

The "blog inventory" in the sidebar is a LinkList gadget, modified to a drop down list. Here's the code:

<form name="inv">
<select onchange="location=document.inv.menu.options[document.inv.menu.selectedIndex].value;" value="GO" name='menu' expr:id='data:widget.instanceId'>
<option value=''><data:title/></option>
<b:loop values='data:links' var='link'>
<option expr:value='data:link.target'><data:link.name/></option>
</b:loop>
</select>
</form>

The original widget content was:

<ul>
<b:loop values='data:links' var='link'>
<li><a expr:href='data:link.target' target='blank'><data:link.name/></a></li>
</b:loop>
</ul>

No comments: