July 09, 2009
Witsdom: Still Tweaking AFter All These Years

Once upon a time, when you hovered over a link in the top navigator on Witsdom, the link would show with a yellow background...

Somewhere along the line, I lost this functionality.

Now I realize that I am probably the only person who ever visits Witsdom anymore, and no one else would know or care, but it started bugging me.

So, I fixed it.

I don't know how it used to work, but the way it works now is to use the onmouseover and onmouseout constructs as in the following example:

<A href="/main.shtml" style="text-decoration:none; color:#000000" onmouseover="window.status='Main'; this.style.backgroundColor='yellow';return true;" onmouseout="window.status='Welcome to David\'s Home Page'; this.style.backgroundColor='#689EC5';return true;">Main</A>

 


There was probably a more elegant approach, but this accomplished what I wanted with a minimum of effort.


The example above is also supposed to display a message in the status bar at the bottom of the page when one hovers, but this functionality isn't working, and I'm not going to worry about fixing it.

Digg It!  Digg It!   del.icio.us bookmark  Bookmark it!  

Posted by David at July 09, 2009 07:31 PM | Categorized under: A day in the life, Blog tips, My blog