Blogger Editing Tricks

  • Saturday, July 16, 2011
  • by
  • Mohammad Dilshad Shaikh
  • To Add Unconditional CSS
    Some times we require different design for homepage then inner pages, then we can use this syntax:

    Without Condition:

    <style>
    .container { width:600px;}
    </style>





    With Condition:

    <b:if cond="data:blog.url == data:blog.homepageUrl">
    <style>
    .container { width:400px;}
    </style>
    </b:if>
    Description:
    Here the with of the container div will be 400px for homepage and 600px for all other pages.


    To Display Articles In Summary Format with Read More link
    In home page we like to display the latest article but in sammary format and with some thumbnail image. It can be acomplished with help of bellow code.

    <script type="text/javascript"&>
    var thumbnail_mode = "no-float" ;
    summary_noimg = 240;
    summary_img = 140;
    img_thumb_height = 140;
    img_thumb_width = 140;
    </script>
    <script type="text/javascript">
    //
    function removeHtmlTag(strx,chop){
    if(strx.indexOf("<")!=-1) { var s = strx.split("<"); for(var i=0;i")!=-1){
    s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);

    }
    }
    strx = s.join("");
    }
    chop = (chop < strx.length-1) ? chop : strx.length-2; while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++; strx = strx.substring(0,chop-1); return strx+'...'; } function createSummaryAndThumb(pID){ var div = document.getElementById(pID); var imgtag = ""; var img = div.getElementsByTagName("img"); var summ = summary_noimg; if(img.length>=1) {
    imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>';
    summ = summary_img;
    }

    var summary = imgtag + '<div>

    ' + removeHtmlTag(div.innerHTML,summ) + '</div>
    ';
    div.innerHTML = summary;
    }


    //
    </script>
    Read More...

    Amazing Truck Paintings

  • Friday, July 15, 2011
  • by
  • Mohammad Dilshad Shaikh
  • Here I present another sets of amazing pictures. See these amazing painting on truck. It sems so realistic 
    (1) Pepsi on Truck

    (2) Bag on Truck

    (3) Aquarium on Truck

    (4) Bottle on Truck

    (5) Truck on Truck

    (6) Library on Truck

    (7) After Burn on Truck
    Read More...

    Funny Jokes Vol.01

  • Sunday, June 20, 2010
  • by
  • Mohammad Dilshad Shaikh
  • Please Note : The Bellow given jokes are only for enjoyment and not for abusing any cast, profession, or particular person. Especially my Sardar friends do not take it as insult or anything like that. Personally I have lot of respects to Sardars.
    ===========================================
    A girl in a wedding ceremony wants to go to the toilet. She asked a sardar, sardarji su su kernay ki jaga dikhao.
    Sardar replied: u naughty girl pehlay tum dikhao.
    ===========================================
    Q: What is the difference between a wife and a girlfriend?
    A: About 45 pounds!!
    ===========================================
    World’s Smallest resignation letter?
    Respected sir,
    I luv ur wife.
    ===========================================
    A girl says to her boyfriend, One kiss and I’ll be yours forever.
    The guy says thanks for the warning!
    ===========================================
    Santa: I kiss my wife everyday before leaving for office, what about u?
    Banta: Me too, after u leave
    ==========================================
    Dying husband: I have something to tell you. Wife: Don’t speak, just rest. Husband: No, I must confess, I had sex with your sister and your best friend. Wife: Sshhh. I know! That’s why I poisoned you!
    ===========================================
    In a restaurant, a man ordered soup but, as soon as it arrived, he had to go to the bathroom. To make sure that nobody touched his soup while he is away, he wrote on a napkin: “I SPIT IN THE SOUP”.
    When he returned, he found another message on napkin: “ME, TOO”.
    ==========================================
    Husband asks, do u know the meaning of wife.
    it means… – without – informtion – fighting – evrytime!
    Wife on hearng this says, it could also mean – with idiot for ever!
    ==========================================
    Whats the difference between Data and Information?
    362436 – Data
    36-24-36 Information!..
    ===========================================
    Sardar on phone “Doctor my wife is pergnant.She is having pain right now”.
    Doctor: Is this her first child?
    Sardar: No this is her husband speaking…………
    ===========================================
    Two  Sardars looking at Egyptian mummy. Sardar1: Look so many bandages, pakka truck accident case.  Sardar2 :  Aaho, truck nambar bhi likha hai. BC-1760!!
    ===========================================
    Sardar: Will u merry , after i die .
    Wife : No i wiil live with my sister.
    Wife : Will u marry , after i die .
    Sardar: No i will also live with ur sister.
    ===========================================
    Sardarji is filling up a job application………………………
    He promptly fills in the lines on Name, Age, Addr,& etc.
    Then came the column Salary Expected…………………
    After much thought he writes: Yes………………………..
    ==========================================
    Teacher told all students in a class to write an essay on a cricket match.
    All were busy writing except one Sardarji.
    He wrote “DUE TO RAIN, NO MATCH!”
    ==========================================
    Read More...

    Short Stories on Sardarji

  • by
  • Mohammad Dilshad Shaikh
  • Story 1
    There was a meeting of all the Surd freedom fighters.
    They were planning for a free Punjab. Santa Singh raised a point,
    “Oh…we’ll take Punjab from India but how would we develop it?”
    That was a tough one indeed. Banta Singh had a brainwave…
    “No problem! We’ll attack Amrika, it would take over us and then
    we would become a State of USA and develop automatically.”
    All the surds became happy with this very simple solution but an old surd
    was not. Someone asked him why he wasn’t happy.
    The old surd replied, “THAT’S ALL VERY WELL…WHAT WOULD HAPPEN IF BY CHANCE
    WE TOOK OVER AMRIKA???”
    Story 2
    Sardarji went to the appliance store sale and found a bargain.
    “I would like to buy this small TV,” he told the salesman.
    “Sorry, we don’t sell to Sardars,” he replied.
    He hurried home removed his turban and changed his hair style, and returned
    to tell the salesman
    “I would like to buy this TV.”
    “Sorry, we don’t sell to Sardars,” Salesman replied.
    “Damn, he recognised me,” he thought.
    He went for a complete disguise this time, haircut, new hair colour,
    new outfit, big sunglasses, waited a few days, saw the salesman again.
    “I would like to buy this TV.”
    “Sorry, we don’t sell to Sardars,” he replied.
    Frustrated, he exclaimed, “How do you know I’m a Sardar?”
    “Because that’s a microwave,” he replied.
    Story 3
    Sardarji goes into a store and sees a shiny object.
    He asks the clerk, “What is that shiny object?”
    The clerk replies, “That is a Thermos flask.”
    The Sardar asks, “What does it do?”
    The clerk responds, “Keeps hot things hot and cold things cold.”
    The Sardar says, “I’ll take it!”
    The next day, he walks into work with his new Thermos.
    His Sardar boss sees him and asks, “What is that shiny object with you?”
    He said, “It’s a Thermos flask.”
    The boss asks, “What does it do?”
    He replies, “Keeps hot things hot and cold things cold.”
    The boss said, “Wow, what do you have in it?”
    The Sardar replies, “Two cups of coffee and a coke.”
    Read More...

    American History Mistery

  • Saturday, January 23, 2010
  • by
  • Mohammad Dilshad Shaikh
  • Have a history teacher explain this—– if they can.

    Abraham Lincoln was elected to Congress in 1846.
    John F. Kennedy was elected to Congress in 1946.

    Read More...

    Amazing Transparent Painting

  • Wednesday, January 13, 2010
  • by
  • Mohammad Dilshad Shaikh
  • Hello friends,
    I want to show you all these images which I saw. This images contains a guy painted himself. There is no any Trick Photography. All images are original i.e. the guy in the painting has painted himself.
    Read More...

    Alternative for Google Adsense

  • Wednesday, January 6, 2010
  • by
  • Mohammad Dilshad Shaikh
  • Hello friends,
    Friends here I'm going to mention some other good publishing networks other then Google Adsense.
    Those who have Google adsense account can also use these networks and increase their revenue from advertising.
    I must agree that Adsense is the best in online advertising network but it also have very strick policies, terms and conditions(Click Here to See complete Google AdSense Program Policies). In present time it is not
    Read More...
     
    Copyright © 2008 Mohammad Dilshad Shaikh
    Powered by : MDS Web Solution