The question still remains: Does EasyMod allow some kind of "if else" for these sticky situations?
If you are concerned about other MODs breaking your onload event
I'm also concerned about my MOD not breaking other onload events. Right now, I've found a way to not use onload event at all for window and body:
http://www.phpbb.com/phpBB/viewtopic.ph ... 29#1329229" target="_blank
I've looked at your MOD. Very interesting scripting indeed. You don't code like me at all. I have a lot a things to learn from your code. Would you care eventually to answer my questions? Don't worry, I usually google my way to knowledge.
Things I have to dig about your code:
- this.T = [];
(shortcut for new Object ???) - this.size = this.min = 40;
(2 equals??) - _SXBB.prototype.genCmd = function(cmd, txt)
(never experienced with prototype and this way to create a function. What's the pros and cons?) - else if( document.createRange && (document.getSelection || window.getSelection) )
{
// Works on: Netscape/Mozilla/Konqueror/Safari
// To be confirmed: Konqueror/Safari use window.getSelection ?
r = document.createRange();
r.selectNodeContents(o);
s = window.getSelection ? window.getSelection() : document.getSelection();
s.removeAllRanges();
s.addRange(r);
}
(thought only IE supported selection) - if( window.addEventListener )
Didn't know about this W3C way to attach an event - // The 'legacy' method
(what is Legacy?) - for( var id in SXBB )
(I'm clueless about this syntax) - moveToElementText
(an IE method I haven't noticed before?)
If you care to comment these, let's do it by PM so this thread won't go off topic. Anyways, now I have a great day ahead of me with all these new things to learn
// Any better way to detect IEMac?
I don't know about better, but here's mine:
Code: Select all
var IsIEMac = (!window.showModelessDialog && window.ActiveXObject && document.getElementById);
And here's Peter-Paul Koch's way,
http://www.quirksmode.org/index.js" target="_blank
Code: Select all
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&&
navigator.userAgent.indexOf('Mac') != -1
);