롤오버시 이미지 변경
방법 1. $(document).ready(function(){ $(".eventimg").mouseover(function (){ var file = $(this).attr('src').split('/'); var filename = file[file.length-1]; var path = ''; for(i=0 ; i < file.length-1 ; i++){ path = ( i == 0 )?path + file[i]:path + '/' + file[i]; } $(this).attr('src','/aaa/bbb/image/event_on.gif'); }).mouseout(function(){ var file = $(this).attr('src').split('/'); var filename = file..
JQuery
2011. 2. 26. 01:21