PDA

View Full Version : Featured Content Slider Get Option Value To Jump slide



davelf
04-16-2013, 03:51 AM
1) Script Title: Featured Content Slider

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm

3) Describe problem:
How to get the option value to make the content slider jump to a specific slide.
For example this code:


<div class="contentdiv">
<select>
<option value="1">Menu 1</option>
<option value="2">Menu 2</option>
<option value="3">Menu 3</option>
</select>
<p></p><a href="javascript:featuredcontentslider.jumpTo('slider2', 1)">Go to Menu</a></p>
</div>


Online Version (http://www.metablast.net/dynamic)

Beverleyh
04-16-2013, 05:21 AM
Maybe an onChange handler is the solution for you: http://stackoverflow.com/questions/12287672/links-in-select-dropdown-options

vwphillips
04-16-2013, 09:58 AM
<div id="slider1" class="sliderwrapper">

<div class="contentdiv">
Content 1 Here. <br />
<p></p><a href="javascript:featuredcontentslider.jumpTo('slider1', 3)">Go to 3rd slide</a></p>
<select onchange="featuredcontentslider.jumpTo('slider1', this.value);">
<option value="1">Menu 1</option>
<option value="2">Menu 2</option>
<option value="3">Menu 3</option>
</select>
</div>

<div class="contentdiv">
Content 2 Here.
</div>

<div class="contentdiv">
Content 3 Here.
</div>

</div>

<div id="paginate-slider1" class="pagination">

</div>