svn: /web/php/trunk/ js/common.js styles/doc.css

[email protected] (Paul Dragoonis)
Newsgroups php.webmaster
Message-ID <[email protected]>
dragoonis                                Fri, 31 Dec 2010 05:35:23 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=306899

Log:
Adding alternate row colors

Changed paths:
    U   web/php/trunk/js/common.js
    U   web/php/trunk/styles/doc.css

Modified: web/php/trunk/js/common.js
===================================================================
--- web/php/trunk/js/common.js	2010-12-31 05:08:53 UTC (rev 306898)
+++ web/php/trunk/js/common.js	2010-12-31 05:35:23 UTC (rev 306899)
@@ -121,6 +121,10 @@
         $(this).append("<a class='genanchor' href='#" + $(this).parent().attr("id") + "'> ¶</a>");
     });

+    if($('.docs table.doctable').length) {
+        $('tbody tr:even').addClass("alt-row")
+    }
+
 });

 /**

Modified: web/php/trunk/styles/doc.css
===================================================================
--- web/php/trunk/styles/doc.css	2010-12-31 05:08:53 UTC (rev 306898)
+++ web/php/trunk/styles/doc.css	2010-12-31 05:35:23 UTC (rev 306899)
@@ -143,12 +143,13 @@
     padding: 2px 5px;
 }

+.docs .doctable tr.alt-row {
+    background-color: #EFEFEF;
+}
+
 .docs .doctable {
     margin: 3px 30px;
 }
-.docs .doctable tbody tr:hover {
-    background-color: #EFEFEF;
-}
 .docs .doctable th {
     border-bottom: 1px solid #987db3;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.