<?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; HTML</title>
	<atom:link href="http://www.lotushints.com/tag/html/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>@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>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>
