library common
test project
ci_common/common
test project
- Thursday, August 31, 2017
- by glren
- Repository
- 1 Watchers
- 0 Stars
- 0 Installations
- JavaScript
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
๋ ์ด์ด ๋ชจ๋
ํน๋ณํ ๊ธฐ๋ฅ ์์ด ๊ฐ๋จํ ๋ ์ด์ด๋ฅผ ์ฌ์ฉํ ๋ ์ฌ์ฉํด์ฃผ์ธ์., (*1)
requirement
์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ๋ฐ๋์ jQuery๋ฅผ ๋ก๋ ํด์ผ ํฉ๋๋ค., (*2)
STEP.1 : HTML ํ์ผ ์ ์
- 1. ์คํ์ผ์ํธ๋ ์ํ๋ ๋ ์ด์ด ๋ชจ์์ผ๋ก ์์ฑํ์๋ฉด ๋ฉ๋๋ค.
- 2. html ์ layerid, closeBtnClassName , inputClassName ์ ๋ฐ๋์ ์ค์ ๋์ด์ผ ํฉ๋๋ค.
- layerid : ๋ ์ด์ด ์ ์ฒด๋ฅผ ๊ฐ์ธ๋ ํ๊ทธ
- closeBtnClassName : layerid ์ ์์์์ ์ด๋ฉฐ, ํด๋น ํด๋ ์ค๋ฅผ ๊ฐ์ง ์์๋ฅผ ํด๋ฆญํ๋ฉด ๋ ์ด์ด๊ฐ ์ฌ๋ผ์ง๋๋ค.
- inputClassName : layerid ์ ์์์์ ์ด๋ฉฐ, ํด๋น ํด๋ ์ค๋ฅผ ๊ฐ์ง ์์๋ฅผ ์ฒดํฌํ ํ ๋ซ์ผ๋ฉด ํ๋ฃจ๋์ ๋ ์ด์ด๊ฐ ํ์ ๋์ง ์์ต๋๋ค.
<style type="text/css">
.sl_layer{width:400px; height:400px;border:0px solid #2bA5B3;position:absolute;z-index:9999;left:100px;top:180px;display:none;}
.closeBox2 {position:absolute;left:0px;top:400px;height:20px;width:400px;background-color:#000000;margin-top:0;padding:0;}
.closeBox2 .closeLeft{float:left;padding-left:4px;margin-top:2px;}
.closeBox2 .closeRight{float:right;padding-right:10px;}
.closeBox2 .closeRight img{margin-top:1px;}
.closeBox2 .closeRight:after{clear:both;content:"";display:block;}
.top_cnts3{width:600px; height:400px;border:0px solid #2bA5B3;position:absolute;z-index:9999;left:530px;top:180px;display:none;}
</style>
STEP.2 : JAVSCRIPT ํธ์ถ
<script>
var $layer = new layer({
layerid : 'sample_layer',
cookie_name : 'sample_pop_cookie_name',
closeBtnClassName : 'closeBtn',
inputClassName : 'nomorepop'
})
</script>