Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread Poll:
Author: Subject: why start value of n_value not 3?
geoffcox
Junior Member

Posts: 8
Registered: 7/25/2006
Member Is Offline
posted on 3/31/2007 at 08:56 AM Reply With Quote
why start value of n_value not 3?


Hello,

I have following page working except that I want the starting position for the sliders to be 3. I must be missing something?

Cheers

Geoff

<html>
<head>
<title>slider2</title>
<script language="JavaScript" src="slider.js"></script>

<script language="JavaScript">
var A_TPL = {
'b_vertical' : false,
'b_watch': false,
'n_controlWidth': 120,
'n_controlHeight': 16,
'n_sliderWidth': 16,
'n_sliderHeight': 15,
'n_pathLeft' : 1,
'n_pathTop' : 1,
'n_pathLength' : 103,
's_imgControl': 'img/blueh_bg.gif',
's_imgSlider': 'img/blueh_sl.gif',
'n_zIndex': 1
}

var A_INIT1 = {
's_form' : 0,
's_name': 'sliderValue1',
'n_minValue' : 1,
'n_maxValue' : 6,
'n_value' : 3,
'n_step' : 1
}

var A_INIT2 = {
's_form' : 0,
's_name': 'sliderValue2',
'n_minValue' : 1,
'n_maxValue' : 6,
'n_value' : 3,
'n_step' : 1
}

</script>
</head>

<body>

<form action="cgi-bin/formmail-tigra-slider.cgi" method="post" name="demoForm1">
<input type="hidden" name="recipient" value="extraemails">

<table width="440" height="225" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td valign="top">
<input name="sliderValue1" id="sliderValue1" type="hidden" size="3">
<script language="JavaScript">new slider(A_INIT1, A_TPL);</script></td></tr>
<tr><td valign="top">
<input name="sliderValue2" id="sliderValue2" type="hidden" size="3">
<script language="JavaScript">new slider(A_INIT2, A_TPL);</script></td>
</tr>
</table>

<input name="Submit" type="Submit" value="Next">

</form>

</body>
</html>
View User's Profile View All Posts By User U2U Member
Post new thread Poll:

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Designs
Equalizer
Free Download Free Download
Product Documentation Documentation:
Documentation Page
Change Log
Support Forum Support Forum

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004