2012年3月18日 星期日

Interactive Banner with auto-rotating thumbnails

Recently, I have to develop an interactive banner with rotating thumbnails by using HTML and javascript on a public web-site. After doing some researches and learning from the Internet resources, let me  consolidate the main points here to share with you. Hope this sharing could help to reduce your time if you also have to develop relevant web components.

HTML preparation

Assume that there are 3 thumbnails beside the main interactive banner, then you have to prepare the HTML codes for the relevant layout first.

Step 1 - Layout preparation:
<!-- Start of Banner Template -->
<body>
<table align="center" border="0" cellspacing="0" cellpadding="0" height="162"> <!-- This setting will eliminate the space line between the main banner and thumbnails column -->
    <tr>
        <td>
            <a id="adBannerLink" href="" target=""> <img src="" name="adBanner" border="0" alt="Advertising Banner"  width="576" height="162"></img></a>
        </td>
        <td>
            <!-- Table with width 105 is larger than enough which aims to make the align left and align right effect -->
            <table cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse;" width="105">
                <tr id="tr_thumbnail_0" style="display: block; " height="54" align="right">
                    <td><a id="a_thumbnail_0" href="#" onclick="javascript:change_on_click(0)">
                    <img id="img_thumbnail_0" border="0" src="" height="54" /></a></td> <!-- In IE9, table layout will be affected by whitespace between HTML elements (e.g. "</img></a></td>" cannot have whitespace in-between ) -->
                </tr>
                <tr id="tr_thumbnail_1" style="display: block; " height="54" align="left">
                    <td><a id="a_thumbnail_1" href="#" onclick="javascript:change_on_click(1)">
                    <img id="img_thumbnail_1" border="0" src="" height="54"></img></a></td>
                </tr>
                <tr id="tr_thumbnail_2" style="display: block; " height="54" align="right"><td>
                <a id="a_thumbnail_2" href="#" onclick="javascript:change_on_click(2)">
                    <img id="img_thumbnail_2" border="0" src="" height="54"></img>
                </a></td></tr>
            </table>
        </td>
    </tr>
</table>
</body>
<!-- End of Banner Template -->

Just like the following under Notepad++:

Step 2 - call relevant javascripts  at the end for performing the effects:
<script type="text/javascript">
    window.onload = order_rotate;
</script>

Just like the following under Notepad++:

Step 3 - The final preparation for the HTML part would be finished after enclosing the codes in step 1 and step 2 into a comprehensive HTML contents:



javascript preparation

2012年3月16日 星期五

Domain Selections

While trying to think of a suitable and not being used domain name for this blog to share and communicate about  I.T. relevant information and knowledge, you guess what? Many and many domain names have been used already. Among those tried, allowed and rejected I.T. relevant domain names, let's take a look as below:




Non-used domain:

  1. hashcollect
  2. hashcollections
  3. tcollect
  4. hashitcollection
  5. hashtechcollection
  6. hashtechcollections
  7. ihashtech
  8. itechcollections
  9. vision-collect
  10. visioncollect
  11. itech-vision
  12. itech-collect
  13. vtech-collect
  14. tech.collection
 

Used Domain

  1. hashtech
  2. hashit
  3. hashcollection
  4. techhash
  5. techcollect
  6. techcollection
  7. techcollections
  8. ittech
  9. techshare
  10. techshares
  11. collectiontech
  12. hasht
  13. hashtable
  14. ithash
  15. hashit
  16. itcollect
  17. itdesign
  18. techdesign