Coda slider 1.1.1 - Enhanced

Comments (2)

I was in search for a "slider" which could present both content and images. Found nothing, that is that worked in most browsers.

I was looking at Poppolls Playground and liked the feature, but that slider do not operate well with the slightly fecked up browser IE (surprized ?). So my quest for a slider that was more cross browser continued.

I stumbled upon Niall Doherty's website and fell in love with that little script. So far I have only tried it in Firefox, but I do think it's working in IE aswell (don't have IE installed) if anyone have any other browser please confirm if it's in fact working (test link: fagereke.se).

Now, this one made me search even more, and after going deeper into Niall Doherty's website I found a link to what seems to be an enhancement of the script.

and now I have. I found this site which takes up on the possible "flaws" with the Coda Slider 1.1.1. This is nothing I claim to have discovered or even pointed out, but never the less this version works even better as I see it. See example below:

How to

Follow these simple steps by either clicking the right navigational arrow, or use tabs above.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Download

Ok. Now lets see if I can show you how I accomplished this. First off you need to download the JQuery library. Then you need to download these four JavaScripts:

And these images: scroll_left.png, scroll_left.png

Install

Now the first thing you do is to upload these to your js folder (or wherever you keep your scripts) and link them in your head tag:

<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
<script src="js/jquery.scrollTo-1.4.1-min.js" type="text/javascript"></script>
<script src="js/jquery.localscroll-1.2.7-min.js" type="text/javascript"></script>
<script src="js/jquery.serialScroll-1.2.1-min.js" type="text/javascript"></script>
<script src="js/coda-slider.js" type="text/javascript"></script>

Editing

When this is done you need to edit the coda-slider.js to show the left and right arrows . This you do on lines 28-29, just add the correct path to the images.

CSS

There, now you're ready for some magic. This will however demand some basic knowledge of CSS and XHTML in order for you to make it appear as you want it. This will not be supported by me in anyway.

The css used in this example is this one:

#slider {width:500px;margin:0 0 0 0;position:relative;}
.scroll {height:280px;width:480px;position:relative;clear:left;background:#FFFFFF;}
.scrollContainer div.panel {padding:20px;height:230px;width:480px;overflow:auto;border:0px solid#eee;}
ul.navigation {list-style:none;margin:0;padding:0 0 9px 30px;}
ul.navigation li {display:inline;margin:0 5px 0 0;}
ul.navigation a {padding:3px 10px 3px 10px;text-decoration:none;color:#999;background-color:#eee;}
ul.navigation a:hover {background-color:#88ac4a;color:#fff;}
ul.navigation a.selected {background-color:#88ac4a;color:#fff;}
ul.navigation a:focus {outline:none;}
.scrollButtons {position:absolute;top:5px;cursor:pointer;}
.scrollButtons.left {left:-20px;}
.scrollButtons.right {right:-20px;}
.hide {display:none;}

HTML

And the actual code in this article (minus the content of course) is this one below. I hope you found this interesting, and that it will work out just dandy for you.

<div id="slider">
<ul class="navigation">
<li><a href="#how">How to</a></li>
<li><a href="#download">Download</a></li>
<li><a href="#install">Install</a></li>
<li><a href="#editing">Editing</a></li>
<li><a href="#css">CSS</a></li>
<li><a href="#coda">Coda</a></li>
</ul>
<div class="scroll">
<div class="scrollContainer">
<div class="panel" id="how">
<h2>How to</h2>
<p>content</p>
</div>

<div class="panel" id="download">
<h2>Download</h2>
<p>content</p>
</div>

<div class="panel" id="install">
<h2>Install</h2>
<p>content</p>
</div>

<div class="panel" id="editing">
<h2>Editing</h2>
<p>content</p>
</div>

<div class="panel" id="css">
<h2>CSS</h2>
<p>content</p>
</div>

<div class="panel" id="html">
<h2>HTML</h2>
<p>content</p>
</div>

</div>
</div>
</div>

 

Comments

sasha 23.04.2009. 05:06

sasha
You can use this slider for gallery just top of menu change to no# and you going to have nice small gallery :)

Matt 16.04.2009. 23:35

Matt
Damn, that is a pretty delicious slider Patric. Now, how to implement it cleanly within sNews? Hmmm, now that may take some considerable effort, as everyone's use of it would likely be different?

I personally like the way you've shown it here, perhaps this could be used to show multiple "pages" for an article, i.e. create a second break type tag, something like [pagebreak] for each content box?

Damn jury duty is killing me, two weeks now! Gotta go back yet again tomorrow :/

Click here to leave comment

Write a comment

* = required field

:

:

:

:


LiveZilla Live Help

Notes

DISCLAIMER

This is my personal site, and I try to perform accordingly to webstandards. However, Internet Explorer cannot submit fully to this, and therefor I do not code my own site to support Internet Explorer. Again p-ahlqvist.com do not support Internet Explorer (IE). And anything not behaving as expected in IE is, well... Please download a proper web browser, and make your browsing experience a better one. I do personally use Mozilla Firefox and do recommend it.

p-ahlqvist.com CREDITS

This site is based upon Poppolls sNews version sNews4in1. I would like to thank him for this. I would without further ado, also thank the following for more or less helping me either with this site, or with other things which have led to this site's re-launch. So, my heartwarming thanks and eternal pal'ship to:

Poppoll
Philmoz
Sasha
Keyrock
Luka
Luka is also responsible for the creation of sNews CMS

If I have forgotten to mention anyone whom have been of value to me, this wasn't intentionally. Please contact me and I will of course adjust this immediately.

What CMS should I use ?

There is a lot of discussions about what CMS is the best, and everybody have their own say on the matter. I say, it all depends on your needs.

I am speaking highly, and using both on my own site and the one's I make, of sNews CMS. sNews is a completely free, standards compliant, PHP and MySQL driven Content Management System. sNews is extremely lightweight, simple and customizable. It's easy to install, and easy to use via a simple web interface. sNews consists of only one core engine file, one independent template file and its accompanying CSS stylesheet file, plus an .htaccess file that makes all URLs search engine friendly.

If you have any doubts about wht CMS to choose, please try sNews CMS

CSS resource.
AJAX resource.
Photoshop resource.

Most downloaded sNews templates

11405 templates downloaded in total.

And the 6 most popular is: counter re-set 09-11-20

Website 4 U

I'am at your service. I will produce a CSS/XHTML valid site based upon sNews CMS, a single file, SEO optimized, content managment system. And Joomla, another free CMS.

Advertising

Advertising on p-ahlqvist.com is cheap. If you want to place an ad with me, please contact me for a free consultation.

Rock Band

You're in a local Rock Band in my region. Please contact me if you want free online exposure. You will get visible to many people, and possibly this will lead to something.

Sponsors

  • Eatlon.com
  • sNews CMS
  • iWebtool
  • BidSeoLink.com
  • Search Engine Submission - AddMe