From e036cea853d144d56487f9f02bc785a40a186bbf Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 26 Mar 2013 14:22:40 +0000 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=AE=A1=E7=AE=97=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E9=A1=B5=E9=9D=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/layouts/layout.phtml | 15 +++++++++------ htdocs/js/navi.js | 8 ++++---- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/application/layouts/layout.phtml b/application/layouts/layout.phtml index 05e63faa..4287dc71 100755 --- a/application/layouts/layout.phtml +++ b/application/layouts/layout.phtml @@ -3,11 +3,12 @@ headTitle() ?> - - - + + + - + + headScript() ?> headLink() ?> headStyle() ?> @@ -17,7 +18,8 @@
- render('header.phtml') ?> + render('header.phtml') ?> + layout()->content ?> render('footer.phtml') ?>
@@ -32,5 +34,6 @@ piwikTracker.trackPageView(); piwikTracker.enableLinkTracking(); } catch( err ) {} - + + \ No newline at end of file diff --git a/htdocs/js/navi.js b/htdocs/js/navi.js index a8519ed6..a276f38b 100755 --- a/htdocs/js/navi.js +++ b/htdocs/js/navi.js @@ -15,8 +15,8 @@ function extractPageName(hrefString) { if (arr[i].parentNode.tagName != "DIV") { - arr[i].className = "current"; - arr[i].parentNode.className = "current"; + arr[i].className = "active"; + arr[i].parentNode.className = "active"; } } } @@ -26,6 +26,6 @@ function extractPageName(hrefString) { hrefString = document.location.href ? document.location.href : document.location; - if (document.getElementById("divNavi")!=null) - setActiveMenu(document.getElementById("divNavi").getElementsByTagName("a"), extractPageName(hrefString)); + if (document.getElementById("mainmenu")!=null) + setActiveMenu(document.getElementById("mainmenu").getElementsByTagName("a"), extractPageName(hrefString)); } \ No newline at end of file