Board Logo

why start value of n_value not 3?
geoffcox - 3/31/2007 at 08:56 AM

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>


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/