Hi I am posting a javascript code for text slideshow. The problem in this code is it is generating the slideshow in a random manner. But I want the slides to display in the specified manner. The trick lies in the line a=Math.floor(Math.random()*quotations.length), I hope. But I dont know how. Please help.
<SCRIPT type="text/javascript">
var quotations = new Array()
quotations[0]= "1. Iron pnictides RFe<sub>2</sub>As<sub>2</sub>(R = Ca, Sr, Eu etc.)."
quotations[1]= "2. Iron Chalcogenides Fe(TeSe)."
quotations[2]= "3. Topological insulators."
quotations[3]= "4. Surface and interface states."
quotations[4]= "5. Diluted magnetic semiconductors."
Bookmarks