링크를 클릭하면 레이어가 뜨고 레이어 주변에는 까맣게 되게 할수 없나요?
그림으로 표현하면 이런식으로요
그림으로 표현하면 이런식으로요
댓글을 작성하시려면 로그인이 필요합니다.
댓글 5개
그레이 박스 http://orangoo.com/labs/GreyBox/
LightBox http://www.huddletogether.com/projects/lightbox2/
ThickBox http://jquery.com/demo/thickbox/
그림처럼되려면 thickbox 를 보시면되겠네요.....
jQuery 라이브러리입니다.
prototype쓰시려면 LightBox쓰시고요
사용법은 사이트에 잘나와있어요...
예) Lightbox쓰려면
prototype.js , scriptaculous.js, lightbox.js 파일을 현재 웹페이지있는폴더 아래 js폴더에 넣고요
(위파일은 prototype 검색하시면 다운가능)
파일상단에
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
집어넣고
<a href="그림.jpg" rel="lightbox" title="my caption">이미지보자</a>
이런식으로 쓰심 됩니다~
관련파일 업로드하고, 페이지에 3,4줄만 추가하면 쓸 수 있어요^^
위사이트 들러서 한시간만 투자해보세요 훨 깔끔하게 구현될겁니다
나중에 이것저것에 적용해봐야겠습니다.