summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2007-05-29 17:34:01 +0000
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2007-05-29 17:34:01 +0000
commit7d6b30829ff8ca1b0cf404a4945fb9ef87fafa99 (patch)
treef4c708c0afe4d5fb7284d67714f5082832e40e17
parent39c190e75b028a0e53217ed385711b84690fe1bb (diff)
downloadvdr-plugin-live-7d6b30829ff8ca1b0cf404a4945fb9ef87fafa99.tar.gz
vdr-plugin-live-7d6b30829ff8ca1b0cf404a4945fb9ef87fafa99.tar.bz2
- highlight now/next depending on mode
-rw-r--r--css/styles.css5
-rw-r--r--pages/whats_on.ecpp10
2 files changed, 13 insertions, 2 deletions
diff --git a/css/styles.css b/css/styles.css
index ecfb75a..01047c8 100644
--- a/css/styles.css
+++ b/css/styles.css
@@ -190,6 +190,11 @@ div.pagemenu a {
font-weight: bold;
}
+div.pagemenu a.active {
+ text-decoration: none;
+ color: blue;
+ font-weight: bold;
+}
div.pagemenu span {
text-decoration: none;
color: black;
diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp
index bc8627d..cccfbb6 100644
--- a/pages/whats_on.ecpp
+++ b/pages/whats_on.ecpp
@@ -60,6 +60,12 @@ if (type == "now") {
<script type="text/javascript"><!--
function init()
{
+% if (type == "now") {
+ document.getElementById("nowhref").className = "active";
+% }
+% if (type == "next") {
+ document.getElementById("nexthref").className = "active";
+% }
% if (attime != "") {
document.getElementById("spectime").value = "<$ displaytime $>";
% }
@@ -170,9 +176,9 @@ if (type == "now") {
<%include>page_exit.eh</%include>
<%def whats_on_actions>
-<a href="whats_on.html?type=now"><$ tr("Now") $></a>
+<a href="whats_on.html?type=now" id="nowhref"><$ tr("Now") $></a>
<span class="sep">|</span>
-<a href="whats_on.html?type=next"><$ tr("Next") $></a>
+<a href="whats_on.html?type=next" id="nexthref"><$ tr("Next") $></a>
<span class="sep">|</span>
<span><$ tr("What's on") $></span>
<select name="userdeftimes" size="1" id="userdeftimes" onchange="showtime(this)">