head 1.15; access; symbols; locks; strict; comment @# @; 1.15 date 2007.06.21.08.41.52; author openpkg; state Exp; branches; next 1.14; commitid E3ALEgDFkYfc0Lms; 1.14 date 2007.02.08.12.26.58; author rse; state Exp; branches; next 1.13; commitid 7mfQ3FGzxJAtwG5s; 1.13 date 2006.07.28.09.53.35; author rse; state Exp; branches; next 1.12; commitid 4J7yMKSAHh8tWBGr; 1.12 date 2006.03.23.17.20.44; author rse; state Exp; branches; next 1.11; commitid 3iW4PHZPpabYukqr; 1.11 date 2006.03.14.18.51.04; author rse; state Exp; branches; next 1.10; commitid VtKBiY8Kp0xThbpr; 1.10 date 2006.03.13.18.45.25; author rse; state Exp; branches; next 1.9; commitid WmjTyNFVcL1Vh3pr; 1.9 date 2006.03.12.19.16.36; author rse; state Exp; branches; next 1.8; commitid B23qzzqu5d3CuVor; 1.8 date 2006.03.11.16.32.59; author rse; state Exp; branches; next 1.7; commitid Sc38vyOyirIuCMor; 1.7 date 2006.03.09.20.59.05; author rse; state Exp; branches; next 1.6; commitid b1GIjTW3Y0vM9yor; 1.6 date 2006.03.09.19.12.10; author rse; state Exp; branches; next 1.5; commitid epriXSkS92w5zxor; 1.5 date 2006.02.20.08.34.35; author rse; state Exp; branches; next 1.4; commitid XGwb4UIHrCifAimr; 1.4 date 2006.02.17.08.59.45; author rse; state Exp; branches; next 1.3; commitid iogEp2hgTxvROUlr; 1.3 date 2005.11.27.13.30.59; author rse; state Exp; branches; next 1.2; commitid VLeS3H60IwUjXobr; 1.2 date 2005.11.27.13.12.35; author rse; state Exp; branches; next 1.1; commitid rq2MkvS3rCt0Robr; 1.1 date 2005.11.25.16.20.58; author rse; state Exp; branches; next ; commitid c9X5QxZIdGHCX9br; desc @@ 1.15 log @flush and save current state of CVS controlled data @ text @ ul.navtab { padding: 0px; margin: 0px; height: 20px; list-style: none; } ul.navtab li { display: inline; float: left; border-top: 1px solid #c0b0a0; border-left: 1px solid #c0b0a0; border-right: 1px solid #504030; border-bottom: none; margin: 0px 2px 0px 0px; padding: 1px 6px 0px 6px; height: 18px; background-attachment: scroll; background-repeat: no-repeat; /* FIXME: doesn't work for Konqueror */ background-position: left top; background-image: url('canvas/canvas-crop-glass-light-T.png'); color: #333333; } ul.navtab li.active { border-top: 1px solid #f5f5f5; border-left: 1px solid #f0f0f0; border-right: 1px solid #333333; background-position: 0px 0px; /* dynamically adjusted! (see below) */ background-image: url('canvas/canvas-crop-background.jpg'); background-color: #ffffff; color: #000000; } ul.navtab li.inactive:hover { border-top: 1px solid #807060; border-left: 1px solid #807060; border-right: 1px solid #504030; background-position: left top; background-image: url('canvas/canvas-crop-glass-dark-T.png'); } ul.navtab li a { text-decoration: none; font-weight: normal; font-family: tahoma,helvetica,lucida,verdana,arial,sans-serif; font-size: 9pt; color: #000000; } ul.navtab li.active a { font-weight: bold; } ul.navtab li.inactive a:visited { color: #000000; font-weight: normal; text-decoration: none; } ul.navtab li.inactive a:link { color: #000000; font-weight: normal; text-decoration: none; } ul.navtab li.inactive a:hover { color: #000000; font-weight: normal; text-decoration: none; } /* define tab background update function */ function nav_tab_update (e) { /* determine outer canvas box and active navigation tab */ var box = DOM.getNode("div#canvas")[0]; var tab = DOM.getNode("ul.navtab li.active")[0]; /* determine viewport-relative positions of the two elements */ var box_pos = DOM.getPosition(box); var tab_pos = DOM.getPosition(tab); /* determine effective width of box and its background image */ var box_width = 800; // $(box).width() + 0; // var box_width = DOM.getStyle(box, "width") || "0px"; YUI returns "auto", JQuery is able to determine width // box_width = box_width.replace(/px/, "") - 0; var img_width = 720; /* FIXME: hard-coded width of background image */ /* re-calculate and set new position of tab background image */ var x = box_pos.x + box_width - img_width - tab_pos.x; var y = box_pos.y - tab_pos.y; DOM.setStyle(tab, "backgroundPosition", x+'px '+y+'px'); } /* activate tab background update function */ DOM.setEvent(window, "resize", nav_tab_update); DOM.setEvent(window, "load", nav_tab_update);
@ 1.14 log @flush all pending changes to meta.openpkg.org @ text @d111 3 a113 2 var box_width = DOM.getStyle(box, "width") || "0px"; box_width = box_width.replace(/px/, "") - 0; @ 1.13 log @avoid variable 'this' as this is a PHP5 OO feature @ text @d142 3 a144 3">OpenPKG Project | ">OpenPKG Corporation | ">OpenPKG Foundation |