Code

Line highlighting using css.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 8 Apr 2006 18:09:23 +0000 (18:09 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 8 Apr 2006 18:09:23 +0000 (18:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3015 594d385d-05f5-0310-b6e9-bd551577e9d8

html/include/focus.js
html/themes/default/style.css
include/class_divlist.inc

index 485524eaf8e04cab88b8c97ee47d39c1b0baf591..3768f4995d503e7c7b49dc807ac58f05d3234fdf 100644 (file)
@@ -250,23 +250,4 @@ function adjust_width(e) {
        }
 }
 
-function highlight(e) {
-       if(e) {
-               for(i=0;i<e.parentNode.getElementsByTagName('td').length;i++) {
-                       e.parentNode.getElementsByTagName('td')[i].style.background='#D8D8D8';
-               }
-       }
-}
-
-function unhighlight(e,style) {
-       if(e && style) {
-               for(i=0;i<e.parentNode.getElementsByTagName('td').length;i++) {
-                       if(style=='list0') {
-                               e.parentNode.getElementsByTagName('td')[i].style.background='#F0F0F0';
-                       } else {
-                               e.parentNode.getElementsByTagName('td')[i].style.background='#FFFFFF';
-                       }
-               }
-       }
-}
 // vim:ts=2:syntax
index dce67b86c41acfc65ab102ec2ee9d0bcdaf25954..1956801cf776c13879035db8cac8aa3628a77d8a 100644 (file)
@@ -74,17 +74,21 @@ td.listheader#scrollbar {
        border-right:0px;
 }
 
+tr.rowxp0 {
+       background:white;
+}
+
+tr.rowxp0:hover {
+       background:#d2f6c2;
+}
+
 td.list0 {
-       background:#F0F0F0;
+       background:transparent;
        border-right:1px solid #C0C0C0;
        padding:3px;
        height:22px;
 }
 
-td.list0:hover {
-       background:#D8D8D8;
-}
-
 td.list0#icon {
        width:20px;
        text-align:center;
@@ -123,8 +127,16 @@ td.list0#actions {
        text-align:right;
 }
 
+tr.rowxp1 {
+       background:#F0F0F0;
+}
+
+tr.rowxp1:hover {
+       background:#d2f6c2;
+}
+
 td.list1 {
-       background:white;
+       background:transparent;
        border-right:1px solid #C0C0C0;
        padding:3px;
        height:22px;
@@ -137,10 +149,6 @@ td.list1nohighlight {
        height:22px;
 }
 
-td.list1:hover {
-       background:#D8D8D8;
-}
-
 td.list1#fill {
        height:100%;
 }
index 1cfbf8e3bf30ba0182e5ebd3233190efdcc6f90b..5448a87828cd776193939caa7f2cc7c84668f800 100644 (file)
@@ -176,7 +176,7 @@ class divlist {
                                
                                if($i_alternate) $i_alternate=0; else $i_alternate=1;
                                
-                               $s_return .= "\n<tr class='rowxp'>";
+                               $s_return .= "\n<tr>";
                                
                                $cnt = 0;                                       
                                        
@@ -241,7 +241,7 @@ class divlist {
             $i_alternate=1;
           }
                  
-          $s_return .= "\n<tr>";
+          $s_return .= "\n<tr class='rowxp".$i_alternate."'>";
                                  
                    $cnt = 0;                                   
                                          
@@ -262,7 +262,7 @@ class divlist {
                                          $style = " ".$s_value2['attach']." "  ;
                                  }
             
-            $s_return .= "\n<td ".$style." class='".$class."' onmouseover='highlight(this);' onmouseout='unhighlight(this,\"list".$i_alternate."\");'>";
+            $s_return .= "\n<td ".$style." class='".$class."'>";
                                  $s_return .= $s_value2['string'];
                                  $s_return .= "</td>";
                          }