added news ticker

This commit is contained in:
albert
2011-08-06 17:28:20 -04:00
parent c92bdf491e
commit cbf3347eff
4 changed files with 48 additions and 3 deletions

View File

@@ -51,10 +51,18 @@
return;
}
if (this.get("hide-news-ticker") == "1") {
$("#news-ticker").hide();
} else {
$("#close-news-ticker-link").observe("click", function(e) {
$("#news-ticker").hide();
this.put("hide-news-ticker", "1", 1);
return false;
});
}
if (this.get("hide-upgrade-account") != "1") {
if ($("upgrade-account")) {
$("upgrade-account").show();
}
$("#upgrade-account").show();
}
}
})();

View File

@@ -1046,3 +1046,32 @@ div#moderator-dashboard {
font-size: 1.5em;
}
}
/*** news ticker ***/
div#news-ticker {
padding: 5px;
background: #EEE;
border-bottom: 2px solid #666;
overflow: hidden;
font-size: 0.8em;
ul {
float: left;
margin: 0;
padding: 0;
}
li {
list-style-type: none;
float: left;
margin: 0 2em 0 0;
padding: 0;
}
a#close-news-ticker-link {
float: right;
}
}