/    Sign up×
Community /Pin to ProfileBookmark

Changing the default slider JQ UI

With JQ UI create a standard slider. Wherever found written how to change some of its parameters: size, min.size, the maximum …
But never found a place as a standard for JQ UI slider to make your: put a picture. That is: change the slider.

[code=html]<!doctype html>
<html lang=”en”>
<head>
<meta charset=”utf-8″ />
<title>jQuery UI Slider – Default functionality</title>
<link rel=”stylesheet” href=”http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css” />
<script src=”http://code.jquery.com/jquery-1.9.1.js”></script>
<script src=”http://code.jquery.com/ui/1.10.3/jquery-ui.js”></script>
<link rel=”stylesheet” href=”/resources/demos/style.css” />
<style>
#slider-vertical{height: 600px; background-color: #0F3;}
</style>
<script>
$(function() {
$( “#slider-vertical” ).slider({
orientation: “vertical”,
range: “min”,
min: 0,
max: 100,
value: 60,
slide: function( event, ui ) {
$( “#amount” ).val( ui.value );
}
});
});
</script>
</head>
<body>
<div id=”slider-vertical”></div>
</body>
</html>[/code]

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@UltraFreizerauthorAug 21.2013 — I found the answer. Topic closed.
×

Success!

Help @UltraFreizer spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...