Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.92 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var UIXButtonBar =
  2. {
  3.         close: function()
  4.         {
  5.                 $("div#UIXButtonBar").animate({ width: "55px" }).animate({ opacity: 0.5, height: "0%" });      
  6.         },
  7.         open: function()
  8.         {
  9.                 $("div#UIXButtonBar").animate({ opacity: 1, height: "73px", width: "55px" }).animate({ opacity: 1, width: "415px" });  
  10.         },
  11.         init: function()
  12.         {
  13.                 $("div.UIXButtonBarButton").mouseover( function()
  14.                 {
  15.                         $(this).css({
  16.                                 "backgroundColor": "transparent",  
  17.                                 "backgroundImage": "url(resources/bg.png)",
  18.                                 "backgroundRepeat": "repeat",
  19.                                 "border-bottom": "solid 2px #e7e7e7"
  20.                         });
  21.                 });
  22.                 $("div.UIXButtonBarButton").mouseout( function()
  23.                 {
  24.                         $(this).css({
  25.                                 "backgroundImage": "none",
  26.                                 "border-bottom": "solid 2px black"
  27.                         });
  28.                 });
  29.                 $("div.UIXButtonBarButton a").click( function(event)
  30.                 {      
  31.                         event.preventDefault();
  32.                         $("div#UIXButtonBar").animate({ width: "55px" }).animate({ opacity: 0.5, height: "0%" });      
  33.                 });
  34.         }
  35. };