LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code


CSS
*{
  margin:0px;
  padding:0px;
}
body{
  background:skyblue;
}
select{
  background:yellow;
  margin-top:2%;
  margin-left:50%;
  transform:translate(-50%);
}
iframe{
    background:green;
    margin-top:2%;
    visibility:hidden;
}
#a{
  float:left;
}
#b{
  margin-left:18%;
}
#c{
  float:right;
}
JS
function myfun()
{
  var st = document.getElementById("sel").value;
  if(st == 1)
    {  document.getElementById("a").style.visibility="visible";
    }
    else{
      document.getElementById("a").style.visibility="hidden";
    }
  if(st == 2)
    {  document.getElementById("b").style.visibility="visible";
    }
    else{
      document.getElementById("b").style.visibility="hidden";
    }
  if(st == 3)
    {  document.getElementById("c").style.visibility="visible";
    }
    else{
      document.getElementById("c").style.visibility="hidden";
    }
}
Term
Sat, 04/14/2018 - 20:44

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv