Collapsible elements ("spoilers"): a relatively new alternative to harakatu

Not long ago Finom posted blogoshpere "the local storage, as with the object — Continuation" and it used the new abrahamovich markup: the <spoiler>...</spoiler>. Turns out, this element already is documented in help HTML tags (at the top right corner above the field edit blogoshpere) without hindrance and can be used on Habrahabr (though not everywhere: in the comments does not work).

Used this new product about here's how:

the
<spoiler title="the header of the collapsible item">
The contents of the collapsible element.

Concealment may be not only text, but other elements of hypertext such as images and hyperlinks:

<a href="http://danbooru.donmai.us/post/show/951110/">
<img src="http://i46.tinypic.com/30axitk.jpg" alt="[V for Vendetta]" title="" border=0></a>
</spoiler>

The result of this example looks as follows:
Header of the collapsible element
the Contents of a collapsible element.

Concealment may be not only text, but other elements of hypertext such as images and hyperlinks:

[V for Vendetta]

The title maknuti mysoju and rolled the contents immediately unfold. The following squ mysou on the header will bring the content back to its minimized state.

As you can see, this is a valuable alternative to harakatu: now you can hide not only the tail blogozapisi, but also part of its middle, and to expand this hidden piece there is no need to navigate to another page and spend time traffic for download together with reviews.

speaking of fabricate. Limit besharati blogozapisi was increased: it used to be possible without Harakat put blogoshpere not more than 600 characters in length, now not more than 1000. And rightly so, because the previous box was too Procrustean.

Useful, useful changes for the better.

Important appendage: in RSS is not, of course, no JavaScript, so all spoilers are displayed in expanded form, and their titles simply become a text of high fat content on a new line. Keep this in mind.
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

Why I left Google Zurich

2000 3000 icons ready — become a sponsor! (the table of orders)

New web-interface for statistics and listen to the calls for IP PBX Asterisk