Init from object

</> Source
<!DOCTYPE html>
	<title>Init from object</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<link rel="stylesheet" type="text/css" href="../../../codebase/fonts/font_roboto/roboto.css"/>
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
		#sliderObj {
			width: 160px;
			height: 30px;
		#sliderObj2 {
			width: 10px;
			height: 120px;
			margin-left: 70px;
		var mySlider, mySlider2;
		function doOnLoad(){
			mySlider = new dhtmlXSlider({
				parent: "sliderObj",
				size: 150,
				value: 5,
				step: 1,
				min: -10,
				max: 150
			mySlider2 = new dhtmlXSlider({
				parent: "sliderObj2",
				size: 200,
				value: 15,
				step: 5,
				min: 10,
				max: 90,
				vertical: true
		function doOnUnload(){
			if (mySlider != null){
				mySlider = null;
			if (mySlider2 != null){
				mySlider2 = null;
<body onload="doOnLoad();" onunload="doOnUnload();">
	<table cellspacing="0" cellpadding="0" border="0" class="demo_table">
			<td><div id="sliderObj"></div></td>
			<td><div id="sliderObj2"></div></td>


Check documentation to learn how to use the components and easily implement them in your applications.