Simple example:
sym.$("iGirona").attr('src', 'images/girona2.jpg');
or with array of images:
sym.$("iGirona").attr('src', 'images/'+aGirona[actGirona]);
But the image don't change. If I put comment or delete imgLiquid function lines then works correctly. Why can it be?
Thank you very much.
Note: dGirona is a div container with class imgLiquid and iGirona is inside as img.
I try to change image for to make a slide show with jQuery attr() Method (http://www.w3schools.com/jquery/html_attr.asp):
Simple example: sym.$("iGirona").attr('src', 'images/girona2.jpg'); or with array of images: sym.$("iGirona").attr('src', 'images/'+aGirona[actGirona]);
But the image don't change. If I put comment or delete imgLiquid function lines then works correctly. Why can it be?
Thank you very much.
Note: dGirona is a div container with class imgLiquid and iGirona is inside as img.