<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 13:51:39 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) YUI maximum length for textarea (with counter) - flashpro</title>
      <link>https://snipplr.com/view/10268/yui-maximum-length-for-textarea-with-counter</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 04 Dec 2008 15:53:49 UTC</pubDate>
      <guid>https://snipplr.com/view/10268/yui-maximum-length-for-textarea-with-counter</guid>
    </item>
    <item>
      <title>(JavaScript) accordion with YUI javascript library - flashpro</title>
      <link>https://snipplr.com/view/5233/accordion-with-yui-javascript-library</link>
      <description>&lt;p&gt;For this snippet you need the files: yahoo-dom-event.js and animation-min.js from the Yahoo User Interface Library (version 2.4.1).&#13;
&#13;
Code&#13;
To use this snippet add a class "accordion" to a defenition list.&#13;
The "DT" will be converted to the clickable headers. The "DD" will be used for the accordion item content. Add a class "open" to an "DD" element which should be open on startup.&#13;
&#13;
Call the main function by putting the code below in a initPage function:&#13;
&#13;
YAHOO.lutsr.accordion.init(true,10,true);&#13;
&#13;
The first parameter sets the animation on/off (default = true), the second represents the ammount of frames the animation should take (default = 10), the last defines if there could be more than one item open at once (default = true).&lt;/p&gt;</description>
      <pubDate>Thu, 28 Feb 2008 07:17:04 UTC</pubDate>
      <guid>https://snipplr.com/view/5233/accordion-with-yui-javascript-library</guid>
    </item>
    <item>
      <title>(JavaScript) toggle / showhide with YUI javascript library - flashpro</title>
      <link>https://snipplr.com/view/4552/toggle--showhide-with-yui-javascript-library</link>
      <description>&lt;p&gt;For this snippet you need the files: yahoo-dom-event.js and animation-min.js from the Yahoo User Interface Library (version 2.4.1).&#13;
&#13;
To use this snippet add a class "toggle" to a link which should toggle the effect. To this link add a rel attribute. This attribute contains: id of object to toggle, animation type, animation duration.&#13;
&#13;
Toggle element #1&#13;
&#13;
This will toggle the div with id "example1", the effect used will be "fade" and it will take "20" frames.&lt;/p&gt;</description>
      <pubDate>Mon, 14 Jan 2008 02:49:09 UTC</pubDate>
      <guid>https://snipplr.com/view/4552/toggle--showhide-with-yui-javascript-library</guid>
    </item>
  </channel>
</rss>
