Hi,
Ich wollte jetzt erstmal src="./img/home.JPG" in eine var ablegen.
var $test = $('#src').attr('src');
aber ohne Erfolg
Was heisst ohne Erfolg?
Bekommst du eine Fehlermeldung, hat deine anschliessende Kontrollausgabe nicht das erwartete ergeben, oder ...?
$('.lireise').mouseout(function(){
$('#src').attr('src', 'test')
abgesehen davon, dass $('#src').attr('src', 'test') wohl nicht stimmt,
Stimmt, tut's nicht, denn da übergibst du als Bildadresse das Textiteral 'test'. Wenn du eine Variable übergeben möchtest, dann meinst du aber test.
MfG ChrisB
--
Light travels faster than sound - that's why most people appear bright until you hear them speak.
Light travels faster than sound - that's why most people appear bright until you hear them speak.