Vale e encontrado el error, y es la cosa mas extraña que me a sucedido nunca.
Resulta que tengo este coódigo
Código javascript
:
Ver originalfunction resize_images()
{
var MAX_WIDTH = 640;
$(".postbody img").each
(
function()
{
alert($(this).attr("src"));
alert($(this).width());
}
);
}
Esto me retorna los siguientes valores:
src:
http://img113.imageshack.us/img113/604/omfgom0.jpg
width: 700
Excepto en google chorme que me retorna 0 en width.
Pero que pasa si hago esta modificación:
Código javascript
:
Ver originalfunction resize_images()
{
var MAX_WIDTH = 640;
$(".postbody img").each
(
function()
{
var IMAGE_SRC = $(this).attr("src");
var IMAGE_WIDTH = $(this).width();
alert(IMAGE_SRC);
alert(IMAGE_WIDTH);
}
);
}
Resultado:
En firefox:
src:
http://img113.imageshack.us/img113/604/omfgom0.jpg
width: 700
En Internet Explorer:
src:
http://img113.imageshack.us/img113/604/omfgom0.jpg width: 70
En Google Chorme
src:
http://img113.imageshack.us/img113/604/omfgom0.jpg width: 0
Y no se por que!!!!
Alguna ayuda??? Por favor??