0
간단한 쿠키를 내 간단한 colorbox에서 작동 시키려고하고 있지만 그렇지 않습니다. 누군가 내가 올바른 방향으로 나를 가리킬 수 있기 때문에 나는 자바 스크립트로 그 편리하지 않다. Thx쿠키가 색상 상자의 팝업에서 작동하지 않습니다.
<script type="text/javascript">
$(document).ready(function() {
setTimeout(function() {
$.fn.colorbox({href:"{{ 'missroberta-international.jpg' | url_asset }}", open:true});
}, 1000);
setTimeout(function() { $.fn.colorbox.close(); }, 8000);
$(function() {
if ($.cookie('test_status') != '1')
{
setTimeout(function()
{
alert('foo');
jQuery.cookie('test_status', '1', { expires: 31});
}, 1000);
}
}
</script>