JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 12th, 2011, 06:43 AM
staticbuddha staticbuddha is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2011
Posts: 1 staticbuddha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 9 sec
Reputation Power: 0
Smile Need Help Debugging Script/Error in Script - Slider - need it to display 2 decimal places

Hi

I have modded a script I found online but am having problems making it display 2 decimals places , any ideas?

The code:
window.addEvent('domready', function() {
// In this slilder example silder moves 10 steps with an increament of 15 in every step
var mySlideC = new Slider($('slider_gutter_C'), $('slider_knob_C'), $('slider_bkg_img_C'),{
start: 0,
end: 250,
offset:0,
snap:true,
numsteps:250,
onChange: function(pos){
$('slider_current_val_2').setHTML(pos ); $('slider_current_val_3').setHTML( '' + pos / 2.50 ) ;

}
}, null).setMin(25);
$('slider_current_val_2').setHTML(25);$('slider_cu rrent_val_3').setHTML('' + 10.40);});


cheers
stuart

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Need Help Debugging Script/Error in Script - Slider - need it to display 2 decimal places


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap