Vergleich jscripts/general.js - 1.4.2 - 1.4.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 49Zeile 49
		if(navigator.product == "Gecko" && navigator.vendor.indexOf("Apple Computer") != -1)
{
this.browser = "safari";

		if(navigator.product == "Gecko" && navigator.vendor.indexOf("Apple Computer") != -1)
{
this.browser = "safari";

		}
else if(navigator.product == "Gecko")
{
this.browser = "mozilla";

 
		}
else if(this.useragent.indexOf("chrome") != -1)
{
this.browser = "chrome";

		}
else if(this.useragent.indexOf("chrome") != -1)
{
this.browser = "chrome";

 
		}
else if(navigator.product == "Gecko")
{
this.browser = "mozilla";

		}
else if(this.useragent.indexOf("opera") != -1)
{
this.browser = "opera";
}
else if(this.useragent.indexOf("konqueror") != -1)

		}
else if(this.useragent.indexOf("opera") != -1)
{
this.browser = "opera";
}
else if(this.useragent.indexOf("konqueror") != -1)

		{

		{

			this.browser = "konqueror";
}
else if(this.useragent.indexOf("msie") != -1)

			this.browser = "konqueror";
}
else if(this.useragent.indexOf("msie") != -1)

Zeile 76Zeile 76
		}

if(this.useragent.indexOf("win") != -1)

		}

if(this.useragent.indexOf("win") != -1)

		{

		{

			this.os = "win";

			this.os = "win";

		}

		}

		else if(this.useragent.indexOf("mac") != -1)
{
this.os = "mac";

		else if(this.useragent.indexOf("mac") != -1)
{
this.os = "mac";

		}
},


		}
},


	popupWindow: function(url, name, width, height)
{
settings = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";

if(width)

	popupWindow: function(url, name, width, height)
{
settings = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";

if(width)

		{

		{

			settings = settings+",width="+width;
}


			settings = settings+",width="+width;
}


Zeile 104Zeile 104
	deleteEvent: function(eid)
{
confirmReturn = confirm(deleteevent_confirm);

	deleteEvent: function(eid)
{
confirmReturn = confirm(deleteevent_confirm);





		if(confirmReturn == true)
{
form = document.createElement("form");

		if(confirmReturn == true)
{
form = document.createElement("form");

Zeile 115Zeile 115
			if(this.browser == "ie")
{
var input = document.createElement("<input name=\"action\">");

			if(this.browser == "ie")
{
var input = document.createElement("<input name=\"action\">");

			}
else

			}
else

			{
var input = document.createElement("input");
input.setAttribute("name", "action");
}
input.setAttribute("name", "action");

			{
var input = document.createElement("input");
input.setAttribute("name", "action");
}
input.setAttribute("name", "action");

			input.setAttribute("type", "hidden");

			input.setAttribute("type", "hidden");

			input.setAttribute("value", "do_editevent");
form.appendChild(input);


			input.setAttribute("value", "do_editevent");
form.appendChild(input);


Zeile 140Zeile 140
				input.setAttribute("type", "hidden");
input.setAttribute("value", my_post_key);
form.appendChild(input);

				input.setAttribute("type", "hidden");
input.setAttribute("value", my_post_key);
form.appendChild(input);

			}

			}


if(this.browser == "ie")
{
var input = document.createElement("<input name=\"eid\">");


if(this.browser == "ie")
{
var input = document.createElement("<input name=\"eid\">");

			}
else
{

			}
else
{

				var input = document.createElement("input");
input.setAttribute("name", "eid");

				var input = document.createElement("input");
input.setAttribute("name", "eid");

			}

			}

			input.setAttribute("type", "hidden");
input.setAttribute("value", eid);

			input.setAttribute("type", "hidden");
input.setAttribute("value", eid);

			form.appendChild(input);

if(this.browser == "ie")
{
var input = document.createElement("<input name=\"delete\">");
}
else

			form.appendChild(input);

if(this.browser == "ie")
{
var input = document.createElement("<input name=\"delete\">");
}
else

			{
var input = document.createElement("input");
input.setAttribute("name", "delete");

			{
var input = document.createElement("input");
input.setAttribute("name", "delete");

Zeile 187Zeile 187
				element.checked = allbox.checked;
}
});

				element.checked = allbox.checked;
}
});

	},

	},


reputation: function(uid)
{


reputation: function(uid)
{

Zeile 213Zeile 213
			{
var input = document.createElement("input");
input.setAttribute("name", "rid");

			{
var input = document.createElement("input");
input.setAttribute("name", "rid");

			}
input.setAttribute("type", "hidden");

			}
input.setAttribute("type", "hidden");

			input.setAttribute("value", rid);
form.appendChild(input);

if(my_post_key)

			input.setAttribute("value", rid);
form.appendChild(input);

if(my_post_key)

			{

			{

				if(this.browser == "ie")
{
var input = document.createElement("<input name=\"my_post_key\">");

				if(this.browser == "ie")
{
var input = document.createElement("<input name=\"my_post_key\">");

Zeile 232Zeile 232
				input.setAttribute("type", "hidden");
input.setAttribute("value", my_post_key);
form.appendChild(input);

				input.setAttribute("type", "hidden");
input.setAttribute("value", my_post_key);
form.appendChild(input);

			}

			}

			
if(this.browser == "ie")
{

			
if(this.browser == "ie")
{

Zeile 246Zeile 246
			input.setAttribute("type", "hidden");
input.setAttribute("value", uid);
form.appendChild(input);

			input.setAttribute("type", "hidden");
input.setAttribute("value", uid);
form.appendChild(input);





			document.getElementsByTagName("body")[0].appendChild(form);
form.submit();
}

			document.getElementsByTagName("body")[0].appendChild(form);
form.submit();
}

Zeile 266Zeile 266
		else
{
defpage = 1;

		else
{
defpage = 1;

		}

promptres = prompt("Quick Page Jump\nPlease enter a page number between 1 and "+pages+" to jump to.", defpage);

if((promptres != null) && (promptres != "") & (promptres > 1) && (promptres <= pages))

		}

promptres = prompt("Quick Page Jump\nPlease enter a page number between 1 and "+pages+" to jump to.", defpage);

if((promptres != null) && (promptres != "") && (promptres > 1) && (promptres <= pages))

		{
window.location = "showthread.php?tid="+tid+"&page"+promotres;
}
},

markForumRead: function(event)

		{
window.location = "showthread.php?tid="+tid+"&page"+promotres;
}
},

markForumRead: function(event)

	{

	{

		element = Event.element(event);
if(!element)
{

		element = Event.element(event);
if(!element)
{

Zeile 325Zeile 325
				}
input.setAttribute("type", "hidden");
input.setAttribute("value", "dstswitch");

				}
input.setAttribute("type", "hidden");
input.setAttribute("value", "dstswitch");

				form.appendChild(input);

				form.appendChild(input);

				document.getElementsByTagName("body")[0].appendChild(form);
form.submit();
}

				document.getElementsByTagName("body")[0].appendChild(form);
form.submit();
}

Zeile 434Zeile 434
			if(this.browser == "ie")
{
var input = document.createElement("<input name=\"quick_username\">");

			if(this.browser == "ie")
{
var input = document.createElement("<input name=\"quick_username\">");

			}
else

			}
else

			{
var input = document.createElement("input");
input.setAttribute("name", "quick_username");
}
input.setAttribute("type", "text");
input.setAttribute("value", lang.username);

			{
var input = document.createElement("input");
input.setAttribute("name", "quick_username");
}
input.setAttribute("type", "text");
input.setAttribute("value", lang.username);

			input.setAttribute("class", "textbox");

			input.setAttribute("class", "textbox");

			input.setAttribute("onfocus", "if(this.value == '"+lang.username+"') { this.value=''; }");
input.setAttribute("onblur", "if(this.value == '') { this.value='"+lang.username+"'; }");
input.id = 'quick_login_username';

			input.setAttribute("onfocus", "if(this.value == '"+lang.username+"') { this.value=''; }");
input.setAttribute("onblur", "if(this.value == '') { this.value='"+lang.username+"'; }");
input.id = 'quick_login_username';

			form.appendChild(input);
form.innerHTML += " ";

if(this.browser == "ie")

			form.appendChild(input);
form.innerHTML += " ";

if(this.browser == "ie")

			{
var input = document.createElement("<input name=\"quick_password\">");
}

			{
var input = document.createElement("<input name=\"quick_password\">");
}

Zeile 463Zeile 463
			input.setAttribute("class", "textbox");
input.setAttribute("onfocus", "if(this.value == '"+lang.password+"') { this.value=''; }");
input.setAttribute("onblur", "if(this.value == '') { this.value='"+lang.password+"'; }");

			input.setAttribute("class", "textbox");
input.setAttribute("onfocus", "if(this.value == '"+lang.password+"') { this.value=''; }");
input.setAttribute("onblur", "if(this.value == '') { this.value='"+lang.password+"'; }");

			form.appendChild(input);


			form.appendChild(input);


			form.innerHTML += " ";

if(this.browser == "ie")
{
var input = document.createElement("<input name=\"submit\">");

			form.innerHTML += " ";

if(this.browser == "ie")
{
var input = document.createElement("<input name=\"submit\">");

			}

			}

			else
{
var input = document.createElement("input");

			else
{
var input = document.createElement("input");

Zeile 491Zeile 491
		return false;
}
};

		return false;
}
};




 

var Cookie = {
get: function(name)


var Cookie = {
get: function(name)