Team:TU Delft/menu test

From 2010.igem.org

(Difference between revisions)
Line 3: Line 3:
<!-- we only need non hover images here, hovering is done in JS -->
<!-- we only need non hover images here, hovering is done in JS -->
-
#menu_button_home {
+
#menu_button_home {
background-image: url(https://static.igem.org/mediawiki/2010/0/0f/Home_off.png);
background-image: url(https://static.igem.org/mediawiki/2010/0/0f/Home_off.png);
width:115px;
width:115px;
Line 65: Line 65:
<style>
<style>
.button_pointer { cursor:pointer; }
.button_pointer { cursor:pointer; }
-
.button_hover { }
+
.button_hover { background-color: #aaa; }
</style>
</style>
    
    
Line 72: Line 72:
   // load URL from link element
   // load URL from link element
   var url = $("*", this).attr("href");
   var url = $("*", this).attr("href");
-
  var title = $("*", this).attr("title");
 
-
 
-
  // create normal div with click action
 
-
  var button = $( $(this).html("<div>"+title+"</div>").get(0) );
 
   button.click(function() {
   button.click(function() {

Revision as of 15:37, 4 June 2010