You are tired of optimizing websites for Internet Explorer 6? Well, if you are able to afford it, you can simply use this small script to show IE6-users a tiny warning:
http://code.google.com/p/ie6-upgrade-warning/
You are tired of optimizing websites for Internet Explorer 6? Well, if you are able to afford it, you can simply use this small script to show IE6-users a tiny warning:
http://code.google.com/p/ie6-upgrade-warning/
Hi folks,
This post is kept in English, because of some users in the Lighbox forum (Thread) having the same problem.
Bug description
Using Lightbox 2.04 with area tags an rel="lightbox" or rel="lightbox[Group]" in Firefox will result in a java-script error.
Reason for the Bug:
rel is not an attribute of area neither in HTML 4 (see http://www.w3.org/TR/html4/index/attributes.html) nor in XHTML 1.0 Strict/Transitional (see http://www.w3.org/TR/xhtml1/#defs and take a look at the DTS..).
Consequence: imageLink.rel doesn't work with Firefox.
Workaround:
But Prototype is still able to get the attribute
So just replace imageLink.rel with Element.readAttribute($(imageLink), "rel") and enjoy Lightbox!
Hier ein kleiner Parser für non-standard dates, den ich auf www.birgit-kaletsch.de verwende:
$.tablesorter.addParser({ // Datumsparser. // Hier verwendet: '[Wochentag]s, UhrzeitVon - UhrzeitBis'; // Idee: Wochentag durch zahl von 0-6 ersetzen // Uhrzeit als rein Zahl // => Leichtes numerisches Sortieren möglich // Skript kann sehr leicht auf andere Daten übertragen werden... id: 'wochentage', is: function(s) { return false; }, format: function(s) { Wochentage = new Array("Montags", "Dienstags", "Mittwochs", "Donnerstags", "Freitags", "Samstags", "Sonntags"); // Wochentag durch entsprechende Zahl ersetzen for(var i = 0; i < Wochentage.length; i++){ s = s.replace(Wochentage[i], i); } // Alles auser Zahlen entfernen s = s.replace(/\D/ig, ""); return s; }, type: 'numeric' });
Bei Verwendung von xajax zur Übertragung von Formulardaten kann es, trotz konsequenten Setzens des Zeichensatzes auf UTF-8, zu falsch dargestellten Umlauten kommen. Abhilfe sollte in diesem Fall eine kleine PHP-Funktion schaffen:
function encode($fehlerhafterstring) { }
Idee:
Umsetzung: in JavaScript mit JQuery
Zu sehen unter: http://www.birgit-kaletsch.de/persoenliches-hobbies.html
HTML-Code:
JS-Code:
/* Hobbies & Bilder */ if($("#gallerytab").length != 0){ $('#gallerytab ul:first').tabs({ fxFade: true, fxSpeed: 500 }); var hobbies = $('#gallerytab ul ~ div'); for (var i=0;i<hobbies.length;i++){></hobbies.length;i++){> $("#"+ hobbies[i].id + " .bilder li").click( function(){ hobbie = $(this.parentNode.parentNode).attr("id"); $("#"+ hobbie + " .show .text").css("display", "none"); $("#"+ hobbie + " .show .image").css("display", "none"); $("#"+ hobbie + " .show .loading").css("display", "block"); $("#"+ hobbie + " .show").css("height", "352px"); var src="big-" + this.firstChild.src.match(/.+\/(.+)$/i).pop().replace(/thumb-/, ""); $("#"+ hobbie + " .show .image").html('<img src="http://www.patworx.de/blog/wp-admin/%27+src+%27" alt="'+this.firstChild.alt+'" id="' + src + '" />'); var image = new Image(); image.onload = function(){ $("#"+ hobbie + " .show .image").css("display", "block"); $("#"+ hobbie + " .show .loading").css("display", "none"); jQuery.scrollTo( 0, {speed:1000} ); } image.src = src; $(src).attr("src", image.src); }); } };
Powered by WordPress | Theme: Aeros 2.0 by TheBuckmaker.com