[js] 사진첩에 쓸 내용 - 마우스 오버로 바꾸기
# 소스코드 :
<style> #dhtmlgoodies_contentBox { border:1px solid #317082; height:0px; visibility:hidden; position:absolute; background-color:#FFFFCC; overflow:hidden; padding:10px; width:250px; } #dhtmlgoodies_content { position:relative; font-family: tahoma; width:100%; font-size:9pt; } </style> <script type="text/javascript"> var initHeight = 0; var slidedown_direction = 1; var slidedownContentBox = false; var slidedownContent = false; var slidedownActive = false; var contentHeight = false; var slidedownSpeed = 3;// Higher value = faster script var slidedownTimer = 7; // Lower value = faster script function slidedown_showHide() { if(initHeight==0) slidedown_direction=slidedownSpeed; else slidedown_direction = slidedownSpeed*-1;
if(!slidedownContentBox) { slidedownContentBox = document.getElementById('dhtmlgoodies_contentBox'); slidedownContent = document.getElementById('dhtmlgoodies_content'); contentHeight = document.getElementById('dhtmlgoodies_content').offsetHeight; } slidedownContentBox.style.visibility='visible'; slidedownActive = true; slidedown_showHide_start(); } function slidedown_showHide_start() { if(!slidedownActive)return; initHeight = initHeight/1 + slidedown_direction; if(initHeight <= 0) { slidedownActive = false; slidedownContentBox.style.visibility='hidden'; initHeight = 0; } if(initHeight>contentHeight) { slidedownActive = false; } slidedownContentBox.style.height = initHeight + 'px'; slidedownContent.style.top = initHeight - contentHeight + 'px'; setTimeout('slidedown_showHide_start()',slidedownTimer); // Choose a lower value than 10 to make the script move faster } function setslidedownWidth(newWidth) { document.getElementById('dhtmlgoodies_slidedown').style.width = newWidth + 'px'; document.getElementById('dhtmlgoodies_contentBox').style.width = newWidth + 'px'; } function setSlideDownSpeed(newSpeed) { slidedownSpeed = newSpeed; } </script> <div id="dhtmlgoodies_control"> <a href="#" onclick="slidedown_showHide();return false;">여기를 클릭하세요..</a> </div> <div id="dhtmlgoodies_contentBox"> <div id="dhtmlgoodies_content"> 여기에 내용을 삽입하세요..<br/> 감사합니다.<br/> <a href="http://www.blueb.co.kr" target=_>https://www.hooni.net</a> </div> </div> <script type="text/javascript"> setSlideDownSpeed(4); </script> |
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
1173 | Develop | [ios] 아이폰용 앱 오픈 소스들 | hooni | 2013.04.23 | 470415 |
1172 | Develop | 자주 쓰는 Docker 명령어 alias | hooni | 2020.01.10 | 273029 |
1171 | Develop | [ios] 언어, 지역, 국가 설정 가져오기 | hooni | 2014.05.12 | 272376 |
1170 | Etc |
베지어 곡선 (Bezier curve)
![]() |
hooni | 2013.08.18 | 224076 |
1169 | Develop |
[ios] Start developing your navigation app for CarPlay without enrollment
![]() |
hooni | 2020.02.22 | 125610 |
1168 | Develop |
[android] 만화 어플 소스코드
![]() |
hooni | 2013.04.23 | 92927 |
1167 | Develop |
레고 마인드스톰 NXT 수도쿠, 큐브 소스코드..
20 ![]() |
hooni | 2013.04.23 | 81604 |
1166 | Algorithm | 디피헬만(Diffie-Hellman) 초간단 개념.. | hooni | 2013.04.23 | 81109 |
1165 | Develop |
[c#] Hashtable <-> Json (dll 포함)
![]() |
hooni | 2013.04.23 | 80733 |
1164 | Develop | [C#] MD5, SHA1 해시 & 인코딩 | hooni | 2013.04.23 | 77974 |
1163 | Etc | [link] 유용한 사이트 링크. | hooni | 2013.08.19 | 76559 |
1162 | Develop |
[android] 점심 해결 앱 소스 코드 ㅋㅋ
![]() |
hooni | 2013.04.23 | 76507 |