正式釋出
萌典查詢區塊
<script type="text/javascript">
  $(document).ready(function(){
    $('#get_moedict').colorbox({iframe:true , width:'80%' , height:'90%'});
    $("#get_moedict").click(function(event) {
      $("#get_moedict").attr("href","https://www.moedict.tw/"+$('#search_moedict').val());
    });
 
    $("#search_moedict").keypress(function(e){
      code = (e.keyCode ? e.keyCode : e.which);
      if (code == 13)
      {
        // alert("https://www.moedict.tw/"+$('#search_moedict').val());
        $.colorbox({
          href:"https://www.moedict.tw/"+$('#search_moedict').val(),
          iframe:true ,
          width:'80%' ,
          height:'90%'});
      }
    });
  });
</script>
<div class="input-group">
  <input type="text" id="search_moedict" class="form-control" placeholder="請輸入生字或生詞" title="萌典查詢">
  <span class="input-group-btn">
    <a href="#" class="btn btn-primary cboxElement" id="get_moedict">查生字</a>
  </span>
</div>HTML
                左邊
                            正式釋出