duminică, 5 februarie 2012

Cum fac un meniu drop-down pentru etichete in blogspot?

Intram in Tablou de bord, in design, apoi in Editati HTML. Lasam nebifata casuta de Extindeţi şabloanele control si cautam urmatoarea linie de cod:

<b:widget id='Label1' locked='false'

title='Labels' type='Label'/>


si o inlocuim cu urmatoarea:

<b:widget id='Label1' locked='false'

title='Labels' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>

<br />
<select onchange='location=this.options

[this.selectedIndex].value;'>
<option>Select a label</option>
<b:loop values='data:labels' var='label'>
<option expr:value='data:label.url'>

<data:label.name/>
(<data:label.count/>)
</option>
</b:loop>
</select>

<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>

Un comentariu:

Aditza spunea...

a mers din prima, ms

Search This Blog