Search Google

Monday 25 August 2014

How to create WordPress themes

 http://blog.teamtreehouse.com/responsive-wordpress-bootstrap-theme-tutorial

 

http://wordpress.org/support/topic/how-to-add-a-sidebar-4 

http://www.justfreetemplates.com/wordpress-themes 

http://designscrazed.net/free-premium-wordpress-themes/ 

http://www.siteground.com/wordpress-hosting/wordpress-themes.htm 

https://wordpress.org/themes/ 

 

Converting Bootstrap Files to WordPress Templates

Most WordPress themes include the following files:
  • index.php
  • style.css
  • header.php
  • footer.php
  • sidebar.php
You will usually see a lot more than these files, but we’re going to start with these files and build from there. Go ahead create empty files for the header.php, footer.php, and sidebar.php.
Screenshot showing the theme folder with header, footer, and sidebar added
What we are going to do is take all of the HTML that would usually be included at the top of every page and cut and paste it into the header.php file. Then we will do the same for all of the HTML that would normally appear at the bottom of every page and cut and paste it into the footer.php file.
Let’s look at what each of these files look like now.  Again these are just .txt files that have been linked to because all of the source code would be too much to list here.  You can copy and paste the code from these files into your own .php files.  
The sidebar.php file is still empty.
Now we are going to use our first WordPress tags to include the header and footer back into the index.php page.
The two tags we will user are get_header() and get_footer(). These are built in WordPress functions that find the header.php and footer.php files and include them at the top and bottom of the page. WordPress can do this because we named our files header.php and footer.php. If we named the files my-header.php and my-footer.php this would not work.
Here is what our index.php file should look like now:
<?php get_header(); ?>

      <!-- Main hero unit for a primary marketing message or call to action -->
      <div class="hero-unit">
        <h1>Hello, world!</h1>
        <p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
        <p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p>
      </div>

      <!-- Example row of columns -->
      <div class="row">
        <div class="span4">
          <h2>Heading</h2>
          <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
          <p><a class="btn" href="#">View details &raquo;</a></p>
        </div>
        <div class="span4">
          <h2>Heading</h2>
          <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
          <p><a class="btn" href="#">View details &raquo;</a></p>
       </div>
        <div class="span4">
          <h2>Heading</h2>
          <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
          <p><a class="btn" href="#">View details &raquo;</a></p>
        </div>
      </div>

<?php get_footer(); ?>
You may be wondering why we would do that? The reason is that later we will be creating multiple pages in which we will want to include the header and footer code. If we just left the header and footer HTML in all of these pages and went to change something in the header or footer, we would have to have to update the HTML across all of the pages. Using the “embed” or “include” method allows us to change the header or footer code in one place and have it automatically fixed across all of the pages. It’s similar to the benefit of linking to CSS files instead of including all of the CSS at the top of each page.
Now that we have this done, we are going to fix all of the broken links to our CSS and JavaScript files.
Let’s start in the header.
Find the links to the CSS files in the header and change them from this
<!-- Le styles -->
<link href="../assets/css/bootstrap.css" rel="stylesheet">
<style type="text/css">
  body {
    padding-top: 60px;
    padding-bottom: 40px;
  }
</style>
<link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
To this
<!-- Le styles -->
<link href="<?php bloginfo('stylesheet_url');?>" rel="stylesheet">
The in your style.css file, add the following:
@import url('bootstrap/css/bootstrap.css'); 
@import url('bootstrap/css/bootstrap-responsive.css'); 
body { 
     padding-top: 60px; 
     padding-bottom: 40px; 
}

What we have done here is use a special WordPress tag that will automatically link to the bootstrap CSS in our theme files no matter what page of our site we’re on. You will see this bloginfo() function used throughout this tutorial in various ways. Then we used the @import tag to link to the Bootstrap CSS files from our main style.css file. Your site should now look like this:

all about magento

How to add a Contact Us form in Magento

Magento includes contact form functionality by default. A link to a contact form can usually be found in the footer of your Magento installation.
Of course, you can add a contact form on any page. All you need to do is:
  • Log in to the administrator area.
  • Go to CMS > Pages.
  • Select the page you want to edit or create a new page.
Paste the following code using the HTML option of the WYSIWYG editor:
<!– CONTACT FORM CODE BEGIN–>{{block type='core/template' name='contactForm' template='contacts/form.phtml'}}<!– CONTACT FORM CODE END–>
Save the changes and the contact form will appear on the desired page.

"Access denied" issue

As a solution to the "Access denied" issue, you should log out from the Magento admin area and then log in again.
If the above does not help, you should reset the admin privileges. This can be done through the Magento admin area > System > Permissions > Roles > Administrators.
Click on the Role Resources option from the left menu and make sure that Resource Access is set to All.
Click on the Save Role button and the permissions will be reset.

How to speed up Magento

Many Magento issues are caused by slow performance. The recommended way to speed up Magento's performance is to enable its Compilation function.  The performance increase is between 25%-50% on page loads.
You can enable Magento Compilation from your Magento admin panel > System > Tools > Compilation

http://www.siteground.com/tutorials/magento/magento_configuration.htm



------------------------------------------------------------

Config

First things first. A hook has to be defined by adding the code below to the config.xml. By this we’re simply adding an event that will be fired by a dispatch event where a hook, model and method names are required.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<config>
    <frontend>
        <events>
            <page_block_html_topmenu_gethtml_before>
                <observers>
                    <my_module>
                        <class>my_module/observer</class>
                        <method>addToTopmenu</method>
                    </my_module>
                </observers>
            </page_block_html_topmenu_gethtml_before>
        </events>
   </frontend>
</config>

Observer

Now, inside the observer file defined in the config.xml a method named addToTopmenu has to be placed. The code below is just an example that adds a top menu item named “Categories” together with its children menu items, category names. That’s right, with this we’re able to create nested menu items!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
public function addToTopmenu(Varien_Event_Observer $observer)
{
    $menu = $observer->getMenu();
    $tree = $menu->getTree();
    $node = new Varien_Data_Tree_Node(array(
            'name'   => 'Categories',
            'id'     => 'categories',
            'url'    => Mage::getUrl(), // point somewhere
    ), 'id', $tree, $menu);
    $menu->addChild($node);
    // Children menu items
    $collection = Mage::getResourceModel('catalog/category_collection')
            ->setStore(Mage::app()->getStore())
            ->addIsActiveFilter()
            ->addNameToResult()
            ->setPageSize(3);
    foreach ($collection as $category) {
        $tree = $node->getTree();
        $data = array(
            'name'   => $category->getName(),
            'id'     => 'category-node-'.$category->getId(),
            'url'    => $category->getUrl(),
        );
        $subNode = new Varien_Data_Tree_Node($data, 'id', $tree, $node);
        $node->addChild($subNode);
    }
}
The result is visible in the image below:
Categories in the Top menu

Conclusion

This way of adding new top menu links is easy to implement into Magento and gives us a greater flexibility as opposed to other methods. No fake categories are made and no templates are edited. This method requires some code, but with this programmatic way we’re able to create more than just static menu links. We’re able to create nested menu items, use collections to generate menu items,

---------------------------------------------------------------------------------------------


Friday 22 August 2014

Android tutorial

 http://www.learn-android-easily.com/2012/09/my-android-apps.html

 DIY http://www.instructables.com/contest/tech2014/

 

How to Access Contacts In Android

In this blog  I  will describe how to access or read Conatcts/Phonebook in your Android Application.

Contacts are stored in separate tables(in Row and Column form)

 

 ContactsContract 


ContactsContract defines an extensible database of contact-related information. Contact information is stored in a three-tier data model:
  • A row in the ContactsContract.Data table can store any kind of personal data, such as a phone number or email addresses. The set of data kinds that can be stored in this table is open-ended. There is a predefined set of common kinds, but any application can add its own data kinds.
  • A row in the ContactsContract.RawContacts table represents a set of data describing a person and associated with a single account (for example, one of the user's Gmail accounts).
  • A row in the ContactsContract.Contacts table represents an aggregate of one or more RawContacts presumably describing the same person. When data in or associated with the RawContacts table is changed, the affected aggregate contacts are updated as necessary. 
find more  Information here

Here variable  personName will contain the name and number will contain the phone number of the Contact

Code to read/access the contacts


Cursor c1;
// list Columns to retive  , pass null to get all the columns
                String col[]={ContactsContract.Contacts._ID,ContactsContract.Contacts.DISPLAY_NAME};
                c1 = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, col, null, null, ContactsContract.Contacts.DISPLAY_NAME);
               

                String personName = null, number = "";
                if(c1==null)
                    return;
// Fetch the Corresponding Phone Number of  Person Name
                try
                {
                        if(c1.getCount() > 0)
                        {
                                while(c1.moveToNext())
                                {

                                    String id = c1.getString(c1.getColumnIndex(Contacts._ID));
                                    personName = c1.getString(c1.getColumnIndex(Contacts.DISPLAY_NAME));
                                    if(id==null||personName==null)
                                        continue;
                                    Cursor cur = mContext.getContentResolver().query(CommonDataKinds.Phone.CONTENT_URI, null, CommonDataKinds.Phone.CONTACT_ID +" = ?", new String[]{id}, null);
                                    if(cur==null)
                                        continue;
                                    number = "";
                                    while(cur.moveToNext())
                                    {
                                        number = cur.getString(cur.getColumnIndex(CommonDataKinds.Phone.NUMBER));
                                    }
                                    cur.close();
                                  

                                }
                        }
                }
                catch(Exception e)
                {
                   
                }
                finally
                {
                        c1.close();
                }

 

 

Working With Database in Android

In this Post I will discuss about creating your own database and writing  functions for Insertion, Deletion and Updation of Data in Table.


DataBaseHelper:

We will use  SQLiteOpenHelper  class and extend this class
and overside the methods  onCreate, onUpgrade

public class DataBaseHelper extends SQLiteOpenHelper
{
            public DataBaseHelper (Context context, String name,CursorFactory factory, int version)
            {
                       super(context, name, factory, version);
            }
            // Called when no database exists in disk and the helper class needs
            // to create a new one.

            @Override
            public void onCreate(SQLiteDatabase _db)
            {

                     // statement to create the Table
                    _db.execSQL(SMSBlockerDataBaseAdapter.DATABASE_CREATE);
                   
            }
            // Called when there is a database version mismatch meaning that the version
            // of the database on disk needs to be upgraded to the current version.

            @Override
            public void onUpgrade(SQLiteDatabase _db, int _oldVersion, int _newVersion)
            {
                    // Log the version upgrade.
                    Log.w("TaskDBAdapter", "Upgrading from version " +_oldVersion + " to " +_newVersion + ", which will destroy all old data");
           
           
                    // Upgrade the existing database to conform to the new version. Multiple
                    // previous versions can be handled by comparing _oldVersion and _newVersion
                    // values.
                    // The simplest case is to drop the old table and create a new one
.
                    _db.execSQL("DROP TABLE IF EXISTS " + "SMSTABLE");
                    // Create a new one.
                    onCreate(_db);
            }
           
}



SMSBlockerDataBaseAdapter


We create a DataBaseAdpater class and write the functions  for following tasks

  • to Open the database
  • to close the database
  • to insert a new Row/Record in Database
  • to delete one or more Records in Database
  • to update the database

In the example Code given below  I have created  a Table to store SMSes with following Columns

Id:   Primary Key of the Table
Sender Name:  Name of SMS Sender
Sender Number:  Phone Number of the Sender
Time:  date and time (In Miliseconds) at which SMS is received

Inserting  a new Record in table


To Insert  a new Record in Table  we need to create an Object of ContentValues  class and put the Values in this  like:

ContentValues newValues = new ContentValues();
                // Assign values for each row.
                newValues.put("COLUMN_NAME1", values);

              newValues.put("COLUMN_NAME2", values);

            and so on
then

// Insert the row into your table
                db.insert("TABLENAME", null, newValues);



Deleting a Record from Table


we can delete a row from the Table with delete method
delete("TABLE ANME",String where, String[]  valuesForWhere)

for Ex:
String where="ID=?";
                int numberOFEntriesDeleted= db.delete("BLOCKEDSMSTABLE", where, new String[]{ID}) ;


will delete the Record containing IDs in  new String[]{ID}  array.



To get All the Record in the Table


public Cursor getAllEntries ()
        {
             
                return db.query("BLOCKEDSMSTABLE", null,null, null, null, null, "TIME DESC");
        }

TIME DESC    will fetch in descending order of Time , Pass null to fetch in Ascending Order because by Deafault it fetches in ascending Order

To get 1 or more records depending on Some Condition


Task task=new Task();
                Cursor cursor=db.query("BLOCKEDSMSTABLE", null, " ID=?", new String[]{ID}, null, null, null);


"ID=?"       at RunTime ?  will be replaced by string in the Array OF String passed as 4th parameter
the above query will fetch all the records containing the IDs in String Array(4th parameter)


Updating The Table 

Updating is little similar to Inserting  a record in Table
to update the table we need to create an Object of  ContentValues  and put the new Values in ContentValues object

ContentValues updatedValues = new ContentValues();
                // Assign new values for each row.


                updatedValues.put("TIME", taskToBeUpdated.time);
                updatedValues.put("MESSAGE",taskToBeUpdated.message);
                updatedValues.put("RECIPIENTNUMBER",taskToBeUpdated.recipientNumber);
                updatedValues.put("RECIPIENTNAME", taskToBeUpdated.recipientName);
               
               
                String where="ID = ?";
                db.update("SMSTABLE",updatedValues, where, new String[]{ID});


You can Modify the where variable as per your requirement  like where "EMP_ID="  etc.


How to use this DataBaseAdapter Class  in Activities


Create an Instance of  DataBaseAdapter
Open the DataAbse
Call the Functions/Methods

See The Code :


SMSSchedulerDataBaseAdapter  smsSchedulerDataBaseAdapter =new SMSSchedulerDataBaseAdapter(this);
                    smsSchedulerDataBaseAdapter=smsSchedulerDataBaseAdapter.open();

smsSchedulerDataBaseAdapter.insertEntry(yourParameter);
smsSchedulerDataBaseAdapter.getAllEntries();


The Complete Code :


public class SMSBlockerDataBaseAdapter
{
         // Name of the database
        static final String DATABASE_NAME = "SMSBLOCKERDATABASE.db";

        // database version  if creating first time it should be 1      
        static final int DATABASE_VERSION = 1;

        public static final int NAME_COLUMN = 1;
        // TODO: Create public field for each column in your table.
        // SQL Statement to create a new database.
        static final String DATABASE_CREATE = "create table BLOCKEDSMSTABLE " +
                                         "( " +"ID integer primary key autoincrement,MESSAGE text, SENDERNUMBER text, SENDERNAME text, TIME integer ); ";
                                         
        // Variable to hold the database instance
        public  SQLiteDatabase db;
        // Context of the application using the database.
        private final Context context;
        // Database open/upgrade helper
        private DataBaseHelper dbHelper;
       
        public SMSBlockerDataBaseAdapter(Context _context)
        {
                context = _context;
                dbHelper = new DataBaseHelper(context, DATABASE_NAME, null, DATABASE_VERSION);
        }
       
          // Open the Database
        public SMSBlockerDataBaseAdapter open() throws SQLException
        {
                db = dbHelper.getWritableDatabase();
                return this;
        }


         // Close the Database       
        public void close()
        {
                db.close();
        }
   
        public  SQLiteDatabase getDatabaseInstance()
        {
                return db;
        }
   
    // to Insert A record in Table
        public void insertEntry(Task taskToInsert)
        {
                // TODO: Create a new ContentValues to represent the row
                // and insert it into the database.
                ContentValues newValues = new ContentValues();
                // Assign values for each row.
                newValues.put("MESSAGE", taskToInsert.message);
                newValues.put("SENDERNUMBER",taskToInsert.senderNumber);
                newValues.put("SENDERNAME", taskToInsert.senderName);
                newValues.put("TIME",taskToInsert.time);
                               
               
                // Insert the row into your table
                db.insert("BLOCKEDSMSTABLE", null, newValues);
               
       
        }
        public int deleteEntry(String ID)
        {
               
           
                String where="ID=?";
                int numberOFEntriesDeleted= db.delete("BLOCKEDSMSTABLE", where, new String[]{ID}) ;
              
                return numberOFEntriesDeleted;
               
        }
       
        public void deleteOlderEntries()
        {
                  String olderTime=String.valueOf(new GregorianCalendar().getTimeInMillis()-7*24*60*60*1000);
                  String where="TIME < ?";
                  int numberOFEntriesDeleted= db.delete("BLOCKEDSMSTABLE", where, new String[]{olderTime}) ;
                  Toast.makeText(context, "Number Of Entries Deleted "+numberOFEntriesDeleted, Toast.LENGTH_LONG).show();
        }
        public Cursor getAllEntries ()
        {
              
                return db.query("BLOCKEDSMSTABLE", null,null, null, null, null, "TIME DESC");
        }
       
        public Task getSinlgeEntry(String ID)
        {
               
                Task task=new Task();
                Cursor cursor=db.query("BLOCKEDSMSTABLE", null, " ID=?", new String[]{ID}, null, null, null);
                if(cursor.getCount()==0)
                {
                   
                    return null;
                }
                cursor.moveToFirst();
                task.id= cursor.getString(cursor.getColumnIndex("ID"));
                task.message = cursor.getString(cursor.getColumnIndex("MESSAGE"));
                task.senderNumber = cursor.getString(cursor.getColumnIndex("SENDERNUMBER"));
                task.senderName = cursor.getString(cursor.getColumnIndex("SENDERNAME"));
                task.time = Long.parseLong(cursor.getString(cursor.getColumnIndex("TIME")));
                task.reason=cursor.getString(cursor.getColumnIndex("REASON"));
                //Log.i("getSingle Entry ID: "+"PhoneNumber "+task.senderName+"  "+task.message,ID);
                cursor.close();
                return task;
        }
}

online php code for pdf reader

1) Download zip file from: https://github.com/mozilla/pdf.js/archive/master.zip and unzip to http://yourhost/myfolder (or wherever you have hosted it)..
2) After extraction, in myfolder/web folder, open viewer.js and change DEFAULT_URL to your example.pdf path.
3) open in your browser http://yourhost/myfolder/web/viewer.html

 https://github.com/mozilla/pdf.js


1. JavaScript PDF Reader : pdf.js

pdf.js is an HTML5 experiment that explores building a faithful and efficient PDF renderer without native code assistance.
JavaScript PDF Reader : pdf.js
Read More Demo

2. jQuery Media Plugin

The jQuery Media Plugin supports unobtrusive conversion of standard markup into rich media content. It can be used to embed virtually any media type, including Flash, Quicktime, Windows Media Player, Real Player, MP3, Silverlight, PDF and more, into a web page and is compatible with all web hosting services The plugin converts an element (usually an ) into a
which holds the object, embed iframe tags neccessary to render the media content.
jQuery Media Plugin
Read More Demo

3. PDFObject : Embeds PDF files into HTML documents

A JavaScript library for dynamically embedding PDFs in HTML documents. Modeled after SWFObject.
PDFObject : Embeds PDF files into HTML documents
Read More Demo

4.Google Docs Viewer plugin for jQuery

The Google Docs Viewer is an embeddable browser-based viewer that requires only a URL to a file available online. This neatly bypasses the need for users to have compatible software on their machines for those file types and displays the document right in the browser.
Google Docs Viewer plugin for jQuery
Read More Demo


TableBarChart : jQuery Bar Chart plugin from existing HTML Tables



http://flexpaper.devaldi.com/default.jsp

Professional digital publications with page turn effects and annotations

Thursday 21 August 2014

BEST WORDPRESS THEMES

937 Best and Quality Free WordPress Themes (responsive full width slider jquery free download)

http://ceewp.com/wp/responsive-full-width-slider-jquery-free-download 

EvoLve theme EvoLve

evolve is a multi-purpose WordPress theme that has recently been redesigned as a full responsive theme for all devices

SKT Full Width theme SKT Full Width

SKT Full Width as the name suggests is a full width wordpress theme

Responsive theme Responsive

Responsive Theme is a flexible foundation with fluid grid system that adapts your website to mobile devices and the desktop or any other viewing environment

WP StrapSlider Lite theme WP StrapSlider Lite

WP StrapSlider Lite is A Responsive WordPress Theme Based on Twitters Bootstrap with the full header width carousel on the home page

Celestial – Lite theme Celestial – Lite

Celestial Lite is a responsive theme incorporating a flexible grid system, crisp lines, Unlimited colours, post formats of: Aside, image, status, and quotes, plus you get a much better WP gallery style, HTML5, CSS3, Translation readiness, social networking, more than 12 widget positions, page templates, styled form elements, and more

Carton theme

Wednesday 20 August 2014

jquery slider plugins

best for carousels  http://coolcarousels.frebsite.nl/c/68/

best http://www.freshdesignweb.com/jquery-image-slider-slideshow.html

 

HTML
  1. <div id="wrapper">
  2. <div id="slider">
  3. <div class="slide" style="background-image: url(img/iceage.jpg);">
  4. <div class="slide-block">
  5. <h4>Ice Age</h4>
  6. <p>Heading south to avoid a bad case of global frostbite, a group of migrating misfit creatures embark on a hilarious quest to reunite a human baby with his tribe.</p>
  7. </div>
  8. </div>
  9.  
  10. <div class="slide" style="background-image: url(img/birds.jpg);">
  11. <div class="slide-block">
  12. <h4>For The Birds</h4>
  13. <p>For the Birds is an animated short film, produced by Pixar Animation Studios released in 2000. It is shown in a theatrical release of the 2001 Pixar feature film Monsters, Inc.</p>
  14. </div>
  15. </div>
  16.  
  17. <div class="slide" style="background-image: url(img/up.jpg);">
  18. <div class="slide-block">
  19. <h4>UP</h4>
  20. <p>A comedy adventure in which 78-year-old Carl Fredricksen fulfills his dream of a great adventure when he ties thousands of balloons to his house and flies away to the wilds of South America.</p>
  21. </div>
  22. </div>
  23.  
  24. </div>
  25. </div>
JavaScript
  1. $(function() {
  2. $('#slider').carouFredSel({
  3. width: '100%',
  4. align: false,
  5. items: 3,
  6. items: {
  7. width: $('#wrapper').width() * 0.15,
  8. height: 500,
  9. visible: 1,
  10. minimum: 1
  11. },
  12. scroll: {
  13. items: 1,
  14. timeoutDuration : 5000,
  15. onBefore: function(data) {
  16.  
  17. // find current and next slide
  18. var currentSlide = $('.slide.active', this),
  19. nextSlide = data.items.visible,
  20. _width = $('#wrapper').width();
  21.  
  22. // resize currentslide to small version
  23. currentSlide.stop().animate({
  24. width: _width * 0.15
  25. });
  26. currentSlide.removeClass( 'active' );
  27.  
  28. // hide current block
  29. data.items.old.add( data.items.visible ).find( '.slide-block' ).stop().fadeOut();
  30.  
  31. // animate clicked slide to large size
  32. nextSlide.addClass( 'active' );
  33. nextSlide.stop().animate({
  34. width: _width * 0.7
  35. });
  36. },
  37. onAfter: function(data) {
  38. // show active slide block
  39. data.items.visible.last().find( '.slide-block' ).stop().fadeIn();
  40. }
  41. },
  42. onCreate: function(data){
  43.  
  44. // clone images for better sliding and insert them dynamacly in slider
  45. var newitems = $('.slide',this).clone( true ),
  46. _width = $('#wrapper').width();
  47.  
  48. $(this).trigger( 'insertItem', [newitems, newitems.length, false] );
  49.  
  50. // show images
  51. $('.slide', this).fadeIn();
  52. $('.slide:first-child', this).addClass( 'active' );
  53. $('.slide', this).width( _width * 0.15 );
  54.  
  55. // enlarge first slide
  56. $('.slide:first-child', this).animate({
  57. width: _width * 0.7
  58. });
  59.  
  60. // show first title block and hide the rest
  61. $(this).find( '.slide-block' ).hide();
  62. $(this).find( '.slide.active .slide-block' ).stop().fadeIn();
  63. }
  64. });
  65.  
  66. // Handle click events
  67. $('#slider').children().click(function() {
  68. $('#slider').trigger( 'slideTo', [this] );
  69. });
  70.  
  71. // Enable code below if you want to support browser resizing
  72. $(window).resize(function(){
  73.  
  74. var slider = $('#slider'),
  75. _width = $('#wrapper').width();
  76.  
  77. // show images
  78. slider.find( '.slide' ).width( _width * 0.15 );
  79.  
  80. // enlarge first slide
  81. slider.find( '.slide.active' ).width( _width * 0.7 );
  82.  
  83. // update item width config
  84. slider.trigger( 'configuration', ['items.width', _width * 0.15] );
  85. });
  86.  
  87. });
CSS
  1. html, body {
  2. height: 100%;
  3. padding: 0;
  4. margin: 0;
  5. }
  6. body {
  7. background: #f9f9f3;
  8. }
  9. body * {
  10. font-family: Arial, Geneva, SunSans-Regular, sans-serif;
  11. font-size: 14px;
  12. color: #222;
  13. line-height: 20px;
  14. }
  15.  
  16. #wrapper {
  17. height: 100%;
  18. width: 100%;
  19. min-height: 650px;
  20. min-width: 900px;
  21. padding-top: 1px;
  22. }
  23. #slider {
  24. margin: 100px 0 0 0;
  25. height: 500px;
  26. overflow: hidden;
  27. background: url(img/ajax-loader.gif) center center no-repeat;
  28. }
  29.  
  30. #slider .slide {
  31. position: relative;
  32. display: none;
  33. height: 500px;
  34. float: left;
  35. background-position: center right;
  36. cursor: pointer;
  37. border-left: 1px solid #fff;
  38. }
  39.  
  40. #slider .slide:first-child {
  41. border: none;
  42. }
  43.  
  44. #slider .slide.active {
  45. cursor: default;
  46. }
  47.  
  48. #slider .slide-block {
  49. position: absolute;
  50. left: 40px;
  51. bottom: 75px;
  52. display: inline-block;
  53. width: 435px;
  54. background-color: #fff;
  55. background-color: rgba(255,255,255, 0.8);
  56. padding: 20px;
  57. font-size: 14px;
  58. color: #134B94;
  59. border: 1px solid #fff;
  60. overflow: hidden;
  61. border-radius: 4px;
  62. }
  63.  
  64. #slider .slide-block h4 {
  65. font-size: 36px;
  66. font-weight: bold;
  67. margin: 0 0 10px 0;
  68. line-height: 1;
  69. }
  70. #slider .slide-block p {
  71. margin: 0;
  72. http://www.typicallyspanish.com/royalslider/templates/video-gallery/ 
     
    http://www.cssauthor.com/best-jquery-slider-plugins/ 

COIN SLIDER – jQuery Image Slider with Unique Effects

COIN SLIDER - jQuery Image Slider with Unique Effects
COIN SLIDER – jQuery image slider plugin with more unique transitions effects. Coin Slider have lot of features that jqFancyTransitions.

 

 http://thedesignhill.com/jquery-image-and-content-sliders/

Apple-style Slideshow Gallery With CSS & jQuery

6.jquery-image-and-content-slider-pluginDemo | Source

Responsive Image Gallery with Thumbnail Carousel

7.jquery-image-and-content-slider-pluginDemo | Source

Full Width Image Slider

9.jquery-image-and-content-slider-pluginDemo | Source

Elastic Content Slider

10.jquery-image-and-content-slider-pluginDemo | Source

Fullscreen Slit Slider

11.jquery-image-and-content-slider-pluginDemo | Source

Swift Content Navigation

12.jquery-image-and-content-slider-pluginDemo | Source

Vertical Showcase Slider

13.jquery-image-and-content-slider-pluginDemo | Source

Triple Panel Image Slider

14.jquery-image-and-content-slider-pluginDemo | Source

Parallax Content Slider

15.jquery-image-and-content-slider-pluginDemo | Source

Elastic Image Slideshow

jquery-image-and-content-slider-pluginDemo | Source

Rotating Image Slider

17.jquery-image-and-content-slider-pluginDemo | Source

3D Wall Gallery

18.jquery-image-and-content-slider-pluginDemo | Source

Thumbnails Preview Gallery

19.jquery-image-and-content-slider-pluginDemo | Source

zAccordion

20.jquery-image-and-content-slider-plugin
Demo | Source

Parallax Slider With jQuery

21.jquery-image-and-content-slider-pluginDemo | Source

Portfolio Zoom Slider

22.jquery-image-and-content-slider-pluginDemo | Source

Animated Portfolio Gallery

23.jquery-image-and-content-slider-pluginDemo | Source

Tiny Circle Slider

24.jquery-image-and-content-slider-pluginDemo | Source

Slider Gallery With jQuery

25.jquery-image-and-content-slider-pluginDemo | Source

Photostack Gallery with jQuery and CSS3

26.jquery-image-and-content-slider-pluginDemo | Source

Simple Content Slider

27.jquery-image-and-content-slider-pluginDemo | Source

AD Gallery – a jQuery gallery plugin

28.jquery-image-and-content-slider-pluginDemo | Source

Pikachoose

29.jquery-image-and-content-slider-plugin

 

 

 

 

 http://designscrazed.net/best-free-jquery-plugins/

 

Flat jQuery Price Slider

This jQuery price slider to select range of prices which help you vastly in your development and design projects. This price range slider is totally free to download.
Examples|Download price-slider

FooTable Plugin

A free jquery plugin which can showcase your html tables in responsive. Get your old tables look good in mobiles, tablets etc for free.
Demo | Source footable

Justified Gallery

The best jquery plugin for 2014 as this is a must have plugin for all theme makers. The plugin makes your gallery adapt to any screen resolution by justifying the gallery layouts, resizing wherever necessary to display the whole gallery properly. You can find how plugin works by resziign the browser window.
Source justified gallery

Clock-style timepicker

ClockPicker was designed for Bootstrap in the beginning. So Bootstrap (and jQuery) is the only dependency(s).
Demo | Source clock jquery

Slidebars

Slidebars was born from a reoccurring need to create off-canvas sliding mobile menus for responsive design. Slidebars is a jQuery plugin for quickly and easily implementing app-style revealing, overlaying, push menus and sidebars into your website.
Demo | Source slidebars

Gmaps jQuery Map Plugin

Gmaps js script is simple in itself with minimal code and clean documentation to implement the code all by yourself. The power of Google maps now can be harvested with this cool jQuery plugin without any limits. Choose from 25 Different features starting from basic map layout to Street View Panoramas.
Examples|Download fusion-table-leyers

FormChimp - MailChimp ajax plugin for jQuery

A customizable MailChimp ajax plugin for jQuery, provides an easy and lightweight way to let your users sign up to your MailChimp list.
Examples|Download