Team:UNIK Copenhagen/test3
From 2014.igem.org
(Difference between revisions)
(14 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<style type="text/css"> | <style type="text/css"> | ||
- | + | .helpicon{vertical-align:text-top;} | |
- | + | .hand{cursor:hand; | |
- | + | cursor:pointer;} | |
- | + | ||
- | } | + | .hidden{display:none;} |
+ | |||
+ | .modalicon{vertical-align:bottom; | ||
+ | margin-right5px;} | ||
+ | |||
</style> | </style> | ||
- | <script>(function() {with [this[2]) {with (this[1]) {widht (this[0]) {return function(event) {initDialog('# | + | <script>(function() {with [this[2]) {with (this[1]) {widht (this[0]) {return function(event) {initDialog('#helpprojekttitel', 'Hjælp', null, null, null);};}}}}) |
+ | </script> | ||
+ | |||
+ | <SCRIPT> | ||
+ | function initDialog(target, title, focus, completecode, closecode) { | ||
+ | $(target).dialog( { | ||
+ | modal: true, | ||
+ | //title: title, | ||
+ | width: 450, | ||
+ | closeText: 'Luk', | ||
+ | buttons: { Ok: function () { $(this).dialog('close'); } }, | ||
+ | open: function (event, ui) { if (focus !=null) {$(focus).focus(); } if (completecode !=null) {setTimeout(completecode, 50);}}, | ||
+ | close: function (event, ui) { if (closecode !=null){ eval(closecode); } } | ||
+ | }); | ||
+ | } | ||
+ | </script> | ||
+ | |||
+ | <div id="helpprojekttitel" class="hidden"><h2><img src="https://static.igem.org/mediawiki/2014/e/ed/Team_UNIK_Copenhagen_go_to_the_top.PNG" width="24" height="24" class="modalicon" alt="" />Hjælp</h2>Blablablablablablab</div> | ||
- | |||
<img src="https://static.igem.org/mediawiki/2014/e/ed/Team_UNIK_Copenhagen_go_to_the_top.PNG" title="Hjælp" alt="Hjælp" width="12" height="12" class="helpicon hand" onclick="initDialog('#helpprojekttitel', 'Hjælp', null, null, null);" /> | <img src="https://static.igem.org/mediawiki/2014/e/ed/Team_UNIK_Copenhagen_go_to_the_top.PNG" title="Hjælp" alt="Hjælp" width="12" height="12" class="helpicon hand" onclick="initDialog('#helpprojekttitel', 'Hjælp', null, null, null);" /> | ||
+ | |||
+ | |||
- | |||
</html> | </html> |
Latest revision as of 20:12, 16 August 2014