Sunday, March 22, 2009

Let's Try to Create Slide Show Tab View Widget

Slide Show Tab View Widget




tabview Have you ever visited http://kompas.com? One of the most famous newspaper website in Indonesia...
At the left of the site, you can see a tab menu which is usually called “Tab View”.
Why is it called Tab Menu? Because when the tab is clicked, it will move the menu content (wanna prove, just click the tab). However, it is a little different from the normal tab menu. The tab menu usually shows the content of the menu in turn or what we usually call “Slide Show”. It takes a conclusion that menu has 2 functions; as a “Tab View” and “Slide Show”.

I was interested in that tab menu, tried to apply it in blogger template and it works. To see the sample of Slide Show Tab View Widget, please visit http://genx4shared.blogspot.com and pay attention to the left side of the top, there you can see the widget that is similar to the widget in kompas.com.

If you are interested in making Slide Show Tab View Widget, please follow the steps below.

# Step 1

  1. Log in into blogger with your ID
  2. Click Layout
  3. Click Edit HTML tab
  4. Click Download Full template. Please back up your template first
  5. Copy the code below, then paste it above ]]></b:skin>

    .indentmenu{
    font: bold 11px Arial;
    width: 100%; /*leave this value as is in most cases*/

    }

    .indentmenu ul{
    margin: 2px;
    padding: 0;
    float: left;
    /* width: 80%; width of menu*/
    background: transparent;
    }

    .indentmenu ul li{
    display: inline;
    }

    .indentmenu ul li a{
    float: left;
    margin: 2px;
    color: #000; /*text color*/
    padding: 5px 11px;
    text-decoration: none;
    border: 1px solid #ccc;
    }

    .indentmenu ul li a:hover{
    background:#ddd;
    }

    .indentmenu ul li a:visited{
    color: white;
    }

    .indentmenu ul li a.selected{
    color: white !important;
    padding-top: 6px; /*shift text down 1px*/
    padding-bottom: 4px;
    border: 1px solid #000000;
    background:#000000;
    }

    .tabcontentstyle{ /*style of tab content container*/
    border: 1px solid gray;
    width: 450px;
    margin-bottom: 1em;
    padding: 10px;
    }

    .tabcontent{
    display:none;
    }

    @media print {
    .tabcontent {
    display:block !important;
    }
    }


  6. Before continuing, please download this script , copy-paste it right above </head>
  7. Click SAVE TEMPLATE

The 1st Step is done.

Let’s continue to the 2nd Step

# Step 2
  1. Click Page Element tab
  2. Click Add Gadget

    AddGadget

  3. Choose HTML/JavaScript.

    HTML

  4. Copy-paste the code in available column:

    <div style="float:left;margin:0px 10px 0px 0px;padding:0px;height:350px;">

    <div id="pettabs" class="indentmenu">


    <ul>


    <li><a href="#" class="selected" rel="tab1">1</a></li>

    <li><a href="#" rel="tab2">2</a></li>


    <li><a href="#" rel="tab3">3</a></li>

    <li><a href="#" rel="tab4">4</a></li>

    </ul>


    <br style="clear: left"/>

    </div>

    <div style="width:240px;text-align:justify;padding: 5px; margin-bottom:1em">

    <div id="tab1" class="tabcontent">


    <a href="http://magazine-1.blogspot.com/2008/11/obama-will-change-bush-policy.html">

    <img border="0" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" alt="obamabush" width="240" src="http://lh3.ggpht.com/_pt7i0nbIOCY/SSS44BOiVbI/AAAAAAAAAZ8/JSAjyxXZVEc/obamabush_thumb%5B1%5D.png?imgmax=800" height="152" title="obamabush"/></a>

    <p><h3><a href="http://magazine-1.blogspot.com/2008/11/obama-will-change-bush-policy.html">Obama Will Change Busf Policy</a></h3></p>


    U.S. President Barack Obama will change several numbers of controversial policies by President George W. Bush, including the restriction of the parent embryo cell research [...]

    </div>

    <div id="tab2" class="tabcontent">

    <a href="http://magazine-1.blogspot.com/2008/11/beyonce-will-never-sell-her-wedding.html">

    <img border="0" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" alt="beyone" width="240" src="http://lh4.ggpht.com/_pt7i0nbIOCY/SSS47jWx8HI/AAAAAAAAAaE/wTj2qMO6dV8/beyone_thumb%5B1%5D.png?imgmax=800" height="152" title="beyone"/></a>


    <p><h3><a href="http://magazine-1.blogspot.com/2008/11/beyonce-will-never-sell-her-wedding.html">Beyone Will Never Sell Her Wedding Photo</a></h3></p>

    Beyonce said, she will never consider to sells her wedding photo with Jay-Z to a celebrity magazine that offering a large amount of money as rewards, even she wonder with the amount of money that offered to her [...]

    </div>

    <div id="tab3" class="tabcontent">


    <a href="http://magazine-1.blogspot.com/2008/11/guns-n-roses-will-back.html">

    <img border="0" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" alt="Guns N 'Roses" width="240" src="http://lh6.ggpht.com/_pt7i0nbIOCY/SSS5Gg8b_8I/AAAAAAAAAac/OdWejtZv8GI/gunNroses_thumb%5B1%5D.png?imgmax=800" height="152" title="Guns N 'Roses"/></a>

    <p><h3><a href="http://magazine-1.blogspot.com/2008/11/guns-n-roses-will-back.html">Guns N 'Roses Will Back</a></h3></p>

    After 15 years not releasing album, the group rock Guns N ' Roses will launch a new album in the United States on 23 November. The band's latest album is "The Spaghetti Incident", released in 1993 [...]

    </div>

    <div id="tab4" class="tabcontent">
    <a href="http://magazine-1.blogspot.com/2008/11/i-pod-can-make-your-ear-buzz.html">


    <img border="0" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" alt="ipod" width="240" src="http://lh6.ggpht.com/_pt7i0nbIOCY/SSS5KkL_ihI/AAAAAAAAAak/jwZPOux8pk4/earbuzz_thumb%5B1%5D.png?imgmax=800" height="152" title="ipod"/></a>


    <p><h3><a href="http://magazine-1.blogspot.com/2008/11/i-pod-can-make-your-ear-buzz.html">Ipod Can Make Your ear Buzz</a></h3></p>

    Music is one way to wake the spirit, to create happy life, but what happens if the music makes the ears buzz? of course, not the music that makes the ear 'buzzy',[...]

    </div>
    </div>


    <script type="text/javascript">

    var mypets=new ddtabcontent("pettabs")
    mypets.setpersist(true)
    mypets.setselectedClassTarget("link")
    mypets.init(2000)

    </script>


  5. Click SAVE TEMPLATE button.
  6. Finish and view you blog to see the result.

The code above is not absolute as I had written. You can modify it as your interest or suitable with your template.

Below is additional information that will ease you in modifying this code.

In the 1st step, there is a row of CSS code, that code can be modified so that it produces a beautiful row tab.

Take a look at the code below

<div style="float:left;margin:0px 10px 0px 0px;padding:0px;height:350px;">

<div id="pettabs" class="indentmenu">

<ul>

<li><a href="#" class="selected" rel="tab1">1</a></li>


<li><a href="#" rel="tab2">2</a></li>


<li><a href="#" rel="tab3">3</a></li>


<li><a href="#" rel="tab4">4</a></li>

</ul>

<br style="clear: left"/>


</div>


This code is a tab row with the tab row such as1, 2, 3, and 4. You can change with your favorite ones, such Recent Comments, Recent Post, Shoutbox or anything you want. To arrange the height of your widget, change height:350px with the value that you want, example; height:400px.

Please, Pay attention the code below too.

<div style="width: 240px; text-align: justify; padding: 5px; margin-bottom: 1em">


The code above is used to arrange the menu content and it can be changed as you want to, such as;

width:240px : it is used to arrange the width, change it with the value that you want, example; width:300px.

text-align:justify : it is used to arrange the writing, change it with the value that you want,

Example; text-align:left, text-align:right.

Also, Pay attention the code below too.

<script type="text/javascript">

var mypets=new ddtabcontent("pettabs")

mypets.setpersist(true)

mypets.setselectedClassTarget("link")

mypets.init(
2000)

</script>


To arrange the moving of image from one tab to other tab, change 2000 with the value that you want, example; 2100.

Code in “Slide Show Tab View Widget” contains with the Articles. Please change it with your own articles.

Original Script by: dynamic drive.
Modified by:
Genx4Shared

Let's try it now,,,

Happy Blogging

HeadLine News


facebook

New Blogger Template - Smells Like Facebook

Details : THEME NAME: Smells like Facebook THEME URI: http://www.nazieb.com/456/smells-like-facebook DESCRIPTION: The exact Facebook clone theme for Wordpress.Based on Facebook profile page. VERSION: 1.0.5 AUTHOR: Ainun Nazieb AUTHOR URI: http://nazieb.com/[...]
facebook

Netbook Advan Vanbook A1N70T [Alnect Komputer]

Netbook keluaran advan dengan mengusung performa dari prosesor Atom keluaran Intel berasitektur 45nm . Lebih hemat daya dalam penggunaan baterainya. Performa yang cukup baik ditunjukkan netbook ini. Dengan berat hanya 1,2Kg netbook ini cukup mudah dibawa kemanapun Anda menginginkannya.[...]
facebook

In Memoriam 50th of Michael Jackson (Jacko)

The King Of Pop Michael Jackson had passed away on 25th June, 2009 and the moment was shocking around the world. The death caused cardiac arrest at his home in Los Angeles. His death triggered an outpouring of grief around the world,[...]
facebook

Slider ala Zinmag Primus Template

Zinmag Primus is a professional and white elegant Blogger template. Theme Author: Jinsona Design Converted By: Falcon Hive (Installation and Customization),[...]
facebook

Slide Show Smooth Gallery Widget

Slide Show yang begitu keren dengan tampilan featured content dan image,,[...]
facebook

Try TO Costumize Facebook Layout

Sedikit tips buat sobat blogger,, yang mungkin pengen belajar jg gmna caranya utk ganti layout facebook yang kita punya,,, skrg ga usah khawatir,,, ganti dengan sesuka hati tampilan facebook kamu... warna merah... warna hijau.. cerah.. bahkan bosen dengan wallpapernya ganti aza.. [...]
unikz

Total Blog Posts & Comments Widget

Widget yg satu ini untuk menampilkan Statistic Blog Sobat Blogger,, berdasarkan Total Posting yg Sobat buat dan Total Komentar yg masuk ke blog Sobat,, langsung aja gmna cara nya,, silahkan Sobat copas kode di bawah ini,[...]
ipod

CPU Komputer Di Dalam Botol

Apa jadinya kalau CPU komputer berada di dalam Botol minuman!!!! Aneh-aneh aja ya yang dilakukan orang...sampai CPU komputer pun bisa berada dalam Botol minuman.[...]
View All Posts

Increase Earnings


Add URL Here


Sign up for PayPal and start accepting credit card payments instantly.

Let's Join Acme People Search !!


Complete Step 1-3,, Get Free $125, NO SCAM !!


| Social Community | Facebook | Friendster | Twitter |
| News |
Kompas | Media Indonesia | Detik | Seputar Indonesia | Republika | Suara Pembaruan | Antara |
| Forum |
Kompas Forum | Detik Forum | Kaskus | Indo Forum | Chip Forum | Yogyafree | Delphi Forum | Komunitas Muda | Jasakom |
The Press List| Al-Quds.com | Aljazeera English | Media Indonesia | Tempo Newspaper | Tempo Magazine | The Jakarta Post | CNET Asia | CNET.COM

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More