Personal License $14.99

1 site, 1 server No source distribution Commercial use allowed Can modify source Read full license

Developer License $64.99

Unlimited projects Source and binary distribution Commercial use allowed Distribute modifications Read full license

You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

Starting from $ 14.99

View Pricing 14 days money-back guarantee

jQuery Product and News Slider

A Jquery news slider that shows news/products in a fancy and highly customizable way.

Description

Present your news/posts or products in a cool way!

You can fully customize this component, including:

  • Thumbnails position (top/bottom/left/right) and size based on position.
  • Captions visibility and positioning (top/middle/bottom).
  • Links beaviour.
  • Size (make it fit your column width/height).
  • Auto sizing setup (let the component decide the better size for you).
  • Timing/Intervals.
  • Full CSS editable.

Fully tested on:

  1. IE8+
  2. FF4+
  3. Chrome 10+
  4. Safari 5+

Usage

The HCNS plugin is extremely simple to use.

1 Create a new HTML file.

2 Copy the 'css' and 'js' folders into the same directory where your HTML file is.

3 Create an 'img' folder and news.xml file in the same folder where your HTML file is and place some images in it. Modifiy news.xml as you need.

In this example we will assume that the large images are named pic1.jpg, pic2.jpg, pic3.jpg and so on. And that their corresponding thumbnails are named pic1_small.jpg, pic2_small.jpg, pic3_small.jpg, etc.

4 Import the default and HCNS style sheets:

<link type="text/css" rel="stylesheet" href="css/style.css"></link>
<link type="text/css" rel="stylesheet" href="css/hcns.css"></link>     

5 Import the latest version of jQuery and the HCNS plugin files:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script defer src="js/plugins.js"></script>
<script defer src="js/script.js"></script>

6 Add the following markup to the body of the HTML file:

<div id="hcns_main">
</div>

7 Modify /js/script.js to setup your options:

$('#hcns_main').HCNewsSlider({
    'xml': 'news.xml', //your XML file
    'showCaptionsInThumbs': 'true', //define if show captions over thumbnails
    'captionsVerticalAlign': 'top', //if captions on, define their position (top/middle/bottom).
    'openMainLinkInBlank': 'true', //determine if main link opens in new window or not.
    'thumbsPosition': 'top', //define thumbnails section position (top/bottom/left/right).
    'width': '600px', 
    'height': '300px',
    'autoSizeHeight': 'true', //auto adjusts height based on thumbnails count.
    'autoSizeWidth': 'true', //auto adjusts width based on thumbnails count.
    'timing': '5000' //define interval between main item changes.
});

You can now test the HTML file in a browser to see your slider working.

Read all 2 comments »

Questions & Comments

  • Nextdart.com Author said:

    4 months ago
    Melody,

    Pleased to meet you.

    Regarding your implementation. Please take a look at your CSS. It is colliding with our component because it is applying global styles to certain TAGS.

    Example, you have a IMG global style in style.css, line 122, applied to all images in your site. That´s adding a 10px margin, breaking our component. If you remove that, it will look just fine.

    Another issue is the arrow position, also related with your CSS file. Please take a deep look for that, or just hide our arrow by applying this css rule: #hcns_arrow { display: none;}

    We strongly suggest not to apply global styles for tags.

    Any other issue, please let us know.

    Cheers, Iamar.
  • Melody Paxton License holder said:

    4 months ago
    It works but the CSS elements are off somehow.

    Site is still in production. http://melpax.com/neil/index-new.php

Leave a comment

You must be logged-in to leave a comment.
Log-in now or register for a free account.
You must be logged-in to vote. Log-in to your account or register now.

User Reviews

No reviews have been submitted yet.

Starting from $ 14.99

View Pricing 14 days money-back guarantee