JQUERY simple button rotation selection effect implementation method

  • 2020-06-07 03:59:58
  • OfStack

This article describes the JQUERY simple button rotation effect implementation method. Share to everybody for everybody reference. Specific implementation methods are as follows:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> Button rotation click effect </title>
<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
 ul li{list-style-type:none;float:left;}
 <div style="position:absolute;top:6%;left:1%; ">
  <ul style="float:left">
  <li><input type="button" id="but_1" value=" Inbound number " onClick="showItem(this,'inc_call')" /> </li>
  <li><input type="button" id="but_2" onClick="showItem(this,'inc_conn_call')" value=" Call the number " /> </li>
  <li><input type="button" id="but_3" onClick="showItem(this,'rate')" value=" Manual answer rate " /> </li>
  <li><input type="button" id="but_4" onClick="showItem(this,'inc_conn_call_20s')" value="20 A second answer rate " /> </li>
  <li><input type="button" id="but_5" onClick="showItem(this,'inc_wait_duration')" value=" Wait for all long " /> </li>
<script type="text/javascript">
function showItem(obj,flag){
 for(var i=1;i<=5;i++){
 var but_id = "but_"+i;
 if( "but_"+i == obj.id ){
  document.getElementById("but_"+i).style.border ="2px solid blue";
  document.getElementById("but_"+i).style.border ="solid 1px #999";

Hopefully, this article has been helpful in your jQuery programming.

Related articles: