Monday, December 1, 2008

Embedding video

Some very good websites to read:

http://www.jeroenwijering.com/?item=FLV_Video_Compression
http://stephenjungels.com/jungels.net/articles/flash-video-howto.html


<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','320','240','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=video.flv&autostart=false');
s1.write('preview');
</script>

Saturday, March 8, 2008

Thursday, January 3, 2008

Cross-browser compatibility

After designing my blog in Mozilla, I realized that it doesn't look good in Internet Explorer. What I can do is to include the following code in my head section.

<!--[if IE]>
<style type='text/css'>
#main-wrapper{
margin-left:20px;
}
#sidebar-wrapperR{
margin-right:20px;
}
#sidebar-wrapperL{
;
}
</style>
<![endif]-->

You can google with the search phrase "Cross-browser compatibility" for more help. One such good article can be found here.
A good article can be found here.

Monday, December 31, 2007

Adding Amazon Product Link - Image Only

Instead of putting the following product preview HTML code/script after the content and before <body> as suggested in Amazon website, you can insert it in the last blogger page element containing the product link code. That is, you may have a few Amazon product link page elements in your page. You only need to add the script in the last page element.