마우스 오버시 이미지 색깔 바뀌는 소스를..

최신게시물에서 이미지 위에 마우스 올리면

색깔 바뀌게 하는 소스를 집어넣을려고 하는데

따옴표 (" ) 하고 ( ') 하고 때문에 자꾸 에러나네요.

echo 로 어떻게 하는것 같기도 하고..모르겠네요.

도와주세요~~


최신글 원본소스중:
$img = "<img src='$thumb' width='100' height='75' border=0 align=center style='margin-right:5px; border:0 #222222 solid;' >";

집어넣으려는 소스
onmouseover="this.style.filter='gray'" onmouseout="this.style.filter=''"
|

댓글 3개

onmouseover='this.style.filter="gray"' onmouseover='this.style.filter=""'

이렇게 쓰셔도 안되시던가요?
$img = "<img src='$thumb' width='100' height='75' border=0 align=center style='margin-right:5px; border:0 #222222 solid;' onmouseover='this.style.filter=\"gray\"' onmouseover='this.style.filter=\"\"'>";
감사합니다..해결했습니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 1,706
14년 전 조회 1,635
14년 전 조회 1,721
14년 전 조회 1,703
14년 전 조회 1,568
14년 전 조회 2,015
14년 전 조회 992
14년 전 조회 985
14년 전 조회 1,646
14년 전 조회 1,669
14년 전 조회 2,272
14년 전 조회 1,907
14년 전 조회 1,704
14년 전 조회 1,550
14년 전 조회 1,748
14년 전 조회 1,553
14년 전 조회 1,583
14년 전 조회 1,966
14년 전 조회 1,851
14년 전 조회 1,554