Being Framed
Posted by on 07/29/2010
#outer_container { width:500px; height:400px; overflow:hidden;-moz-border-radius:10px 10px 10px 10px;
margin:10px auto;
text-align:center;
}
.item { width:550px; height:400px; float:left; margin:0 auto;}
var current = 0;
var count;
function sliderReady() {
window.setInterval(’navigate()’, 10000);
}
$(document).ready(function() {
sliderReady();
count = $(’.item’).length;
var innerWidth = 550 * count;
$(’#inner_container’).css(’width’,innerWidth);
$(’.next’).click(function() {
navigate(’next’); // sets a value for “direction” in the function below
});
$(’.prev’).click(function() {
navigate(’prev’); // sets a value for “direction” in the function below
});
});
function navigate(direction) { // [...]



STALK US //