Show/hide content on index page
Posted: 25 Mar 2010, 14:28
Idea taken from a spoiler html code!
prosilver
open styles/prosilver/template/index_body.html
[spoiler]Find:
Add after:
Find:
Add after:
Find:
Add before:
Find:
Add after:
[/spoiler]
[hsimg]http://www.djsimg.com/images/58973968_0 ... _index.png[/hsimg][hsimg]http://www.djsimg.com/images/25323583_0 ... panded.png[/hsimg]
subsilver2
open styles/subsilver2/template/index_body.html
[spoiler]Find:
Add after:
Find:
Add after:
Find:
Add after:
Find:
Add after:
[/spoiler]
[hsimg]http://www.djsimg.com/images/92306507_0 ... footer.png[/hsimg]
[hsimg]http://www.djsimg.com/images/53579649_0 ... footer.png[/hsimg]
prosilver
open styles/prosilver/template/index_body.html
[spoiler]Find:
Code: Select all
{S_LOGIN_REDIRECT}
</fieldset>
</form>
<!-- ENDIF -->
Code: Select all
<br />
<div class="panel bg3">
<div class="inner"><span class="corners-top"><span></span></span>
<input class="button2" type="submit" value="Show {L_WHO_IS_ONLINE}" style="margin: 5px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide {L_WHO_IS_ONLINE}'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show {L_WHO_IS_ONLINE}'; }" /></div><div class="quotecontent"><div style="display: none;">
Code: Select all
<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->
Code: Select all
</div></div>
<span class="corners-bottom"><span></span></span></div>
Code: Select all
<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
<h3>{L_BIRTHDAYS}</h3>
Code: Select all
<div class="panel bg1">
<div class="inner"><span class="corners-top"><span></span></span>
<input class="button2" type="submit" value="Show {L_FORUM} {L_STATISTICS}" style="margin: 5px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide {L_FORUM} {L_STATISTICS}'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show {L_FORUM} {L_STATISTICS}'; }" /></div><div class="quotecontent"><div style="display: none;">
Code: Select all
<p>{TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_USERS} • {NEWEST_USER}</p>
<!-- ENDIF -->
Code: Select all
</div></div>
<span class="corners-bottom"><span></span></span></div>
[hsimg]http://www.djsimg.com/images/58973968_0 ... _index.png[/hsimg][hsimg]http://www.djsimg.com/images/25323583_0 ... panded.png[/hsimg]
subsilver2
open styles/subsilver2/template/index_body.html
[spoiler]Find:
Code: Select all
<!-- IF S_DISPLAY_ONLINE_LIST -->
<br clear="all" />
Code: Select all
<div><div class="content">
<input class="btnlite" type="button" value="Show {L_WHO_IS_ONLINE}" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide {L_WHO_IS_ONLINE}'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show {L_WHO_IS_ONLINE}'; }" />
</div><div class="quotecontent"><div style="display: none;">
Code: Select all
<td class="row1"><b class="gensmall">{L_LEGEND} :: {LEGEND}</b></td>
</tr>
<!-- ENDIF -->
</table>
Code: Select all
</div></div></div>
Code: Select all
<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
<br clear="all" />
Code: Select all
<div><div class="content">
<input class="btnlite" type="button" value="Show {L_FORUM} {L_STATISTICS}" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide {L_FORUM} {L_STATISTICS}'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show {L_FORUM} {L_STATISTICS}'; }" />
</div><div class="quotecontent"><div style="display: none;">
Code: Select all
<td class="row1" width="100%" valign="middle"><p class="genmed">{TOTAL_POSTS} | {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER}</p></td>
</tr>
</table>
Code: Select all
</div></div></div>
[hsimg]http://www.djsimg.com/images/92306507_0 ... footer.png[/hsimg]
[hsimg]http://www.djsimg.com/images/53579649_0 ... footer.png[/hsimg]