파일 첨부폼에서 "찾아보기" 스타일 부탁합니다.

aa.png
인풋박스는 스타일이 적용된 상태인데

찾아보기 버튼부분은 어떻게 적용해야 하는지

폼에 맞게 예쁘게 꾸며주시면 고맙겠습니다.



즐거운 추석 되세요^^



적용된 스타일
{height:20px; border:1px solid #585858; padding:2px 0 0 2px; background-color:#535353; color:#b4b4b4;}

첨부파일

aa.png (655 bytes)
0회 2010-09-18 15:33
|

댓글 1개

[http://gekota.com/data/board/I000003/2010-05-25/2038530399_b05e1470_zz.png]

ff와 ie 둘다 됩니다. 백그라운드로 깔고 실제버튼은 알파효과로 투명처리 합니다.

<style type="text/css">
.file {width:75px; height:21px;}
.file_find {margin-left:5px; position:relative; overflow:hidden; left:0; top:0; width:75px; height:21px; background:url('./img/btn_file_find.gif') no-repeat; float:left;}
</style>

<div style="float:left;"><input type="text" id="file_name0" class="input1" style="width:235px; height:21px;" /></div>
<div class="file_find"><input type="file" id="file0" name="upload_file[0]" size="0" class="file" /></div>

<script type="text/javascript">
var AppName = navigator.appName;

if (AppName == 'Microsoft Internet Explorer') {

document.getElementById("file0").style.filter = "alpha(opacity:0);";

} else {

document.getElementById("file0").style.opacity = "0";

}
</script>

<script type="text/javascript">
function fileFind(id)
{

document.getElementById("file_name"+id).value = document.getElementById("file"+id).value;

}

function fileAdd()
{

fileFind('0');

}


document.onmouseover = fileAdd;
document.onmouseout = fileAdd;
</script>
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
15년 전 조회 1,569
15년 전 조회 1,530
15년 전 조회 1,502
15년 전 조회 1,542
15년 전 조회 2,380
15년 전 조회 1,654
15년 전 조회 1,724
15년 전 조회 1,684
15년 전 조회 1,514
15년 전 조회 1,520
15년 전 조회 1,643
15년 전 조회 1,979
15년 전 조회 5,367
15년 전 조회 2,170
15년 전 조회 1,616
15년 전 조회 1,523
15년 전 조회 5,433
15년 전 조회 5,041
15년 전 조회 1,530
15년 전 조회 1,500
🐛 버그신고