11:24 You advanced from Level 98 to Level 99.
)
11:24 You advanced from Level 98 to Level 99.
//////////////////////////////////////////////////////////////////////
//
// Spry.Widget.Form - common for all widgets
//
//////////////////////////////////////////////////////////////////////
if (!Spry.Widget.Form) Spry.Widget.Form = {};
if (!Spry.Widget.Form.onSubmitWidgetQueue) Spry.Widget.Form.onSubmitWidgetQueue = [];
if (!Spry.Widget.Form.validate) {
Spry.Widget.Form.validate = function(vform) {
var isValid = true;
var isElementValid = true;
var q = Spry.Widget.Form.onSubmitWidgetQueue;
var qlen = q.length;
for (var i = 0; i < qlen; i++) {
if (!q[i].isDisabled() && q[i].form == vform) {
isElementValid = q[i].validate();
isValid = isElementValid && isValid;
}
}
return isValid;
}
};
if (!Spry.Widget.Form.onSubmit) {
Spry.Widget.Form.onSubmit = function(e, form)
{
if (Spry.Widget.Form.validate(form) == false) {
return false;
}
return true;
};
};
if (!Spry.Widget.Form.onReset) {
Spry.Widget.Form.onReset = function(e, vform)
{
var q = Spry.Widget.Form.onSubmitWidgetQueue;
var qlen = q.length;
for (var i = 0; i < qlen; i++) {
if (!q[i].isDisabled() && q[i].form == vform && typeof(q[i].reset) == 'function') {
q[i].reset();
}
}
return true;
};
};
if (!Spry.Widget.Form.destroy) {
Spry.Widget.Form.destroy = function(form)
{
var q = Spry.Widget.Form.onSubmitWidgetQueue;
for (var i = 0; i < Spry.Widget.Form.onSubmitWidgetQueue.length; i++) {
if (q[i].form == form && typeof(q[i].destroy) == 'function') {
q[i].destroy();
i--;
}
}
}
};
if (!Spry.Widget.Form.destroyAll) {
Spry.Widget.Form.destroyAll = function()
{
var q = Spry.Widget.Form.onSubmitWidgetQueue;
for (var i = 0; i < Spry.Widget.Form.onSubmitWidgetQueue.length; i++) {
if (typeof(q[i].destroy) == 'function') {
q[i].destroy();
i--;
}
}
}
};
//////////////////////////////////////////////////////////////////////
//
// Spry.Widget.Utils
//
//////////////////////////////////////////////////////////////////////
if (!Spry.Widget.Utils) Spry.Widget.Utils = {};
Spry.Widget.Utils.setOptions = function(obj, optionsObj, ignoreUndefinedProps)
{
if (!optionsObj)
return;
for (var optionName in optionsObj)
{
if (ignoreUndefinedProps && optionsObj[optionName] == undefined)
continue;
obj[optionName] = optionsObj[optionName];
}
};
Spry.Widget.Utils.getFirstParentWithNodeName = function(node, nodeName)
{
while (node.parentNode
&& node.parentNode.nodeName.toLowerCase() != nodeName.toLowerCase()
&& node.parentNode.nodeName != 'BODY') {
node = node.parentNode;
}
if (node.parentNode && node.parentNode.nodeName.toLowerCase() == nodeName.toLowerCase()) {
return node.parentNode;
} else {
return null;
}
};
Spry.Widget.Utils.destroyWidgets = function (container)
{
if (typeof container == 'string') {
container = document.getElementById(container);
}
var q = Spry.Widget.Form.onSubmitWidgetQueue;
for (var i = 0; i < Spry.Widget.Form.onSubmitWidgetQueue.length; i++) {
if (typeof(q[i].destroy) == 'function' && Spry.Widget.Utils.contains(container, q[i].element)) {
q[i].destroy();
i--;
}
}
};
Spry.Widget.Utils.contains = function (who, what)
{
if (typeof who.contains == 'object') {
return what && who && (who == what || who.contains(what));
} else {
var el = what;
while(el) {
if (el == who) {
return true;
}
el = el.parentNode;
}
return false;
}
};
Spry.Widget.Utils.addEventListener = function(element, eventType, handler, capture)
{
try
{
if (element.addEventListener)
element.addEventListener(eventType, handler, capture);
else if (element.attachEvent)
element.attachEvent("on" + eventType, handler, capture);
}
catch (e) {}
};
Spry.Widget.Utils.removeEventListener = function(element, eventType, handler, capture)
{
try
{
if (element.removeEventListener)
element.removeEventListener(eventType, handler, capture);
else if (element.detachEvent)
element.detachEvent("on" + eventType, handler, capture);
}
catch (e) {}
};
background-position: center;
Another JScript Script File.$(document).ready(function(){
//global vars
var inputUser = $("#nick");
var inputMessage = $("#message");
var loading = $("#loading");
var messageList = $(".content > ul");
//functions
function updateShoutbox(){
//just for the fade effect
messageList.hide();
loading.fadeIn();
//send the post to shoutbox.php
$.ajax({
type: "POST", url: "http://yoursite/shoutbox.php", data: "action=update",
complete: function(data){
loading.fadeOut();
messageList.html(data.responseText);
messageList.fadeIn(2000);
}
});
}
//check if all fields are filled
function checkForm(){
if(inputUser.attr("value") && inputMessage.attr("value"))
return true;
else
return false;
}
//Load for the first time the shoutbox data
updateShoutbox();
//on submit event
$("#form").submit(function(){
if(checkForm()){
var nick = inputUser.attr("value");
var message = inputMessage.attr("value");
//we deactivate submit button while sending
$("#send").attr({ disabled:true, value:"Sending..." });
$("#send").blur();
//send the post to shoutbox.php
$.ajax({
type: "POST", url: "http://yoursite/shoutbox.php", data: "action=insert&nick=" + nick + "&message=" + message,
complete: function(data){
messageList.html(data.responseText);
updateShoutbox();
//reactivate the send button
$("#send").attr({ disabled:false, value:"Shout it!" });
}
});
}
else alert("Please fill all fields!");
//we prevent the refresh of the page after submitting the form
return false;
});
});
LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL Lol Lol Lol LOL LoL loL LoL LoL LoL LOL Lol lol LOL lol
local tmpPos = {}
local i = 4
while(i >= 1) do
fromPosition, tmpPos, FALSE
tip: Get some sugar or salt and put it in a plastic bag, then go to some ghetto hood and offer drugs to some guys, bam! You just made big bucks for only a tablespoon of sugar.
pro: You can finally get tibia premium
con: You may get murdered
15:07 Your last visit was on Mon Jan 29 23:25:45 2003.