Commit 91c6bf3a authored by Bill Lynch's avatar Bill Lynch Committed by bill

Added a way to remember the user's preference for clicking the license warning

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4012 b35dd754-fafc-0310-a699-88a17e54d16e
parent b9e8aa33
......@@ -48,6 +48,7 @@
<link rel="stylesheet" type="text/css" href="<%= path %>/style/global.css">
<script language="JavaScript" type="text/javascript" src="<%= path %>/js/prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="<%= path %>/js/scriptaculous.js"></script>
<script language="JavaScript" type="text/javascript" src="<%= path %>/js/cookies.js"></script>
<script language="JavaScript" type="text/javascript">
<!-- // code for window popups
function helpwin() {
......@@ -65,7 +66,7 @@
var myrules = {
'.jive-table TBODY TR' : function(el) {
el.onmouseover = function() {
this.style.backgroundColor = '#efefef';
this.style.backgroundColor = '#ffffee';
}
el.onmouseout = function() {
this.style.backgroundColor = '#ffffff';
......
/* Modifed by BL to namespace the functions */
/*
DISCLAIMER: THESE JAVASCRIPT FUNCTIONS ARE SUPPLIED 'AS IS', WITH
NO WARRANTY EXPRESSED OR IMPLIED. YOU USE THEM AT YOUR OWN RISK.
NEITHER PAUL STEPHENS NOR PC PLUS MAGAZINE ACCEPTS ANY LIABILITY FOR
ANY LOSS OR DAMAGE RESULTING FROM THEIR USE, HOWEVER CAUSED.
Paul Stephens' NetScape-based cookie-handling library
http://web.ukonline.co.uk/paul.stephens/index.htm
TO USE THIS LIBRARY, INSERT ITS CONTENTS IN A <script></script> BLOCK IN THE
<HEAD> SECTION OF YOUR WEB PAGE SOURCE, BEFORE ANY OTHER JAVASCRIPT ROUTINES.
Feel free to use this code, but please leave this comment block in.
*/
var Cookies = {
setCookie: function(name, value, lifespan, access_path) {
var cookietext = name + "=" + escape(value)
if (lifespan != null) {
var today=new Date()
var expiredate = new Date()
expiredate.setTime(today.getTime() + 1000*60*60*24*lifespan)
cookietext += "; expires=" + expiredate.toGMTString()
}
if (access_path != null) {
cookietext += "; PATH="+access_path
}
document.cookie = cookietext
return null
},
setDatedCookie: function(name, value, expire, access_path) {
var cookietext = name + "=" + escape(value)
+ ((expire == null) ? "" : ("; expires=" + expire.toGMTString()))
if (access_path != null) {
cookietext += "; PATH="+access_path
}
document.cookie = cookietext
return null
},
getCookie: function(Name) {
var search = Name + "="
var CookieString = document.cookie
var result = null
if (CookieString.length > 0) {
offset = CookieString.indexOf(search)
if (offset != -1) {
offset += search.length
end = CookieString.indexOf(";", offset)
if (end == -1)
end = CookieString.length
result = unescape(CookieString.substring(offset, end))
}
}
return result
},
deleteCookie: function (Name, Path) {
Cookies.setCookie(Name,"Deleted", -1, Path)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment