browse by category or date

After frustated unable to get my source codes displayed smaller, I decided to play around with CSS’ font-size for our amusement.

font-familyfont-sizeTarget
Testing Font
Possible value:
Verdana
Arial
Helvetica
Sans-Serif
.. any font installed on your system
Possible values:
pixel, example: 10px 8px
point, example: 8pt
old-school HTML, example: 1 2 3 … 8
ems, example: 0.8em 1em
 

Done using Javascript:

<script language="javascript">

function UpdateFont()
{
    var objTarget = document.getElementById('divtarget'); // a div
    var objSourceFont = document.getElementById('txbFont'); // a textbox
    var objSourceSize = document.getElementById('txbSize'); // a textbox
    if (objTarget != null && objSourceFont != null && objSourceSize != null)
   {
       objTarget.style.fontSize = objSourceSize.value;
       objTarget.style.fontFamily = objSourceFont.value;
   }
}

  </script>

 

Resources:
W3C Standard
W3School Tutorial
 

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant:

During my university days, I learned C/C++, C#, Java, and Assembly language. During my Industrial Attachment I involved a lot with Java projects. On my final year I also using Java. But on my first job I did VB.NET. I also had been involved in a project using Coldfusion for quite sometime. Personally I prefer to use C# to solve my daily computing problem. But when you need to dig the windows deeper, you need to use the native C++ to do that.

 . 

On other platform I have been meddling with Linux, having fun with Bash scripts, playing around with Perl. But unfortunately I did not even use TCL/TK at all.

 . 

When I was wowed by Rails, there’s a small part of me that wants to learn Ruby. So I googled around, lo and behold … I found the Best Guidebook In The World.

 . 

Quick … run ….

 . 

Ruby .. here I come …

 . 

hey wait … you have not tell us how to learn a new programming language ….!!!

 . 

oh right .. well basically to start you need to find something similar to the Best Guidebook In The World, download the necessary tookit, practice everyday, create something useful for yourself and the community, and keep believing that you read this posting because of your destiny =).

 . 

Oh man … I regret above paragraph, I mean … unrelated Title and Content should classify as a Prank right?

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

To celebrate April’s Fools Day, I decided to create yet another Quote of the Day :-). The additional feature is a link to the Wikipedia article of the person quoted will be included. You also make it reload different quote every specified time. And it no longer forces you to link back to my Website. But I will be really grateful if you could link back to my blog 🙂

Features
Link to biography/article of the author at Wikipedia.

Auto refresh. You can change how many minutes passed before the quotes is repaced with a new one.

Do you have feature-request?
Known Bugs
The CSS is broken when displayed on IE. has something to do with the DOM.

Have you found another bug?
<p style="color:#FF34FF; background-color:#EEEEEE">
<script langugage="javascript" type="text/javascript"> /* Quote of The Day user Guide: qotd_style, a string value for CSS of the QOTD. Default: no CSS example: qotd_style ="color:#FF34FF"; reloadTime, an integer value to regulate how many minutes before the QOTD is refreshed. Default: not refreshed. example: reloadTime = 5; //QOTD will be refreshed every 5 minutes. isUsingWikipedia, a boolean value to indicate whether a link to Wikipedia.org's related article will be included. Default: true. example: isUsingWikipedia = false; //no link to wikipedia.org isItalic, a boolean value to indicate whether the quotation is diplayed in italics. Default: false */ var reloadTime = 1; var isItalic = true; var qotd_style = "color:#FF34FF; background-color:#EEEEEE"; </script>

<script language="javascript" type="text/javascript" src="http://sodeve.net/qotd2/qotd.js" ></script><h5><a href="http://sodeve.net/quotes/">Sodeve's QOTD</a></h5>
</p>

If you have any problem installing the script in your website, feel free to drop a comment.

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

Possibly relevant: