Javascripts > Javascript Links > Animated Link Box
Script Title: Animated Link Box
Description: A cool animated combo box for containing your favorite links!
Example: Available
Copy the following code between the <BODY></BODY> tags of your html page.<form name="take" > <table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><select name="take2" size="5" style="width:200px"> <option value="http://www.java-scripts.net">Java-Scripts.net</option> <option value="http://www.wsabstract.com">Website Abstraction</option> <option selected value="http://www.dynamicdrive.com">Dynamic Drive</option> <option value="http://www.webmonkey.com">Webmonkey</option> <option value="http://www.freewarejava.com">Freewarejava.com</option> </select> <script> <!-- //Animated Link Box script- By Website Abstraction //(http://www.wsabstract.com) //Credit must stay intact for use //specify # of frames for animation (integer above 2) var setframes=6 /////no need to edit below here/////////// var selected=-1 var switchit=-1 var cycle=0 function animate_go(){ if (cycle>=setframes){ document.take.take2.selectedIndex =selected window.location=document.take.take2.options[document.take.take2.selectedIndex].value return } switchit=(switchit==-1)? selected : -1 document.take.take2.selectedIndex =switchit cycle++ setTimeout("animate_go()",100) } //--> </script> </td> </tr> <tr> <td width="100%"><div align="center"><p><input type="button" value="Go there>>" name="B1" onClick="selected=document.take.take2.selectedIndex;cycle=0;animate_go()"></div></td> </tr> </table> </form>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email