<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lotushints &#187; Web</title>
	<atom:link href="http://www.lotushints.com/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lotushints.com</link>
	<description>Lotus Notes tips &#38; tricks you always hoped you will not need</description>
	<lastBuildDate>Wed, 14 Jul 2010 06:00:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Microsoft WebMatrix</title>
		<link>http://www.lotushints.com/2010/07/microsoft-webmatrix/</link>
		<comments>http://www.lotushints.com/2010/07/microsoft-webmatrix/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 06:00:04 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[IIS 7.5]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Webmatrix]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=514</guid>
		<description><![CDATA[Last week I got notification of new Microsoft product release. Intrigued by some screenshots I decided to download and install Webmatrix. For those that cba to go to official site, Webmatrix is a combo of upgraded Visual studio WebDeveloper, IIS 7.5 express and MSDE. What is a big plus is that it knows kung-fu&#8230; Not [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I got notification of new Microsoft product release. Intrigued by some screenshots I decided to download and install <a href="http://www.microsoft.com/web/webmatrix/">Webmatrix</a>. For those that cba to go to official site, Webmatrix is a combo of upgraded Visual studio WebDeveloper, IIS 7.5 express and MSDE. What is a big plus is that it knows kung-fu&#8230; Not really. But it knows PHP as well, which is nice.</p>
<p><span id="more-514"></span></p>
<p>As far as UI goes, it is a bit awkward. Much like Office one. Also, it is not intuitive how to create a web site. I found Emtpy web site under Site from template option. However, this is just a small bump up the road. The fact that there are so many usable features like site report and easy database management and possibility of importing projects like WordPress and Drupal just proves that this is a serious start-up product. And on top of it it is free (yes, like beer).</p>
<p>Anyway&#8230; more info can be located on their <a href="http://www.microsoft.com/web/webmatrix/">official website</a>. I suggest you give it a go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2010/07/microsoft-webmatrix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery, AJAX and IE</title>
		<link>http://www.lotushints.com/2009/10/jquery-ajax-and-ie/</link>
		<comments>http://www.lotushints.com/2009/10/jquery-ajax-and-ie/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 07:00:30 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[$.get]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=449</guid>
		<description><![CDATA[On our FlipIT service web page, we experienced an interesting problem. There is a &#8220;Did you know&#8221; (DYK) section that refreshes upon clicking the link. Behind all that is an AJAX created with JQuery $.get method. All normal thus far. Until IE steps into the picture. I don&#8217;t know if the same behaviour is in [...]]]></description>
			<content:encoded><![CDATA[<p>On our <a href="http://www.flipit.si" target="_blank">FlipIT service web page</a>, we experienced an interesting problem. There is a &#8220;Did you know&#8221; (DYK) section that refreshes upon clicking the link. Behind all that is an AJAX created with <a href="http://www.jquery.com" target="_blank">JQuery</a> <strong>$.get</strong> method. All normal thus far.</p>
<p>Until IE steps into the picture. I don&#8217;t know if the same behaviour is in IE 8 as well, but IE 7 definitely has issues with AJAX requests. If URL of request doesn&#8217;t change, IE caches the result and passes it back to you. This wouldn&#8217;t be a problem if you would actually expect to see the same result each and every time. However, in our case, where it is desired that DYK section is not always the same, this is kind of annoying.</p>
<p>To sort out our issues, we just added a random number to the request. This number is changed to new random value each and every time the request is processed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2009/10/jquery-ajax-and-ie/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>@Charset CSS command</title>
		<link>http://www.lotushints.com/2009/10/charset-css-command/</link>
		<comments>http://www.lotushints.com/2009/10/charset-css-command/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 07:00:40 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=437</guid>
		<description><![CDATA[Since I ported my notebook to Linux Mint, I started using Eclipse for web page development. Apparently nowadays, it is common practice to add @CHARSET &#8220;UTF-8&#8243;; to the top of your css files. Also, Eclipse does that by default, which is nice. However, while presenting my newest work to a customer, reality hit me hard. [...]]]></description>
			<content:encoded><![CDATA[<p>Since I ported my notebook to Linux Mint, I started using Eclipse for web page development. Apparently nowadays, it is common practice to add <strong>@CHARSET &#8220;UTF-8&#8243;;</strong> to the top of your css files. Also, Eclipse does that by default, which is nice.</p>
<p><span id="more-437"></span></p>
<p>However, while presenting my newest work to a customer, reality hit me hard. The page displayed without styling in Safari (4.0.3 531.9.1) and Chrome (3.0.195.21) browsers. I went to investigate. After some time, I removed <strong>@Charset </strong>command from all CSS files. That fixed the problem but still made me look weird.</p>
<p>So until further ado, I&#8217;ll avoid using <strong>@Charset</strong> command in CSS. I advise you do the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2009/10/charset-css-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Designing the web for accesibility</title>
		<link>http://www.lotushints.com/2009/09/designing-the-web-for-accesibility/</link>
		<comments>http://www.lotushints.com/2009/09/designing-the-web-for-accesibility/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 07:00:58 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=414</guid>
		<description><![CDATA[I have been meaning to write this article for some time now. Never got around to write it. So&#8230; what am I on about? Well, remember all those beautiful web sites with latest design thing implemented. Enable Zoom Text Only in your Firefox browser (View-&#62;Zoom-&#62;Zoom Text Only) and zoom in or set larger fonts in [...]]]></description>
			<content:encoded><![CDATA[<p>I have been meaning to write this article for some time now. Never got around to write it. So&#8230; what am I on about? Well, remember all those beautiful web sites with latest design thing implemented. Enable Zoom Text Only in your Firefox browser (View-&gt;Zoom-&gt;Zoom Text Only) and zoom in or set larger fonts in windows, restart your machine, open your browser and check it out. Yes, that is what I am on about.</p>
<p><span id="more-414"></span></p>
<p>In recent years, I had pleasure (yes, let&#8217;s call it pleasure) of working with several web designers. I also had pleasure of observing the latest stuff made by web designers on the net. I am yet to find a single designer that thought about people with disabilities. And I am not talking about heavy disability either. Not every one of us is young with perfect sight. Many people have problems with high resolutions, and even distinguishing colours. And we are not that old as well. Take WordPress theme I am using atm. Enhance fonts. You see what happened with tabs and search box? Yeah. But it looks nice in normal size. Right?</p>
<p>The funny thing though. I always pointed out the problem to designers. Nobody cared, but insisted the design stays as is. And I don&#8217;t even want to start explaining how much clutter do you need to add to HTML code to make fields rounded and expendable. Sure, you could do it using Javascript and perhaps this is the way to go anyway. But enough of that.</p>
<p>It is more than obvious that some don&#8217;t get the importance of great looking float-able, accessible and useful designs. And that is not OK. And it is not only a design issue as well. There is about 10% of people with some sort of optical problems. So 10% of all users will, in worst case, see your site distorted, or find it unusable. Excellent. Specially, if those are your customers.</p>
<p>Building web page as designer drew it is just not enough. Web sites that don&#8217;t scale are behind an era we are living now and in best case annoying to people with sight issues. So, use techniques that are available nowadays (and when CSS3 finally gets support it deserves, we all will be happy hypos) and don&#8217;t forget that you don&#8217;t represent everyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2009/09/designing-the-web-for-accesibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flip IT services</title>
		<link>http://www.lotushints.com/2009/08/flip-it-services/</link>
		<comments>http://www.lotushints.com/2009/08/flip-it-services/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 07:42:58 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[flip it]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=417</guid>
		<description><![CDATA[Helped to create this web site (and some other stuff, but let&#8217;s focus on web site at the moment). The site is in Slovenian and it presents an awesome idea to virtualize the desktop to maximize security and maintenance for minimal costs. Writing HTML, CSS and JS for all those rounded buttons was fiddly, not [...]]]></description>
			<content:encoded><![CDATA[<p>Helped to create <a href="http://www.flipit.si/" target="_blank">this</a> web site (and some other stuff, but let&#8217;s focus on web site at the moment). The site is in Slovenian and it presents an awesome idea to virtualize the desktop to maximize security and maintenance for minimal costs.</p>
<p>Writing HTML, CSS and JS for all those rounded buttons was fiddly, not to mention time consuming. The answer from designer: &#8220;You don&#8217;t need the design to float, scale, etc.&#8221;</p>
<p>Right. I will be covering that methodology (or wrongness of it) in one of my next posts. I just hope CSS3 support grows by 1000% in next week. Yeah, wishful thinking.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2009/08/flip-it-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Absolute positioned objects hiding behind flash animation</title>
		<link>http://www.lotushints.com/2009/07/absolute-positioned-objects-hiding-behind-flash-animation/</link>
		<comments>http://www.lotushints.com/2009/07/absolute-positioned-objects-hiding-behind-flash-animation/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 06:00:45 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Best practices]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[absolute]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=383</guid>
		<description><![CDATA[Anyone dealing with HTML will or already has encountered an interesting behavior of embedded objects and absolute positioned objects. When embedded object (e.g. flash animation) is positioned over part or entire absolute positioned object, absolute position object is always displayed behind embedded one. What to do? A first thing that I always thought of was [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone dealing with HTML will or already has encountered an interesting behavior of embedded objects and absolute positioned objects. When embedded object (e.g. flash animation) is positioned over part or entire absolute positioned object, absolute position object is always displayed behind embedded one.</p>
<p><span id="more-383"></span></p>
<p><strong>What to do?</strong></p>
<p>A first thing that I always thought of was z-indexes. Only one problem there. Z-index doesn&#8217;t work  in Internet Explorer in this case. But how can it be solved?</p>
<p>There is an attribute you can set for embedded objects called <em>wmode</em>. If this attribute contains value of <em>transparent</em>, you will force embedded object to display behind the absolute positioned one.</p>
<p>Example:
<pre>
&lt;embed width="465" height="285"
type="application/x-shockwave-flash" src="myflashanimation.swf"
style="" name="movie_player" quality="high"
allowfullscreen="true" allowscriptaccess="always" flashvars=""
<strong>wmode="transparent"</strong> id="movie_player"/&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2009/07/absolute-positioned-objects-hiding-behind-flash-animation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Notes rendering engine</title>
		<link>http://www.lotushints.com/2009/06/notes-rendering-engine/</link>
		<comments>http://www.lotushints.com/2009/06/notes-rendering-engine/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 07:00:11 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[rendering]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=372</guid>
		<description><![CDATA[About a year hence, it was time to refresh web design of my company&#8217;s web site. We decided to stick to new and improved web page standards and thus separate style and scripts from content. All well, but one simple thing. Our CMS never forced it&#8217;s users to use HTML in their code. We always [...]]]></description>
			<content:encoded><![CDATA[<p>About a year hence, it was time to refresh web design of my company&#8217;s web site. We decided to stick to new and improved web page standards and thus separate style and scripts from content. All well, but one simple thing. Our CMS never forced it&#8217;s users to use HTML in their code. We always relied on Notes rendering engine to render Notes documents body contents to what should be displayed on the web.</p>
<p>Not a good idea. I don&#8217;t know, when was the last time, someone at IBM took a look at their rendering engine, but this just isn&#8217;t it. Unordered lists don&#8217;t close, leading to a total mess of your layout. On numerous occasions, a div tag marked as pass through text got put to the bottom of contents and not at the spot where it was in the body field, leading to some more confusion. And what killed it for me was a sudden br tag flood in the HTML for no apparent reason. All 6 of them were gone when text was put in the same line as pass through text and appeared right after I put the text back in new line. And all of this appeared randomly, which amused me for a while.</p>
<p>So, I guess it is no wonder, why there are so many CMS application in Notes, where content needs to be entered as HTML. However, in my experience, you as a developer or admin of such system can be glad if a content editor knows how to use Lotus Notes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2009/06/notes-rendering-engine/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Custom web forms &#8211; Part 3: User input form</title>
		<link>http://www.lotushints.com/2009/04/custom-web-forms-part-3-user-input-form/</link>
		<comments>http://www.lotushints.com/2009/04/custom-web-forms-part-3-user-input-form/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 08:00:25 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Basic]]></category>
		<category><![CDATA[Custom forms]]></category>
		<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[form]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=297</guid>
		<description><![CDATA[In parts 1 and 2, we looked at exporting forms to DXL and then importing them back. In this short article,we will look at a simple form that will allow users to assemble their own web form. So what do I need? First, we need to assmble list of fields user needs to add. Each [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.lotushints.com/category/custom-forms/">parts 1 and 2</a>, we looked at exporting forms to DXL and then importing them back. In this short article,we will look at a simple form that will allow users to assemble their own web form.<br />
<span id="more-297"></span><br />
<strong>So what do I need?</strong></p>
<p>First, we need to assmble list of fields user needs to add. Each field usually has a label that describes to a user what information should he enter. Then, some fields are plain text, rich text, checkboxes, etc. Also, fields can have a default value.</p>
<p>Keeping that in mind, a basic web form usually has a field named $$Return, that specifies what happens on document submit. Also, it would be nice, if we allowed our users to enter name of the form and some short description that will be presented in web form.</p>
<p><strong>The implementation</strong></p>
<p>For basic forms, we don&#8217;t need anything fancy. No rich text for short description, probably only simplest field formats (plain text, rich text, radiobutton and checkbox) and probably not more than 10 fields. Since this example is here just to prove a case, I will limit it to 5 different fields.</p>
<p>So, our list of fields now looks like this:</p>
<ul>
<li>form name</li>
<li>form description</li>
<li>return page</li>
<li>5x field that will hold field name</li>
<li>5x field that will be used for field type</li>
<li>5x field with value (in case of radiobutton and checkbox)</li>
<li>5x field with default value</li>
<li>5x field with label</li>
</ul>
<p>The &#8220;finished&#8221; form is displayed in picture below.</p>
<div id="attachment_299" class="wp-caption aligncenter" style="width: 300px"><img class="size-medium wp-image-299" title="myclientform" src="http://www.lotushints.com/wp-content/uploads/2009/04/myclientform-300x158.png" alt="Filled user's form" width="300" height="158" /><p class="wp-caption-text">Filled user&#39;s form</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2009/04/custom-web-forms-part-3-user-input-form/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Microsoft Expressions SuperView beta</title>
		<link>http://www.lotushints.com/2009/04/microsoft-expressions-superview-beta/</link>
		<comments>http://www.lotushints.com/2009/04/microsoft-expressions-superview-beta/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 08:00:47 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Best practices]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[browser wars]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[superview]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=293</guid>
		<description><![CDATA[Ok. So this post is totally out of line. Be sure that it wouldn&#8217;t found it&#8217;s space up here if it wasn&#8217;t for it&#8217;s all around usability. Microsoft Expressions SuperView help you see how your website would behave in different browsers. You can read Expressions SuperView blog for further details or download and try it [...]]]></description>
			<content:encoded><![CDATA[<p>Ok. So this post is totally out of line. Be sure that it wouldn&#8217;t found it&#8217;s space up here if it wasn&#8217;t for it&#8217;s all around usability. Microsoft Expressions SuperView help you see how your website would behave in different browsers. You can read <a href="http://blogs.msdn.com/xweb/archive/2009/03/18/Microsoft-Expression-Web-SuperPreview-for-Windows-Internet-Explorer.aspx" target="_blank">Expressions SuperView blog</a> for further details or <a href="http://download.microsoft.com/download/5/6/8/568F0D28-0434-4794-B7FC-FB293BCC98FB/SuperPreview_Trial_en.exe" target="_blank">download and try it out</a>. Beware, it is still in beta mode.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2009/04/microsoft-expressions-superview-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Banner animator v1.1</title>
		<link>http://www.lotushints.com/2009/03/banner-animator-v11/</link>
		<comments>http://www.lotushints.com/2009/03/banner-animator-v11/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 08:00:30 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Basic]]></category>
		<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[animator]]></category>
		<category><![CDATA[banner]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=276</guid>
		<description><![CDATA[In order to display multiple banners in single spot (and to keep web site from becoming tacky), you will need some sort of client side script that will display first one banner, then the second one etc. This is called banner animator (or even ad animator). In this case, the functionality is written in JavaScript, [...]]]></description>
			<content:encoded><![CDATA[<p>In order to display multiple banners in single spot (and to keep web site from becoming tacky), you will need some sort of client side script that will display first one banner, then the second one etc. This is called banner animator (or even ad animator). In this case, the functionality is written in JavaScript, with some help of HTML (for element positioning) and CSS (for element appearance).<br />
<span id="more-276"></span><br />
<strong>What does that have to do with Lotus Notes?</strong></p>
<p>Absolutely nothing. The only connection to Lotus Notes is, when you integrate this functionality into your database. It is a simple and trivial solution. I needed to create a form that will represent one single banner. This form contains name, URL, image, sort order etc. Look-up view for obtaining sorted banner list was created and some web forms that are already in &#8220;production&#8221; had to be altered, for loading of JavaScript class etc.</p>
<p><strong>Prerequisites</strong></p>
<p>This functionality depends heavily on <a href="http://jquery.com/">jQuery library</a>. It can be obtained <a href="http://docs.jquery.com/Downloading_jQuery">here</a>. I recommend minified version if you plan on hosting it yourself or, you can use <a href="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js">Google Code link</a> to link it from Google.</p>
<p>Next you need to obtain the <em>adPlayer </em>library. It is located <a href="http://dl.getdropbox.com/u/599331/jslibs/adPlayer.js">here</a>. I would ask you to not link the library directly from this link, but download it to your server and link it from there.</p>
<p><strong>Getting started</strong></p>
<p>In order to implement this application, you will first need to make a small HTML adjustment in the place where you want banner animator to be implemented.</p>
<pre>&lt;ul id="adPlayer"&gt;
    &lt;li&gt;&lt;a href=""&gt;&lt;img src="images/ad1.jpg" /&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=""&gt;&lt;img src="images/ad2.jpg" /&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=""&gt;&lt;img src="images/ad3.jpg" /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div id="adPlayerNav"&gt;&lt;/div&gt;</pre>
<p>Obviously you should insert link of your desire. The same goes for image <em>src </em>and <em>alt</em> parameters. Also, number of <em>li</em> elements can vary.</p>
<p>Next, at the bottom of the page (where your JS libraries are loaded and on load events are set), you need to load both .js files  (<em>jQuery </em>and <em>AdPlayer</em>) , if you do not already have them. Next, add following (or if you already have onload event loader, just call loadPlayer() function).</p>
<pre>&lt;script type="text/javascript" language="javascript"&gt;
    $(document).ready(function() {
        loadPlayer();
    });
&lt;/script&gt;</pre>
<p><strong>Now add some style<br />
</strong></p>
<p>It is necessary to add styling to content thus far. CSS excerpt below will give you some idea as to how you can style things. Beware that #adPlayer height property must be set to height of a banner space. Also, some tweaking to .js file will have to be done, but nothing major (this will definitely be changed in future releases).</p>
<pre>/* layout */
#adPlayer { list-style: none; height: 220px; margin-left: 0;
margin-bottom: 0; overflow: hidden; padding: 0; }
#adPlayer li { margin: 0; padding: 0; }
#adPlayerNav { position: relative; top: -1em; right: 1em;
text-align: right; }
#adPlayerNav ul { list-style: none; margin: 0; padding: 0; }
#adPlayerNav li { display: inline; margin: 0 0 0 0.1em;
padding: 0; }
#adPlayerNav li.adPlay, #adPlayerNav li.adPause {
margin-left: 1em; }
#adPlayerNav li a { cursor: pointer; padding: 0 0.5em; }

/* typography */
#adPlayerNav li { font-size: 1.2em; }

/* color */
#adPlayerNav li { border: solid 1px rgb(213, 213, 217); }
#adPlayerNav li a { background-color: white; padding: 0.5em; }</pre>
<p>You now have fully functional banner animator.</p>
<p><strong>Optimization</strong></p>
<p>Loading 3+ 50K+ images in the middle of the page can never be a good thing. Thus, <em>adPlayer</em> library has a <strong>dynamic mode</strong> that can be used. This mode loads images after the page is loaded, which is a good thing. However, you cannot leave your banner space empty until then. A compromise solution is to load first banner in-line and all others after the document is loaded. Your HTML file must now look somewhat like this:</p>
<pre>...
&lt;ul id="adPlayer"&gt;
    &lt;li&gt;&lt;a href=""&gt;&lt;img src="images/ad1.jpg" /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div id="adPlayerNav"&gt;&lt;/div&gt;
...
&lt;script type="text/javascript" language="javascript"&gt;
    $(document).ready(function() {
        loadPlayer( true );
        adplayer.add ("", "images/ad2.jpg", "");
        adplayer.add ("", "images/ad3.jpg", "");
        adplayer.generatePlayer();
    });
&lt;/script&gt;</pre>
<p>Loading <em>loadPlayer</em> method with <em>true </em>as parameter value will enable <strong>dynamic mode</strong>. Now you can add banners in desired sort order. First parameter is <em>link</em>, second image <em>src </em>and third image <em>alt</em>. After you are done, just call <em>generatePlayer</em> method.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2009/03/banner-animator-v11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
