Newest Webmonkey ArticlesNewest articles in the codelibrary Webmonkey namespacehttp://www.webmonkey.com/rss/codelibraryFri, 14 Nov 2008 19:42:55 -0500 (EST)http://www.webmonkey.com/codelibrary/YUI_CalendarCodeLibrary:YUI Calendarhttp://www.webmonkey.com/codelibrary/YUI_CalendarFri, 14 Nov 2008 19:42:55 -0500 (EST)<![CDATA[<p>This example code is part of our YUI JavaScript tutorial. It creates a calendar that you can add events to. </p><p><a href="http://www.webmonkey.com/tutorial/Create_Rich_Interfaces_With_the_YUI_Library" class="external text" title="http://www.webmonkey.com/tutorial/Create_Rich_Interfaces_With_the_YUI_Library" rel="nofollow">Follow along with the tutorial</a> to learn how to use it. </p><p><br /> </p> <pre> &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head&gt; &lt;title&gt;YUI: Calendar example&lt;/title&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://yui.yahooapis.com/combo?2.6.0/build/fonts/fonts-min.css&amp;2.6.0/build/calendar/assets/skins/sam/calendar.css&amp;2.6.0/build/carousel/assets/skins/sam/carousel.css&quot;&gt; &lt;script type=&quot;text/javascript&quot; src=&quot;http://yui.yahooapis.com/combo?2.6.0/build/yahoo-dom-event/yahoo-dom-event.js&amp;2.6.0/build/calendar/calendar-min.js&amp;2.6.0/build/element/element-beta-min.js&amp;2.6.0/build/carousel/carousel-beta-min.js&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/javascript&quot;&gt; function addDateText(type,args,obj) { var datedata = args[0][0]; var year = datedata[0]; var month = datedata[1]; var day = datedata[2]; document.forms[0].datefield.value = month+'/'+day+'/'+year; obj.hide(); } function init_calendar() { var cal = new YAHOO.widget.Calendar(&quot;cal&quot;, { title:&quot;Choose a date:&quot;, close:true } ); cal.render(); cal.hide(); // Show Calendar when text field gets focus YAHOO.util.Event.addListener(&quot;datefield&quot;, &quot;focus&quot;, cal.show, cal, true); // Save calendar value inside text field cal.selectEvent.subscribe(addDateText, cal, true); } YAHOO.util.Event.onDOMReady(init_calendar); &lt;/script&gt; &lt;/head&gt; &lt;body class=&quot;yui-skin-sam&quot;&gt; &lt;form&gt; Date: &lt;input type=&quot;text&quot; id=&quot;datefield&quot; /&gt; &lt;div id=&quot;cal&quot;&gt;&lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </pre> ]]>http://www.webmonkey.com/codelibrary/YUI_CarouselCodeLibrary:YUI Carouselhttp://www.webmonkey.com/codelibrary/YUI_CarouselFri, 14 Nov 2008 19:42:55 -0500 (EST)<![CDATA[<p>This is an example file used in our YUI JavaScript Library tutorial. It produces a window with rotating content, as seen on Yahoo.com's current frontdoor. </p><p><br /> </p> <pre> &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head&gt; &lt;title&gt;YUI: Carousel example&lt;/title&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://yui.yahooapis.com/combo?2.6.0/build/fonts/fonts-min.css&amp;2.6.0/build/calendar/assets/skins/sam/calendar.css&amp;2.6.0/build/carousel/assets/skins/sam/carousel.css&quot;&gt; &lt;script type=&quot;text/javascript&quot; src=&quot;http://yui.yahooapis.com/combo?2.6.0/build/yahoo-dom-event/yahoo-dom-event.js&amp;2.6.0/build/calendar/calendar-min.js&amp;2.6.0/build/element/element-beta-min.js&amp;2.6.0/build/carousel/carousel-beta-min.js&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/javascript&quot;&gt; function init_carousel() { var carousel = new YAHOO.widget.Carousel(&quot;carouselcontainer&quot;, { numVisible: 1 }); // Create the carousel object carousel.render(); // Let YUI set up its styles carousel.show(); // Finally, show the carousel } YAHOO.util.Event.onDOMReady(init_carousel); &lt;/script&gt; &lt;style&gt; ol#carousel li div { width: 400px; padding: 50px 0; font-size: 40px; } &lt;/style&gt; &lt;/head&gt; &lt;body class=&quot;yui-skin-sam&quot;&gt; &lt;div id=&quot;carouselcontainer&quot;&gt; &lt;ol id=&quot;carousel&quot;&gt; &lt;li&gt; &lt;div&gt;Monkey&lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div&gt;Likes&lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div&gt;Riding&lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div&gt;The&lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div&gt;Carousel&lt;/div&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </pre> ]]>http://www.webmonkey.com/codelibrary/MercedesCodeLibrary:Mercedeshttp://www.webmonkey.com/codelibrary/MercedesFri, 14 Nov 2008 19:42:55 -0500 (EST)<![CDATA[<a name="Introduction"></a><h2> <span class="mw-headline"> Introduction </span></h2> <p>This 1992 300E Mercedes is excellent condition. The color of the Mercedes is champagne with tan interior. The interior also has wood grain. The windows are tinted. </p>]]>