상단에서 내려오는 스크립트인데요
예를들어 2초있다가 이 슬라이딩이 나오게 하거나
지금 나오는 슬라이딩 속도를 좀 느리게 하려고 하는데 어떡해 해야하는지 고수님들의 조언바랍니다.
<!-----TOP---->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="http://www.hi-education.com/gnu4/img/jquery.cookie.js"></script>
<center>
<div id="top-banner-por" style="height:60px; display:none"><a href="#" id="setCookie"><div id="close-banner-por"></div></a>
<img src="http://www.hi-education.com/gnu4/img/easyjet_top_box_ad.gif" border="0">
</div>
</center>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="http://www.hi-education.com/gnu4/img/jquery.cookie.js"></script>
<center>
<div id="top-banner-por" style="height:60px; display:none"><a href="#" id="setCookie"><div id="close-banner-por"></div></a>
<img src="http://www.hi-education.com/gnu4/img/easyjet_top_box_ad.gif" border="0">
</div>
</center>
<script type="text/javascript">
$(function($) {
if( $.cookie('uthai')!=1){
$("#top-banner-por").animate({ opacity:3000},'slow').slideDown('slow').fadeIn('slow',function (){
$("#top-banner-por").css('display','');});
//$("#top-banner-por").css('display','');
}
$("#close-banner-por").click(function () {
$.cookie('uthai',1, { expires:1 });
$("#top-banner-por").animate({ opacity:0},'slow').slideUp('slow').fadeOut('slow',function (){
$("#top-banner-por").css('display','none');
});
});
$('#deleteCookie').click(function() {
$.cookie('uthai', null);alert("Cookie 'test' has been deleted.");
});
}
);
</script>
댓글 4개
13년 전
animate함수 앞에
$("#top-banner_por").delay("700").animate(.............
이런식으로 딜레이를 주는 방법도 있습니다.
$("#top-banner_por").delay("700").animate(.............
이런식으로 딜레이를 주는 방법도 있습니다.
13년 전
답변진심으로 감사드립니다.
말씀하신 소스를 어디다 붙여야하는지 몰라서 헤매고 있는데요 ;;;
기존 소스를 어떡해 수정해야하는지 부탁좀드리겠습니다. ;
말씀하신 소스를 어디다 붙여야하는지 몰라서 헤매고 있는데요 ;;;
기존 소스를 어떡해 수정해야하는지 부탁좀드리겠습니다. ;
13년 전
위 소스만 봐서
animate()함수가 사용된곳은 두곳입니다.
쿠키를 굽고 그에 따라 모션의 적용여부를 판단하는거 같은데
$("#top-banner_por").delay("700").animate({ opacity:3000},'slow').slideDown('slow').fadeIn('slow',function (){
일단 적용한번 해보심이...
animate()함수가 사용된곳은 두곳입니다.
쿠키를 굽고 그에 따라 모션의 적용여부를 판단하는거 같은데
$("#top-banner_por").delay("700").animate({ opacity:3000},'slow').slideDown('slow').fadeIn('slow',function (){
일단 적용한번 해보심이...
13년 전
감사합니다. 말씀하신데로 했더니 잘되네요 ^^ 정말 감사요
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4877 |
|
13년 전 | 2899 | |
| 4876 | 13년 전 | 2374 | ||
| 4875 | 13년 전 | 1973 | ||
| 4874 | 13년 전 | 3768 | ||
| 4873 | 13년 전 | 2077 | ||
| 4872 |
PHPㅡASP프로그래머
|
13년 전 | 1806 | |
| 4871 |
PHPㅡASP프로그래머
|
13년 전 | 1492 | |
| 4870 |
PHPㅡASP프로그래머
|
13년 전 | 1276 | |
| 4869 |
PHPㅡASP프로그래머
|
13년 전 | 1208 | |
| 4868 |
PHPㅡASP프로그래머
|
13년 전 | 4435 | |
| 4867 |
Darby
|
13년 전 | 1608 | |
| 4866 | 13년 전 | 771 | ||
| 4865 | 13년 전 | 846 | ||
| 4864 | 13년 전 | 1509 | ||
| 4863 | 13년 전 | 1414 | ||
| 4862 | 13년 전 | 4263 | ||
| 4861 | 13년 전 | 1043 | ||
| 4860 | 13년 전 | 2691 | ||
| 4859 | 13년 전 | 1260 | ||
| 4858 | 13년 전 | 1635 | ||
| 4857 | 13년 전 | 1271 | ||
| 4856 | 13년 전 | 1919 | ||
| 4855 | 13년 전 | 13172 | ||
| 4854 | 13년 전 | 1188 | ||
| 4853 |
AMDbest
|
13년 전 | 4330 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기