aboutsummaryrefslogtreecommitdiff
path: root/www/inc/javascript.inc.php
diff options
context:
space:
mode:
authorjimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003>2005-11-25 22:44:18 +0000
committerjimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003>2005-11-25 22:44:18 +0000
commit6429a6080db982bcb37421d9735e25cfec25acec (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /www/inc/javascript.inc.php
parent763233dc3b53ed8e10abf9c050a26e870bd598e6 (diff)
downloadoriginal-6429a6080db982bcb37421d9735e25cfec25acec.tar.gz
original-6429a6080db982bcb37421d9735e25cfec25acec.tar.bz2
git-svn-id: https://forgesvn1.novell.com/svn/original/trunk@7 4fa712ea-3c06-0410-9261-c11b4c06c003
Diffstat (limited to 'www/inc/javascript.inc.php')
-rw-r--r--www/inc/javascript.inc.php51
1 files changed, 0 insertions, 51 deletions
diff --git a/www/inc/javascript.inc.php b/www/inc/javascript.inc.php
deleted file mode 100644
index f2e3deb..0000000
--- a/www/inc/javascript.inc.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<script language="JavaScript">
-function setActiveStyleSheet(title) {
- var i, a, main;
- for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
- if(a.getAttribute("rel").indexOf("style") != -1
- && a.getAttribute("title")) {
- a.disabled = true;
- if(a.getAttribute("title") == title) a.disabled = false;
- }
- }
- if (title!="") {
- writeCookie(title);
- }
-}
-
-function getInactiveStyleSheet() {
- var i, a;
- for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
- if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && a.disabled) return a.getAttribute("title");
- }
- return null;
-}
-
-function readCookie() {
- var theme = document.cookie;
- var theme = unescape(theme);
-
- return theme;
-}
-
-function writeCookie(theme) {
- //FIXME - set expires
- var original_cookie = "theme=" + escape(theme);
- document.cookie = original_cookie;
-}
-
-function checkForTheme() {
- var theme = readCookie();
- //alert(theme);
- if (theme=="undefined") {
- var theme = "none";
- }
-}
-
-// what a kludge. Luckily I found a clean way
-function alignForGorilla() {
-var image_preview = document.getElementById('preview');
-image_preview.style.marginLeft = "-" + (image_preview.width/2 + 16) + "px";
-}
-
-</script>