js onclick

<SCRIPT language="JavaScript" type="text/javascript">
  <!--
function ttt(m,n)
  {
   if(getObject('tab_'+m+'_'+n).style.display=='')
   {
    return true;
   }
   else
   {
    return false;
   }
  }
function getObject(objectId) {
   if(document.getElementById && document.getElementById(objectId)) {
   // W3C DOM
   return document.getElementById(objectId);
   } else if (document.all && document.all(objectId)) {
   // MSIE 4 DOM
   return document.all(objectId);
   } else if (document.layers && document.layers[objectId]) {
   // NN 4 DOM.. note: this won't find nested layers
   return document.layers[objectId];
   } else {
   return false;
   }
  } // getObject
  //-->
  </SCRIPT>
<a href="morenews_A4_A.aspx" onclick="return ttt(2,4)" target="_parent" class="azx3">品牌专卖</a>

你可能感兴趣的:(onclick)