The most worrying is what to eat at noon every day, have time to do a JavaScript carousel random selection. The pre-custom menu is carousel, and then the point is selected to determine a paragraph. The code can view the source code on this page, and you can customize the menu array.
The effect demo is ready for lunch.
JavaScript Code
You can modify the definition of the lunch of the array yourself, make a meal selection script it! Suiping County Ausson Advertising
<script type= "Text/javascript" >//here to modify the meal, separated by commas var foodname = ' Ramen, canteen, takeaway, KFC, Pizza hat, comes with ... '; var foodnamearray = Foodname.split (', '); var num = Foodnamearray.length-1;var timer;function $ (o) {return document.getElementById (o);} function Change () {$ (' foodname '). InnerHTML = Foodnamearray[getrun (0,num)];} function Getrun (_min,_max) {return parseint (Math.random () * (_max-_min+1));} function Start () {clearinterval (timer); timer = setinterval (' Change () ', 30);} function Stop () {clearinterval (timer);} </script>
Let JS help you decide what to eat for lunch.