Solution
var options = { opacity: opacity }; //Many thanks to David Higgins for his help
var direction;
if(id == "chat") {
direction = {right: dir + amt, top: dir + amt };
} else if(id == "rplayed") {
direction = {left: dir + amt, top: dir + amt };
} else if(id == "info") {
direction = {right: dir + amt, bottom: dir + amt };
} else if(id == "player") {
direction = {left: dir + amt, bottom: dir + amt };
}
$.extend(options, direction);
$(wid).animate(options, 200);
Question
I've been working on a website that is very jQuery intensive in Chrome and Firefox. It's now come to the stage where one opens it in IE and sees WTF IE is doing to the website.
I've gone through the jQuery stuff and I really can't see what is wrong with anything I have written and IE just gives the error "Invalid arguament - line 142 - jquery.js" (the actual jQuery source file).
On the website jQuery has two main purposes, updating elements with Ajax and JSON and moving elements around (hiding/showing & sliding) to create a window'd interface).
The website is at http://pegfm.pezcuckow.com/ and the JS is in http://pegfm.pezcuckow.com/js/main.js
Can anyone explain what is wrong with my jQuery stuff? I have no idea where to start, I'm not expecting you to fix it just point me in the right direction and give me an idea of what's going on!
If you want to see what the website is supposed to do open it in FF or Chrome!
Many Thanks,