title: Error: Uncaught SyntaxError: Unexpected token
body: <p>In the following code i have error <code>Uncaught SyntaxError: Unexpected token ;</code> in line 98 (this line has been determined in code), I want put codes in a function (like: <code>tooltip()</code>) but get error, how is fix it?</p>
  
  <p>My code that have error:</p>
  
  <pre><code>function tool_tip() {
      $('.tooltip_hover').hover(function () {
          var $tooltip = $(this).prev();
          //var $tooltip = $('.tooltip');
          var offset = $(this).offset();
          var delay = setTimeout(function () {
              $tooltip.fadeIn();
  
              var width = $tooltip.outerWidth();
              var p_top = offset.top;
              var tt_ht = $tooltip.height();
              p_top = (p_top + tt_ht &gt; $(window).height()) ? p_top - tt_ht : p_top;
              var p_left = offset.right - width;
  
              $tooltip.css({
                  top: p_top,
                  right: p_left
              }).fadeIn(180);
  
          }, 280);
  
          $(this).data('delay', delay);
          $(this).data('tooltip', $tooltip);
  
      }, function () {
          delay = $(this).data('delay');
          $tooltip = $(this).data('tooltip');
          $('.tooltip').hide();
          clearInterval(delay);
  
      });
  }); // this is line 98
  </code></pre>