支援 https 網站
Dr.eye 英漢字典搜尋區塊,使用時,請輸入英文即可。
<script type="text/javascript">
 
  $(document).ready(function(){
 
    $('#get_dreyedict').colorbox({iframe:true , width:'640' , height:'90%'});
 
    $("#get_dreyedict").click(function(event) {
      $("#get_dreyedict").attr("href","https://yun.dreye.com/dict_new/dict_min.php?w="+$('#search_dreyedict').val());
    });
 
    $("#search_dreyedict").keypress(function(e){
      code = (e.keyCode ? e.keyCode : e.which);
      if (code == 13)
      {
        $.colorbox({
          href:"https://yun.dreye.com/dict_new/dict_min.php?w="+$('#search_dreyedict').val(),
          iframe:true ,
          width:'640' ,
          height:'90%'});
      }
    });
  });
</script>
<div class="input-group">
  <label for="search_dreyedict" class="sr-only">英文單字</label>
  <input type="text" id="search_dreyedict" class="form-control" placeholder="英文單字">
  <span class="input-group-btn">
    <a href="#" class="btn btn-primary" id="get_dreyedict">查單字</a>
  </span>
</div>HTML
                左邊
                            支援 https 網站
正式釋出