Advertisement
mhdew

fall 19

Jul 19th, 2020
1,038
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sec(tmp){
  2.     if(tmp=="btn1"){
  3.         tmp1=document.getElementById("#ids1");
  4.         tmp1.style.borderWidth="1px";
  5.         tmp1=document.getElementById("#ids2");
  6.         tmp1.style.borderWidth="0px";
  7.         tmp1=document.getElementById("#ids3");
  8.         tmp1.style.borderWidth="0px";
  9.     }
  10.     else if(tmp=="btn2"){
  11.         tmp1=document.getElementById("#ids1");
  12.         tmp1.style.borderWidth="0px";
  13.         tmp1=document.getElementById("#ids2");
  14.         tmp1.style.borderWidth="1px";
  15.         tmp1=document.getElementById("#ids3");
  16.         tmp1.style.borderWidth="0px";
  17.     }
  18.     else if(tmp=="btn3"){
  19.         tmp1=document.getElementById("#ids1");
  20.         tmp1.style.borderWidth="0px";
  21.         tmp1=document.getElementById("#ids2");
  22.         tmp1.style.borderWidth="0px";
  23.         tmp1=document.getElementById("#ids3");
  24.         tmp1.style.borderWidth="1px";
  25.     }
  26. }
  27.  
  28. var ar=["You might not think that's cricket, and it's not, it's motor racing.",
  29. "I think all versions of limited-overs cricket have attracted more people to the game.",
  30. "The only thing I've ever been interested in teaching anyone in life is cricket.",
  31. "People throw stones at you and you convert them into milestones.",
  32. "Don't stop chasing your dreams, because dreams do come true.",
  33. "As far as the World Cup is concerned, it is a process. We don't want to jump to the 50th floor straight away. We must start on the ground floor."];
  34.  
  35. function statement(){
  36.     var tmp0=Math.floor(Math.random()*10);
  37.     tmp0%=ar.length;
  38.     document.getElementById("s3p").innerHTML=ar[tmp0];
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement