'); $("#main").append(items); var newdiv = ('
'+name+''+description+''); var divname = '"'+ String(index) + '"'; console.log(divname); $("#menuslate").append(newdiv); }); // end getmenu //************************************************************************************* //******************************************************************************** // 3rd party animation lib from cycle.js window.onload =$('#menuslate').cycle({ fx: 'scrollRight', delay: -600, before: onBefore, }); function onBefore(){ var mainDiv =this.id; $("#0, #1, #2, #3, #4, #5, #6").css({'color':'#333333'}) switch(mainDiv) { case "D0": $("#0").css({'color': 'rgba(255,255,255,1)'}); break; case "D1": $("#1").css({'color': 'rgba(255,255,255,1)'}); break; case "D2": $("#2").css({'color': 'rgba(255,255,255,1)'}); break; case "D3": $("#3").css({'color': 'rgba(255,255,255,1)'}); break; case "D4": $("#4").css({'color': 'rgba(255,255,255,1)'}); break; case "D5": $("#5").css({'color': 'rgba(255,255,255,1)'}); break; case "D6": $("#6").css({'color': 'rgba(255,255,255,1)'}); break; }; } }); }; //*********************************************************** //************************************************** // Check user vars every 6 secs. // setInterval(getUserVars, 6000)