PDA

View Full Version : Removing Random property from rotating banner



mavericks18
11-12-2011, 11:53 PM
I am new to JavaScript and I am having trouble removing the random image order from my rotating banner. I want the images to rotate in a specific order and I can't figure it out. Please Help! The link to the test page with the JavaScript is below.

http://ives.bz/graham/coors.html

Thanks

jscheuer1
11-13-2011, 01:22 AM
.

Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.

In this case this perhaps deserves some explanation. That is an older version of The Ultimate Fade In Slideshow by Dynamic Drive. As such it requires the credit to be on the page (addition highlighted):


<script type="text/javascript">
/***********************************************
* Ultimate Fade-In Slideshow: (c) Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["images/stock_barley1.jpg",""]
fadeimages[1]=["images/stock_barleygray.png",""]
fadeimages[2]=["images/stock_bar_s . . .



To answer your question, change this:


<div class="java" id="java"><script type="text/javascript">
new fadeshow(fadeimages, 766, 260, 0, 3000, 1, "R")
</script></div>

to:


<div class="java" id="java"><script type="text/javascript">
new fadeshow(fadeimages, 766, 260, 0, 3000, 1)
</script></div>