Difference between revisions of "Template:Copenhagen-Header"

Line 855: Line 855:
  
  
$('#yourLink').click(function(){
+
$('#tt').on({
  $('#tooltip').toggle();
+
  "click": function() {
 +
    $(this).tooltip({ items: "#tt", content: "Displaying on click"});
 +
    $(this).tooltip("open");
 +
  },
 +
  "mouseout": function() {     
 +
    $(this).tooltip("disable");  
 +
  }
 
});
 
});
 
$('a').tooltip({         
 
    disabled: true,
 
    close: function( event, ui ) { $(this).tooltip('disable'); }
 
    });
 
 
  $('a').on('click', function () {
 
    $(this).tooltip('enable').tooltip('open');
 
  });
 
  
 
</script>
 
</script>

Revision as of 08:21, 31 October 2017