I have code for moving boxes but it have slider to control speed and tilt of boxes.
I want to remove these sliders without stopping auto move effect.
Can anybody convert this code to simplest?
Please help
Thanks in advance.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Moving Boxes</title>
<style type="text/css" rel="stylesheet">
html, body {
padding: 0;
margin: 0;
background-color: #fff;
font: normal normal normal 1em/1.5 Georgia, serif;
color: #333;

h1 { text-align: center; font-weight: normal; font-style: italic; }
.holder { width: 450px; margin: 0 auto; position: relative; height: 16em; }
.moveable { height: 90px; width: 90px; cursor: pointer; }
div.box { background-color: #ffc; font-size: 2em; height: 60%; width: 1.8em; margin: 0 auto; text-align: center; border: 1px double #333; }
div.two { background-color: #f34; }
div.three { background-color: #7eb; }
div.four { background-color: #d82; }
div.five { background-color: #89f; }
div.caption { font-size: 1.4em; text-align: center; }

div.controls { text-align: center; }
div.controls a { margin-right: 1em; }
div#slider, div#slider2 { margin: 1em auto; width: 400px; }
<link href="http://fredhq.com/lib/css/jquery-ui/ui-lightness/jquery-ui-1.7.2.custom.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="http://fredhq.com/lib/js/libraries/jquery.js"></script>
<script type="text/javascript" src="http://fredhq.com/lib/js/projects/roundabout/jquery.roundabout.js"></script>
<script type="text/javascript" src="http://fredhq.com/lib/js/projects/roundabout-shapes/jquery.roundabout-shapes.js"></script>
<script type="text/javascript" src="http://fredhq.com/lib/js/plugins/jquery.easing.js"></script>
<script type="text/javascript" src="http://fredhq.com/lib/js/libraries/jquery-ui-1.7.2.custom.min.js"></script>

<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
	value: 5
	step: 0.01,
	value: 5
	easing: 'swing',
	minScale: 0.3,
	maxScale: 1.0,
	btnNext: '#next',
	btnPrev: '#prev',
	childSelector: '.moveable'

$('#to3').click(function(e) {
	return false;

$('#ease-type').change(function(e) {
$('.holder').data('roundabout').easing = $(this).val();

switch($(this).val()) {
	case 'swing':
	case 'easeOutExpo':
		$('.holder').data('roundabout').duration = 500;
	case 'easeOutBounce':
	$('.holder').data('roundabout').duration = 1200;
	case 'easeOutElastic':
	$('.holder').data('roundabout').duration = 1000;
	case 'easeInOutBack':
	$('.holder').data('roundabout').duration = 1400;

$('#shape').change(function(e) {
	$('.holder').data('roundabout').shape = $(this).val();


function doSlider() {
setInterval(function() {
	var delta = $('#slider').slider('value') / 10;
	var delta2 = $('#slider2').slider('value');


}, 50);

// ]]>

<div class="holder">
	<div class="moveable"><div class="box one">:)</div></div>
	<div class="moveable"><div class="box two"> :) </div></div>
	<div class="moveable"><div class="box three"> :) </div></div>
	<div class="moveable"><div class="box four"> :) </div></div>
	<div class="moveable"><div class="box five"> :) </div></div>

<div class="controls">			
	<div id="slider"></div>
	<div id="slider2"></div>	

Recommended Answers

All 4 Replies

Have you tried setting the display to style='display:"none";' ?

I don't want to hide slider. I want to remove following slider and respected function without stopping auto move of boxes.

<div class="controls">			
   <div id="slider"></div>
   <div id="slider2"></div>	

I have tried this


but it only hides class controls.

Have you tried setting the display to style='display:"none";' ?

As an inline style:

<div id='slider' style='display: none;'>

Thanks for reply but I don't want to just hide slider control.
I want to make changes into function.

As an inline style:
<div id='slider' style='display: none;'>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.