Wednesday, February 29, 2012

True Story



There was once a man who was an enemy to Islam. He had three famous questions that no person could answer. No Islamic scholar in Baghdad could answer his three questions...thus he made fun of Islam in public. He constantly ridiculed Islam and the Muslims. One day a small boy, who`s age was 10, came along and heard the man yelling and screaming at Muslims in the street. He was challenging people openly to answer the three questions.
The boy stood quietly and watched. He then decided that he would challenge the man. He walked up and told the man, "I will accept your challenge".


The man laughed at the boy and ridiculed the Muslims even more by saying, "A ten year old boy challenges me. Is this all you people have to offer!"


But the boy patiently reiterated his stance. He would challenge the man, and with Allah`s help and guidance, he would put this to an end. The man finally accepted.


The entire city gathered around a small "hill" where open addresses were usually made. The man climbed to the top, and in a loud voice asked his first question.


"What is your God doing right now?"


The small boy thought for a little while and then told the man to climb down the hill and to allow him to go up in order to address the question.


The man says "What? You want me to come down?"


The boy says, "Yes. I need to reply, right?"


The man made his way down and the small boy, age 10, with his little feet made his way up.


This small child`s reply was "Oh Allah Almighty! You be my witness in front of all these people. You have just willed that a Kafir be brought down to a low level, and that a Muslim be brought to a high level!"


The crowd cheered and screamed "Takbir"...."Allah-hu-akbar!!!"


The man was humiliated, but he boldly asked his Second question... "What existed before your God?"


The small child thought and thought.


Then he asked the man to count backwards. "Count from 10 backwards."


The man counted..."10, 9 ,8 , 7 , 6, 5, 4, 3, 2, 1,0"


The boy asked, "What comes before 0 ?"


The man: "I don`t know...nothing."


The boy: "Exactly. Nothing was before Allah, for He is eternal and absolute."


The crowd cheered again...."Takbir!"...."Allah-hu-akbar!!!!"


The man, now completely frustrated, asked his final question. "In which direction is your Allah facing?"


The boy thought and thought.


He then asked for a candle. A candle was brought to him. The blessed child handed it to the man and asked him to light it.


The man did so and remarked, "What is this supposed to prove?"


The young boy asked, "In which direction is light from the candle going?"


The man responded, "It is going in all directions."


The boy: "You have answered your own question. Allah`s light (noor) goes in all directions. He is everywhere. There is no where that He cannot be found.


"The crowd cheered again...."Takbir!"...."Allah-hu-akbar!!!"


The man was so impressed and so moved by the boy`s knowledge and spirituality, that he embraced Islam and became a student of the young boy.


So ended the debate.


Who was the young boy?


The young boy was one of our leaders and one of the greatest scholars, Imam Abu Hanîfa (May Allah bless him).    

Tuesday, February 28, 2012

This Made My Eyes Wet

Every Friday afternoon, after the Jumma prayers, the  Imam and his eleven year old son would go out into their town and hand out "PATH TO PARADISE" and other  Islamic literature.

This particular and fortunate Friday afternoon, as the time came for the Imam and his son to go to the streets with  their booklets, it was very cold outside, as well as pouring rain.

The boy bundled up in his warmest and driest clothes and said, 'OK, dad, I'm ready!'

His dad asked, 'Ready for what' 'Dad, it's time we go out and distribute these Islamic books.'

Dad responds, 'Son, it's very cold outside and it's pouring rain.'

The boy gives his dad a surprised look, asking, 'But Dad, aren't people still going to hell, even though it's raining?'

Dad answers, 'Son, I am not going out in this weather.'

Despondently, the boy asks, 'Dad, can I go Please'

His father hesitated for a moment then said, 'Son, you can go. Here are the booklets. Be careful son.'

'Thanks, Dad!'

And with that, he was off and out into the rain. This eleven year old boy walked the streets of the town going  door to door and handing everybody he met in the street a pamphlet or a booklet.

After two hours of walking in the rain, he was soaking, bone-chilled wet and down to his VERY LAST BOOKLET. He  stopped on a corner and looked for someone to hand a booklet to, but the streets were totally deserted.

Then he turned toward the first home he saw and started up the sidewalk to the front door and rang the door bell. He rang  the bell, but nobody answered..

He rang it again and again, but still no one answered. He waited but still no answer.

Finally, he turned to leave, but something stopped him.  Again, he turned to the door and rang the bell and knocked loudly on the door with his fist. He waited, something holding him  there on the front porch!

He rang again and this time the door slowly opened.

Standing in the doorway was a very sad-looking elderly lady. She softly asked, 'What can I do for you, son?' With radiant eyes and a  smile that lit up her world, this little boy said, 'Ma'am, I'm sorry if I disturbed you, but I just  want to tell you that ALLAH REALLY LOVES AND CARES FOR YOU and I came to give you my very last booklet  which will tell you all about God, the  real purpose of creation, and how to achieve His pleasure.'

With that, he handed her his last booklet and turned to leave.

She called to him as he departed. 'Thank you, son! And God Bless You!'

Next week on Friday afternoon after Jumma prayers,  the Imam was giving some lectures. As he concludes the lectures, he asked, 'Does anybody have questions or want to say  anything?'

Slowly, in the back row among the ladies, an elderly lady's voice was heard over the speaker.   'No one in this gathering knows me. I've never been  here before.  You see, before last Friday I was not a Muslim, and thought I could be. My husband died few years ago, leaving me totally alone in this world.. Last Friday, being a particularly cold and rainy day, I was contemplating suicide as I had no hope left.

So I took a rope and a chair and ascended the stairway into the attic of my home.. I fastened the rope securely to a  rafter in the roof then stood on the chair and fastened the other end of the rope around my neck. Standing on that chair, so lonely and  broken-hearted I was about to leap off, when suddenly the loud ringing of my doorbell downstairs startled me. I thought, I'll wait a minute, and whoever it is will go away.

I waited and waited, but the ringing doorbell seemed to get louder and more insistent, and then the person ringing also started knocking loudly....

I thought to myself again, 'Who on earth could this be? Nobody ever rings my bell or comes to see me.' I loosened the rope from my neck  and started for the front door, all the while the bell rang louder and louder.

When I opened the door and looked I could hardly believe my eyes, for there on my front porch was the most radiant and  angelic little boy I had ever seen in my life. His SMILE, oh, I could never describe it to you! The words that came from his mouth caused my heart that had long been dead TO LEAP TO LIFE as he exclaimed with a cherub-like voice, 'Ma'am, I just came to tell you that ALLAH REALLY LOVES AND CARES FOR YOU!'
 Then he gave me this booklet, Path To Paradise that I now hold in my hand.

As the little angel disappeared back out into the cold and rain, I closed my door and read slowly every word of this book. Then I  went up to my attic to get my rope and chair. I wouldn't be needing them any more.

You see? I am now a Happy Vicegerent of the One True God. Since the address of your congregation was stamped on the back of this booklet,  I have come here to personally say THANK YOU to God's little angel who came just in the nick of time and by so doing, spared my soul from an eternity in hell.'

There was not a dry eye in the mosque. The shouts of TAKBIR...ALLAH AKBAR.. rented the air.

Imam-Dad descended from the pulpit to the front row where the little angel was seated....

He took his son in his arms and sobbed uncontrollably.

Probably no jama'at has had a more glorious moment, and probably this universe has never seen a father that was more  filled with love and honor for his son... Except for One. This very one...


Blessed are your eyes for reading this message.


Don't let this message die, read it again and pass it to others. Heaven is for His people!
 Remember, God's message CAN make the difference in the life of someone close to you.
 Please share this wonderful message   Spread His Word, help Him and you'll see His hand in everything you do...

Q 5:3: This day I've perfected your religion for you, and completed my favor on you, and chose Islam for you as religion....   With prayers,

Monday, February 27, 2012

How To Download IPL Cricket T20 Game 2011



1st Step : Download Utorrent … you can go to google.com and search for utorrent downlaod

2nd step:  Now install Utorrent to your pc

3rd step : now download ipl games 2011 torrent  and add it to utorrent and download and enjoy it……

if Still you have not got what you want Then tell  us… We will definitely help you…..


Thursday, February 23, 2012

Ajax Star Rating

After reviewing the CSS for a star rating system at komodomedia.com, I decided to make my own star rating system using AJAX. There are a few out there, one is another really good one created by Ryan Masuga over at www.masugadesign.com. I really could have just used his, but oh no, I needed to challenge myself – and I wanted to add feature or two. After a few days I came up with my own unobtrusive ajax star rating system.




star rating example

Bug Fixes in v1.7

    Fixed ratings appearing in the correct order. Order by highest rated AND most ratings. (Sebastians Comment)

Features

    Non-obtrusive (works with javascript disabled)
    Does not allow multiple votes – checks against IP and cookies
    Tested in IE 6, IE 7, Firefox 2.x, Opera and Safari
    Pre-loads all images
    Easily style text using the stylesheet
    Precise rating to a 2 decimal place
    Automatically pull top rated based on a custom number – NEW!
    Ability to set ‘novote’ option in the function to not allow users to vote (same thing as static)
    Checks not only against IP upon vote but now includes a cookie check
    Display rating information you want using true or false
        Show rating out of 5
        Show rating in percentage format
        Show number of votes

Installation

Open up includes/rating_config.php and change the mysql database connection info:

$server = 'localhost'; // Database server (default localhost)
$dbuser = 'user'; // Database user
$dbpass = 'pass'; // Database pass
$dbname = 'test'; // Database Name

Now upload the files/directories to your web server. I have named all files
with the prefix "rating_" to not clash with your other files.

You will need to create the necessary tables for the rater. You can either run "create_ratings_table.php" OR paste the following SQL into your phpMyAdmin.

CREATE TABLE `ratings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`rating_id` int(11) NOT NULL,
`rating_num` int(11) NOT NULL,
`IP` varchar(25) NOT NULL,
PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;

Usage

The following 3 lines must be on your page.

include("includes/rating_functions.php");

<link href="css/rating_style.css" rel="stylesheet" type="text/css" media="all">
<script type="text/javascript" src="js/rating_update.js"></script>

Now to call the rating stars to display on your page, simply add:

echo pullRating(35,false,false,false,NULL);

Param 1: 35 would be your unique rating id (usually people put $_GET['id'] in there)

Param 2: The first false statement is if you want it to show the rating out of 5.
Example: 3/5. Change this to true if you want to display the rating.

Param 3: The second false statement is if you want to show the rating in percentage format.
Example (50%). Change this to true if you want to display the percentage.

Param 4: The last false statement if if you want to display the total amount of votes
Example (23 Votes). Change this to true if you want to display the amount of votes.

Param 5: The last statement is if you want it to be static (no one can vote) or if you want people to be allowed to vote. NULL is the default but if you only want logged in users to vote then you can change this to ‘novote’. If you’ve used Ryan Masuga’s star rating system then you’ll find this does the same thing as ‘static’.

Getting the top rated items

This feature was added upon request, if you read the comment’s then you’ll know who requested it. Here is an example of the function being used

echo getTopRated(10,'articles','article_id','article_title');

What this is doing getting the top 10 rated articles. You must specify how many top rated items you want to return, fallowed by what table name you are looking in, followed by the id in the table (auto incremented, primary key) and the title/name you want to display.

The function will return the following:

    Baby Born (5.0)
    NY loses to BC (3.4)
    Man loves food (3.2)
    Nike to sponsor vegetables (1.5)

This is returning the article_title along with the rating for it.

Wednesday, February 22, 2012

dhtmlx Menu

Script Description :

dhtmlxMenu is an Ajax-enabled JavaScript menu with rich functionality, XML support, cross-browser compatibility and powerful API. You can freely customize visual menu appearance and structure by simply changing menu parameters. GPL-licensed.



Demo     Download

Ajax menus

Script Description :

If you are a big Mac fan, you will love this CSS dock menu. It is using Jquery Javascript library and Fisheye component from Interface and some of my icons. It comes with two dock styles - top and bottom.



Demo    Download

DOM image zoomer

 Demo   Download

Script Description :

What is this?
As you may have realized, this is an image magnifier. It's a completely rewritten version of the script tjpzoom, but still is in JavaScript / DOM. If you move your mouse over the picture, you can see a little zoom window with a magnified version of a part of the picture in it. But there is more:

    If you click and DRAG UPWARDS your mouse, the zoom ratio increases,
    if you click and DRAG DOWNWARDS your mouse, the zoom ratio decreases,
    if you click and DRAG TO THE RIGHT your mouse, the zoom window increases,
    and if you click and DRAG TO THE LEFT your mouse, the zoom window decreases.

And since this is a new version, there are some new features:

    Has transparent drop shadow! Wow! (Works in IE6 too!)
    Faster! (a bit)
    Works on IE7 (and on every major browser)
    Much cleaner code for you to insert
    You can change the relative position of your zoom box
    

The script is compatible with the major browsers:

    Internet Explorer 6, 7
    Firefox 2
    Opera (I have 8.54, hope it works on newer versions too)
    Safari 2
    Konqueror 3.5.6

Tuesday, February 21, 2012

Tooltip for forms



Script Description :



Displays a tooltip next to form elements when the element receives focus.
Configuration
Include files


First, you need to include the js files and css files as in the demo(form-field-tooltip.html)
Define tooltip text


Tooltip text is something you add manually to your <INPUT> or <TEXTAREA> tags by creating a tooltipText attribute. Example:


<input type="text" id="firstname" name="firstname" tooltipText="Type in your firstname in this box">
Initialize and configure the script


At the bottom of your page, add code similar to this:


<script type="text/javascript">
var tooltipObj = new DHTMLgoodies_formTooltip();
tooltipObj.setTooltipPosition('right');
tooltipObj.setPageBgColor('#EEE');
tooltipObj.setCloseMessage('Exit');
tooltipObj.initFormFieldTooltip();
</script>


Which methods you want to call depends on what you need. Look at the complete documentation for more help.

Ajax Chat

Php based Ajax Chat. It's an easy to use ajax chat script, it has spam filter capability and it only needs 3 files (index.html, w.php and chat.txt) Index.html reads the content & sends your message to w.php. w.php writes the content and prunes it to $maxlines lines 


Download Ajax Chat Files


Or Copy HTML From Below:

<html>
    <head>
<base href="http://www.ajaxdaddy.com/media/demos/play/1/ajax-chat/ajax-chat/" />

    <title>Ajax Chat 3.1 (Room 1)</title>
    <style type="text/css">
body             { padding-left:40px; font-family:arial;}
input, textarea     { font-family: arial; color:white; background:#57767F; font-size: 14px; }
#content         { width:500px; text-align:left; margin-left:10px; }

#chatwindow         { border:1px solid #aaaaaa; padding:4px; background:#232D2F; color:white;  width:450px; height:auto; font-family:courier new;}
#chatnick         { border: none; border-bottom:1px solid #aaaaaa; padding:4px; background:#232D2F;}
#chatmsg         { border: none; border-bottom:1px solid #aaaaaa; padding:4px; background:#232D2F; }

#info             { text-align:left; padding-left:0px; font-family:arial; }
#info td         { font-size:12px; padding-right:10px; color:#DFDFDF;  }
#info .small         { font-size:12px; padding-left:10px; padding-right:0px;}

#info a         { text-decoration:none; color:grey; }
#info a:hover         { text-decoration:underline; color:#CF9700;}
</style>
    </head>
    <body>
        <div id="info">
        <br>
            <table border="0">
                <tr>
                    <td colspan="2">
                        <a href="http://linuxuser.at/index.php?title=Most_Simple_Ajax_Chat_Ever"><font style="font-size:16px">Most Simple Ajax Chat</a> (v 3.1)</font><br>
                    </td>   
                </tr>
               
            </table>
                   
        </div>
       
       
        <div id="content">
            <p id="chatwindow"> </p>       
<!--            <textarea id="chatwindow" rows="19" cols="95" readonly></textarea><br>
-->
            <input id="chatnick" type="text" size="9" maxlength="9" >&nbsp;
            <input id="chatmsg" type="text" size="40" maxlength="80"  onkeyup="keyup(event.keyCode);">
            <input type="button" value="add" onclick="submit_msg();" style="cursor:pointer;border:1px solid gray;"><br><br>
            <br>
        </div>

    </body>
</html>

<script type="text/javascript">
/****************************************************************
 * Most Simple Ajax Chat Script (www.linuxuser.at)        *
 * Version: 3.1                            *
 *                                 *
 * Author: Chris (chris[at]linuxuser.at)            *
 * Contributors: Derek, BlueScreenJunky (http://forums.linuxuser.at/viewtopic.php?f=6&t=17)
 *                                *
 * Licence: GPLv2                        *
 ****************************************************************/

/* Settings you might want to define */
    var waittime=800;       

/* Internal Variables & Stuff */
    chatmsg.focus()
    document.getElementById("chatwindow").innerHTML = "loading...";

    var xmlhttp = false;
    var xmlhttp2 = false;


/* Request for Reading the Chat Content */
function ajax_read(url) {
    if(window.XMLHttpRequest){
        xmlhttp=new XMLHttpRequest();
        if(xmlhttp.overrideMimeType){
            xmlhttp.overrideMimeType('text/xml');
        }
    } else if(window.ActiveXObject){
        try{
            xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
        } catch(e) {
            try{
                xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
            } catch(e){
            }
        }
    }

    if(!xmlhttp) {
        alert('Giving up :( Cannot create an XMLHTTP instance');
        return false;
    }

    xmlhttp.onreadystatechange = function() {
    if (xmlhttp.readyState==4) {
        document.getElementById("chatwindow").innerHTML = xmlhttp.responseText;

        zeit = new Date();
        ms = (zeit.getHours() * 24 * 60 * 1000) + (zeit.getMinutes() * 60 * 1000) + (zeit.getSeconds() * 1000) + zeit.getMilliseconds();
        intUpdate = setTimeout("ajax_read('chat.txt?x=" + ms + "')", waittime)
        }
    }

    xmlhttp.open('GET',url,true);
    xmlhttp.send(null);
}

/* Request for Writing the Message */
function ajax_write(url){
    if(window.XMLHttpRequest){
        xmlhttp2=new XMLHttpRequest();
        if(xmlhttp2.overrideMimeType){
            xmlhttp2.overrideMimeType('text/xml');
        }
    } else if(window.ActiveXObject){
        try{
            xmlhttp2=new ActiveXObject("Msxml2.XMLHTTP");
        } catch(e) {
            try{
                xmlhttp2=new ActiveXObject("Microsoft.XMLHTTP");
            } catch(e){
            }
        }
    }

    if(!xmlhttp2) {
        alert('Giving up :( Cannot create an XMLHTTP instance');
        return false;
    }

    xmlhttp2.open('GET',url,true);
    xmlhttp2.send(null);
}

/* Submit the Message */
function submit_msg(){
    nick = document.getElementById("chatnick").value;
    msg = document.getElementById("chatmsg").value;

    if (nick == "") {
        check = prompt("please enter username:");
        if (check === null) return 0;
        if (check == "") check = "anonymous";
        document.getElementById("chatnick").value = check;
        nick = check;
    }

    document.getElementById("chatmsg").value = "";
    ajax_write("w.php?m=" + msg + "&n=" + nick);
}

/* Check if Enter is pressed */
function keyup(arg1) {
    if (arg1 == 13) submit_msg();
}

/* Start the Requests! ;) */
var intUpdate = setTimeout("ajax_read('chat.txt')", waittime);

</script>


Enjoy !!!!

Shout Box in Ajax

This script is based on jQuery library and Form plugin. It's very easy to setup it, also an archive is available for download so you can play with the files on your localhost. This jquery shoutbox is file based, but it's very easy to write a few more lines to keep your messages in a database. It tries to simulate the behaviour of YShout (a donation ware script) you can find online. Data is exchanged in JSON format, pear Json library is being used. 



Or Copy and Paste HTML from Below:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="http://www.ajaxdaddy.com/media/demos/play/1/shoutbox/shoutbox/" />

 
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>jQuery</title>
  <style type="text/css">
    #daddy-shoutbox {
      padding: 5px;
      background: #3E5468;
      color: white;
      width: 600px;
      font-family: Arial,Helvetica,sans-serif;
      font-size: 11px;
    }
    .shoutbox-list {
      border-bottom: 1px solid #627C98;
     
      padding: 5px;
      display: none;
    }
    #daddy-shoutbox-list {
      text-align: left;
      margin: 0px auto;
    }
    #daddy-shoutbox-form {
      text-align: left;
     
    }
    .shoutbox-list-time {
      color: #8DA2B4;
    }
    .shoutbox-list-nick {
      margin-left: 5px;
      font-weight: bold;
    }
    .shoutbox-list-message {
      margin-left: 5px;
    }
   
  </style>
  <script type="text/javascript" src="javascript/jquery.js"></script>
  <script type="text/javascript" src="javascript/jquery.form.js"></script>
</head>
  <body>

  <center>
  <div id="daddy-shoutbox">
    <div id="daddy-shoutbox-list"></div>
    <br />
    <form id="daddy-shoutbox-form" action="daddy-shoutbox.php?action=add" method="post">
    Nick: <input type="text" name="nickname" /> Say: <input type="text" name="message" />
    <input type="submit" value="Submit" />
    <span id="daddy-shoutbox-response"></span>
    </form>
  </div>
  </center>
 
  <script type="text/javascript">
        var count = 0;
        var files = '';
        var lastTime = 0;
       
        function prepare(response) {
          var d = new Date();
          count++;
          d.setTime(response.time*1000);
          var mytime = d.getHours()+':'+d.getMinutes()+':'+d.getSeconds();
          var string = '<div class="shoutbox-list" id="list-'+count+'">'
              + '<span class="shoutbox-list-time">'+mytime+'</span>'
              + '<span class="shoutbox-list-nick">'+response.nickname+':</span>'
              + '<span class="shoutbox-list-message">'+response.message+'</span>'
              +'</div>';
         
          return string;
        }
       
        function success(response, status)  {
          if(status == 'success') {
            lastTime = response.time;
            $('#daddy-shoutbox-response').html('<img src="'+files+'images/accept.png" />');
            $('#daddy-shoutbox-list').append(prepare(response));
            $('input[@name=message]').attr('value', '').focus();
            $('#list-'+count).fadeIn('slow');
            timeoutID = setTimeout(refresh, 3000);
          }
        }
       
        function validate(formData, jqForm, options) {
          for (var i=0; i < formData.length; i++) {
              if (!formData[i].value) {
                  alert('Please fill in all the fields');
                  $('input[@name='+formData[i].name+']').css('background', 'red');
                  return false;
              }
          }
          $('#daddy-shoutbox-response').html('<img src="'+files+'images/loader.gif" />');
          clearTimeout(timeoutID);
        }

        function refresh() {
          $.getJSON(files+"daddy-shoutbox.php?action=view&time="+lastTime, function(json) {
            if(json.length) {
              for(i=0; i < json.length; i++) {
                $('#daddy-shoutbox-list').append(prepare(json[i]));
                $('#list-' + count).fadeIn('slow');
              }
              var j = i-1;
              lastTime = json[j].time;
            }
            //alert(lastTime);
          });
          timeoutID = setTimeout(refresh, 3000);
        }
       
        // wait for the DOM to be loaded
        $(document).ready(function() {
            var options = {
              dataType:       'json',
              beforeSubmit:   validate,
              success:        success
            };
            $('#daddy-shoutbox-form').ajaxForm(options);
            timeoutID = setTimeout(refresh, 100);
        });
  </script>
</body>
</html>

Enjoy !!!

Tabs in Jquery

it is very nice and simple Tabs in Jquery




 or Copy this whole HTML below:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Your Page</title>
<script type="text/javascript" src="js/jquery.js"></script>
<link rel="stylesheet" href="css/tab-style.css"/>
<script type="text/javascript" src="js/tab-script.js"></script>
</head>

<body>
 <ul class="tabs">
                <li><a href="#tab1">Tab1 </a></li>
               <li><a href="#tab2">Tab2</a></li>
              </ul>
 <div class="tab_container">
   <div id="tab1" class="tab_content">
   Content for Tab1 here
   </div>
   <div id="tab2" class="tab_content">
   Content for Tab2 here
   </div>
</div>
</body>
</html>


Enjoy !!! :)

Wednesday, February 8, 2012

Galleria Photo Gallery

The current release is 1.2.6 and was published on December 12, 2011.

Download Galleria   (15kb gzipped and minified)

 



The MIT License

Galleria is released under the MIT license. The MIT is a permissive license, meaning that it permits reuse within proprietary software on the condition that the license is distributed with that software.
Premium themes

If the included themes does not fill your needs, we also have some great Premium themes available for purchase.

Browse all themes →
Download Galleria

The current release is 1.2.6 and was published on December 12, 2011.

Download Galleria 1.2.6 (15kb gzipped and minified)

What's Included?

Here's what you get when you download Galleria. All code in the free download is MIT licensed:

    ✓ Galleria core (minified & development)
    ✓ One free theme (Classic)
    ✓ Flickr Plugin
    ✓ Picasa Plugin
    ✓ History Plugin
    ✓ Demo file to get you started

Get started

After downloading, you can read up on how to get going using our beginners guide. There is also a Quick Start reference if you are a more experienced developer.

Included in the download is the classic theme and a demo of the theme. This HTML demo can be a pretty good way to try out Galleria without coding from scratch.
Browse Themes

If you are looking for pluggable themes that works out of the box, browse through our Premium Themes and see if there is something that fits your project. Installing them is a simple one-liner and they work on all platforms.
Customize

Galleria has a large number of options such as transition effects, cropping methods and interaction details that you can use to customize your gallery regardless of what theme you are using. Read through the options documentation for full coverage. In addition to the generic options, each theme has some theme-specific options. Read more in each theme documentation available in the docs.

For the more advanced developer, Galleria exposes an API that simplifies the process of advanced customizations or building your own theme. Read more in the Extending Galleria section and API methods
Problems?

Check out our Help / Support page for troubleshooting.
Development

We use Github for code hosting and you can get the latest development version at the Galleria Github Repository

You are very welcome to contribute to Galleria if you wish. In order to do this you have to install the GIT Version Control System, and you'll need a Github account.

git clone https://github.com/aino/galleria
(make your changes)
git commit -m "Good description of what your patch does"
git format-patch HEAD^

Be sure the your patch includes your full name and your valid email address. Git can be configured to do this like so:

git config --global user.email "john@doe.com"
git config --global user.name "John Doe"

Awkward Showcase – A jQuery Plugin

This article was last updated on Jan 11, 2012

Awkward Showcase is a plugin for the JavaScript Framework jQuery. We call it a Content Slider. But it can do more then just slide the content. For example you can add tooltips, enable thumbnails, activate dynamic height and lots more.
Since version 1.0 it’s integrated with our Viewline Plugin enabling new innovative ways for displaying content on your website.
Download Files     View Demo




Some Nice Features

Compatibility
Compatible with all the Major Browsers (Win & Mac).


Captions
Advanced positioning with different animations.


Tooltips
Position tooltips based on x- and y-coordinates.


Thumbnails
Enable thumbnails, both horizontal and vertical.


100% CSS
The look of Awkward Showcase is 100% customizable via CSS.


View Modes
Different View Modes (now integrated with Viewline).


Dynamic Height
Enabling the showcase to change height based on content.


Easy Implementations
The showcase i easy to implement and very easy to customize in CSS.


Lots more
A slide can contain any type of HTML element. It’s an infinity slide. Etc.


Implementation Example


<!DOCTYPE html>
<html>
<head>
<title>Awkward Showcase - Demo #1</title>
<link rel="stylesheet" href="css/style.aw-showcase.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.aw-showcase.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
    $("#showcase").awShowcase(
    {
        content_width:  700,
        content_height: 470
    });
});
</script>
</head>
<body>


<div id="showcase" class="showcase">
    <!-- Each child div in #showcase represents a slide -->
    <div class="showcase-slide">
        <!-- Put the slide content in a div with the class .showcase-content -->
        <div class="showcase-content">
            <!-- If the slide contains multiple elements you should wrap them in a div with the class
            .showcase-content-wrapper. We usually wrap even if there is only one element,
            because it looks better. -->
            <div class="showcase-content-wrapper">
                <img src="images/01.jpg" alt="01" />
            </div>
        </div>
        <!-- Put the caption content in a div with the class .showcase-caption -->
        <div class="showcase-caption">
            The Caption
        </div>
        <!-- Put the tooltips in a div with the class .showcase-tooltips. -->
        <div class="showcase-tooltips">
            <!-- Each anchor in .showcase-tooltips represents a tooltip.
            The coords attribute represents the position of the tooltip. -->
            <a href="http://www.awkward.se" coords="634,130">
                <!-- The content of the anchor-tag is displayed in the tooltip. -->
                This is a tooltip that displays the anchor html in a nice way.
            </a>
            <a href="http://www.awkward.se" coords="356, 172">
                <!-- You can add multiple elements to the anchor-tag which are display in the tooltip. -->
                <img src="images/glasses.png" />
                <span style="display: block; font-weight: bold; padding: 3px 0 3px 0; text-align: center;">
                    White Glasses: 500$
                </span>
            </a>
        </div>
    </div>
    <div class="showcase-slide">
        <div class="showcase-content">
            <div class="showcase-content-wrapper">
                Content...
            </div>
        </div>
    </div>
</div>


</body>
</html>
Configuration Options


content_width (default: 700)
content_height (default: 400)
fit_to_parent (default: false)
auto (default: false)
interval (default: 3000)
continuous (default: false)
loading (default: true)
tooltip_width (default: 200)
tooltip_icon_width (default: 32)
tooltip_icon_height (default :32)
tooltip_offsetx (default: 18)
tooltip_offsety (default: 0)
arrows (default: true)
buttons (default: true)
btn_numbers (default: false)
keybord_keys (default: false)
mousetrace (default: false)
pauseonover (default: true)
stoponclick (default: true)


transition: (default: ‘vslide’) (options: ‘vslide’, ‘hslide’ or ‘fade’)
transition_delay: (default: 300)
transition_speed: (default: 500)
show_caption: (default: ‘onload’) (options: ‘onload’, ‘onhover’ or ‘show’)
thumbnails: (default: false)
thumbnails_position: (default: ‘outside-last’) (options: ‘outside-last’, ‘outside-first’, ‘inside-last’ or ‘inside-first’)
thumbnails_direction: (default: ‘vertical’) (options: ‘vertical’ or ‘horizontal’)
thumbnails_slidex: (default: 0) (options: 0 = auto / 1 = slide one thumbnail / 2 = slide two thumbnails / etc.)
dynamic_height: (default: false)
speed_change: (default: false)
viewline: (default: false)
custom_function: (default: null)

AnythingSlider jQuery Plugin

Just what the world needs, another jQuery slider. YAWN. I know, check this one out though, it's got lots of cool features.


Here on CSS-Tricks, I've created a number of different sliders. Three, in fact. A "featured content" slider, a "start/stop slider", and "moving boxes". Each of them had some cool interesting feature that I needed to build at the time. All were well-received, but as is the case with these things, people want them to do X, Y, and Z in addition to what they already did.


This new AnythingSlider is an attempt at bringing together the functionality of all of those previous sliders and adding new features. In other words, to create a really "full featured" slider that could be widely useful. This is the first time (on CSS-Tricks) that one of these sliders is an actual plugin as well, which should make implementing it and customizing it much easier.

View Demo     Download Files




The demo page has the current version, complete usage, and up-to-date changelog.

Features

  •     Slides are HTML Content (can be anything)
  •     Next Slide / Previous Slide Arrows
  •     Navigation tabs are built and added dynamically (any number of slides)
  •     Optional custom function for formatting navigation text
  •     Auto-playing (optional feature, can start playing or stopped)
  •     Each slide has a hashtag (can link directly to specific slides)
  •     Infinite/Continuous sliding (always slides in the direction you are going, even at "last" slide)
  •     Multiple sliders allowable per-page (hashtags only work on first)
  •     Pauses autoPlay on hover (option)
  •     Link to specific slides from static text links
  •     ....and.... ...wait for it.... more!


Customization

Adding/Removing Slides


Just add or remove more <li> items from the list inside <div class="wrapper">, everything else happens automatically.
Adjusting Size


For example, if you wanted to make the slides 580px wide instead of 680px wide, you just need to change some CSS. Change the width of .anythingSlider ul li to 580px, change the width of .anythingSlider .wrapper to 580px, and reduce the width of .anythingSlider 100px to 660px.
Linking Directly To Slides from Static Links


Target the link using and ID or Class (or whatever), and apply a click handler. Then call the plugin function and pass it a number of the slide you are trying to link to:




$("#slide-jump").click(function(e){
    $('.anythingSlider').anythingSlider(6);
    e.preventDefault();
});