Join the forums now, and start posting to receive access to our Scripts Vault!
I can send you pics of my cocks if you want reference.
var titleHtml = $('<span />', { "class": "title" });$("[title]:not(.disable-js-tooltip)").each(function(){ var self = $(this); self.append( titleHtml.text( self.prop("title") ); self.parent().hover(function(){ $(this).find(".title").show(); }, function(){ $(this).find(".title").hide(); });}).removeProp("title");
1) Is there any reason to use other library than jQuery (I'm excluding here self written JS, that's not an option, only other libraries)? This is kind of rethoretical question for the sake of discussion's consistency since the answer is obvious http://www.stoimen.com/blog/2010/03/12/javascript-libraries-popularity/
2) Should I use some jQuery plugins or just stick to the standard jQuery? Are there any useful plugins *you would use when coding BBG*?
3) Is there any drawback for using the gzipped jQuery version? Is it that some browsers do not allow gzip JS (and are unable to load non gzipped version instead)? If yes, which browsers will not work?
4) Should I worry about users without enabled JavaScript? Or just assume that all legit users will have it and only cheaters won't (who disable JS when using proxy to avoid multiaccount detection)? What I should do when a user has no JS, just display "Please enable JS" and not worry if the game does not work for them?
5) Can you recommend any useful tutorials, websites, books, etc that are nice for learning jQuery?