image naturalWidth gibt null zurück
Bild naturalWidth return null... das ist es, warum ?
var newimage = new Image();
newimage.src = 'retouche-hr' + newlinkimage.substring(14,17) + '-a.jpg';
var width = newimage.naturalWidth;
alert (width);
HILFE, ich weiß nicht, warum !
*** , Weg ist gut, das Bild !
InformationsquelleAutor der Frage menardmam | 2009-10-29
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ich denke, es ist, weil Sie warten nicht, für das Bild zu laden - versuchen Sie dies:
InformationsquelleAutor der Antwort Greg
ist hier der ENDGÜLTIGE CODE.... falls jemand whant, zu wissen, dass es alles eine Frage der wainting haben alle Bilder geladen !...
$(function() {
$("#thumb").jCarouselLite({
btnNext: "#unten",
btnPrev: "#",
vertical: true,
sichtbar: 4
});
});
InformationsquelleAutor der Antwort menardmam
Den naturalWidth und naturalHeight Eigenschaften werden nicht unterstützt in IE, so geben dieses Update versuchen.
InformationsquelleAutor der Antwort Tim S. Van Haren
Für mich die folgenden Werke ...
InformationsquelleAutor der Antwort chris