banhkinhakdemi
23-08-2012, 09:59 PM
e có code quảng cáo góc phải ntn, e mún set cho sau khi tắt nó đi thì 1 thời gian sau nó sẽ tự hiện lại (5 phút) chắng hạn, vậy cần sửa chỗ nào ạ? admin giúp e với nhé
<style type="text/css" >/*Quang cao nhanh botton right*/#qc_nhanh{ position:fixed; background:#FFF; border: 1pt solid #CCCCCC;}#qc_nhanh_title_bg{ background:#09F url(images/thanhphan/button.gif); color:#FFF; font-family:Tahoma; font-size:11px; height:25px;}#qc_nhanh_title{ float: left; line-height:25px; padding-left:5px; font-weight:bold;}#qc_nhanh_min{ cursor: pointer; font-weight: bold; float: left; width: 10px; line-height:25px;}#qc_nhanh_close{ cursor: pointer; font-weight: bold; line-height:25px;}#qc_nhanh_status{ text-align:center; width:100%;}#qc_nhanh_content{ width: 100%; /*height: 0px;*/}/*End Quang cao nhanh botton right*/</style><script src="jquery.js" type="text/javascript" language="javascript"></script><!--Cookie--><SCRIPT LANGUAGE=javascript>function setCookie(name, value, expires, path, domain, secure){ document.cookie= name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");}function getCookie(name){ var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1){ begin = dc.indexOf(prefix); if (begin != 0) return null; }else{ begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1){ end = dc.length; } return unescape(dc.substring(begin + prefix.length, end));}function deleteCookie(name, path, domain){ if (getCookie(name)){ document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; }}</SCRIPT><script>$(document).ready(function(){
//-----Box quang cao botton right var qc_nhanh_hide = 0; var qc_width = 300; var title = 'Click vào dấu X nếu bạn cảm thấy phiền'; var status = 'Click here xem Thám tử lừng danh online'; var content = '<div width:100%;"><div style="font-family: Tahoma; font-size: 18px; text-align: center; "><span style="color: rgb(30, 144, 255); " class="Apple-style-span"><a target="_blank"href="http://phim15p.com/phim/tham-tu-lung-danh-conan-tron-bo-detective-conan-1996/m4293.html"><img src=http://2.bp.blogspot.com/-iLcxnvezqd4/Tl8u-9ZxSPI/AAAAAAAAAAM/snW5co4ua-I/s1600/detective-conan-detective-conan-6244399-1024-768.jpg" alt="Quảng cáo" align="" border="0px" width="300" height="150" /></a></span></div>'; $('body').append('<div id="qc_nhanh"><div id="qc_nhanh_title_bg"><div id="qc_nhanh_title">Quang Cao Nhanh</div><div id="qc_nhanh_min">V</div><div id="qc_nhanh_close">X</div></div><div id="qc_nhanh_status"></div><div id="qc_nhanh_content"></div><div id="qc_nhanh_botton"></div></div>'); //Tao noi dung $('#qc_nhanh_title').html(title); $('#qc_nhanh_status').hide().html('<marquee scrollamount="2" scrolldelay="2" style="font-family:Tahoma; font-size:10px; color:#06F; padding-right: 10px;">'+status+'</marquee>').fadeIn(300); $('#qc_nhanh_content').html('<div width:100%;">'+content+'</div>');
$('#qc_nhanh').css({width: qc_width}); $('#qc_nhanh_title').css({width: qc_width - 25}); $('#qc_nhanh').css({left: $(window).width()-qc_width-2, top: parseInt($(window).height())}); var qc_height = $('#qc_nhanh').height(); if (getCookie('qc_nhanh') != 1 && getCookie('min_qc_nhanh') != 1){ setTimeout (function(){ if (qc_height > $(window).height()){ $('#qc_nhanh').animate({height: qc_height, top: 0},1000); }else{ $('#qc_nhanh').animate({height: qc_height, top: parseInt($(window).height())-parseInt(qc_height)-2},1000); } },1000); } $(window).resize(function(){ if (getCookie('qc_nhanh') != 1){ if (qc_nhanh_hide == 0){ $('#qc_nhanh').css({left: parseInt($(this).width())-qc_width-2, top: parseInt($(this).height())-parseInt($('#qc_nhanh').height())-2}); } } }); var sub_height = qc_height - $(window).height(); $(window).scroll(function(){ if (getCookie('qc_nhanh') != 1){ if (qc_height > $(window).height()){ //$('#qc_nhanh_title').html($('#qc_nhanh').offset(). top+' = '+sub_height); if ($('#qc_nhanh').offset().top >= sub_height){ //$('#qc_nhanh').css({marginTop: -sub_height}); }else{ //$('#qc_nhanh').css({marginTop: 0}); } }else{ } if (qc_nhanh_hide == 0){ //$('#qc_nhanh').css({left: parseInt($(this).width())-qc_width-2, top: parseInt($(this).height())-parseInt($('#qc_nhanh').height())-2}); } } }); $('#qc_nhanh_min').toggle(function min_qc_nhanh(){ $('#qc_nhanh').animate({height: '35px', top: parseInt($(window).height())-37},500); $(this).html('?'); setCookie ('min_qc_nhanh','1','','','',''); },function(){ if (qc_height > $(window).height()){ $('#qc_nhanh').animate({height: qc_height+2, top: 0},500); $(this).html('V'); }else{ $('#qc_nhanh').animate({height: qc_height+2, top: parseInt($(window).height())-qc_height-4},500); $(this).html('V'); } setCookie ('min_qc_nhanh','0','','','',''); }); if (getCookie('min_qc_nhanh') == 1 && getCookie('qc_nhanh') != 1){ $('#qc_nhanh').animate({height: '35px', top: parseInt($(window).height())-37},500); $('#qc_nhanh_min').html('?'); } $('#qc_nhanh_close').click(function(){ $('#qc_nhanh').animate({height: '0px', top: parseInt($(window).height())},500); setTimeout(function(){ $('#qc_nhanh').remove(); },500); qc_nhanh_hide = 1; setCookie ('qc_nhanh','1','','','',''); });});</script>
<style type="text/css" >/*Quang cao nhanh botton right*/#qc_nhanh{ position:fixed; background:#FFF; border: 1pt solid #CCCCCC;}#qc_nhanh_title_bg{ background:#09F url(images/thanhphan/button.gif); color:#FFF; font-family:Tahoma; font-size:11px; height:25px;}#qc_nhanh_title{ float: left; line-height:25px; padding-left:5px; font-weight:bold;}#qc_nhanh_min{ cursor: pointer; font-weight: bold; float: left; width: 10px; line-height:25px;}#qc_nhanh_close{ cursor: pointer; font-weight: bold; line-height:25px;}#qc_nhanh_status{ text-align:center; width:100%;}#qc_nhanh_content{ width: 100%; /*height: 0px;*/}/*End Quang cao nhanh botton right*/</style><script src="jquery.js" type="text/javascript" language="javascript"></script><!--Cookie--><SCRIPT LANGUAGE=javascript>function setCookie(name, value, expires, path, domain, secure){ document.cookie= name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");}function getCookie(name){ var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1){ begin = dc.indexOf(prefix); if (begin != 0) return null; }else{ begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1){ end = dc.length; } return unescape(dc.substring(begin + prefix.length, end));}function deleteCookie(name, path, domain){ if (getCookie(name)){ document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; }}</SCRIPT><script>$(document).ready(function(){
//-----Box quang cao botton right var qc_nhanh_hide = 0; var qc_width = 300; var title = 'Click vào dấu X nếu bạn cảm thấy phiền'; var status = 'Click here xem Thám tử lừng danh online'; var content = '<div width:100%;"><div style="font-family: Tahoma; font-size: 18px; text-align: center; "><span style="color: rgb(30, 144, 255); " class="Apple-style-span"><a target="_blank"href="http://phim15p.com/phim/tham-tu-lung-danh-conan-tron-bo-detective-conan-1996/m4293.html"><img src=http://2.bp.blogspot.com/-iLcxnvezqd4/Tl8u-9ZxSPI/AAAAAAAAAAM/snW5co4ua-I/s1600/detective-conan-detective-conan-6244399-1024-768.jpg" alt="Quảng cáo" align="" border="0px" width="300" height="150" /></a></span></div>'; $('body').append('<div id="qc_nhanh"><div id="qc_nhanh_title_bg"><div id="qc_nhanh_title">Quang Cao Nhanh</div><div id="qc_nhanh_min">V</div><div id="qc_nhanh_close">X</div></div><div id="qc_nhanh_status"></div><div id="qc_nhanh_content"></div><div id="qc_nhanh_botton"></div></div>'); //Tao noi dung $('#qc_nhanh_title').html(title); $('#qc_nhanh_status').hide().html('<marquee scrollamount="2" scrolldelay="2" style="font-family:Tahoma; font-size:10px; color:#06F; padding-right: 10px;">'+status+'</marquee>').fadeIn(300); $('#qc_nhanh_content').html('<div width:100%;">'+content+'</div>');
$('#qc_nhanh').css({width: qc_width}); $('#qc_nhanh_title').css({width: qc_width - 25}); $('#qc_nhanh').css({left: $(window).width()-qc_width-2, top: parseInt($(window).height())}); var qc_height = $('#qc_nhanh').height(); if (getCookie('qc_nhanh') != 1 && getCookie('min_qc_nhanh') != 1){ setTimeout (function(){ if (qc_height > $(window).height()){ $('#qc_nhanh').animate({height: qc_height, top: 0},1000); }else{ $('#qc_nhanh').animate({height: qc_height, top: parseInt($(window).height())-parseInt(qc_height)-2},1000); } },1000); } $(window).resize(function(){ if (getCookie('qc_nhanh') != 1){ if (qc_nhanh_hide == 0){ $('#qc_nhanh').css({left: parseInt($(this).width())-qc_width-2, top: parseInt($(this).height())-parseInt($('#qc_nhanh').height())-2}); } } }); var sub_height = qc_height - $(window).height(); $(window).scroll(function(){ if (getCookie('qc_nhanh') != 1){ if (qc_height > $(window).height()){ //$('#qc_nhanh_title').html($('#qc_nhanh').offset(). top+' = '+sub_height); if ($('#qc_nhanh').offset().top >= sub_height){ //$('#qc_nhanh').css({marginTop: -sub_height}); }else{ //$('#qc_nhanh').css({marginTop: 0}); } }else{ } if (qc_nhanh_hide == 0){ //$('#qc_nhanh').css({left: parseInt($(this).width())-qc_width-2, top: parseInt($(this).height())-parseInt($('#qc_nhanh').height())-2}); } } }); $('#qc_nhanh_min').toggle(function min_qc_nhanh(){ $('#qc_nhanh').animate({height: '35px', top: parseInt($(window).height())-37},500); $(this).html('?'); setCookie ('min_qc_nhanh','1','','','',''); },function(){ if (qc_height > $(window).height()){ $('#qc_nhanh').animate({height: qc_height+2, top: 0},500); $(this).html('V'); }else{ $('#qc_nhanh').animate({height: qc_height+2, top: parseInt($(window).height())-qc_height-4},500); $(this).html('V'); } setCookie ('min_qc_nhanh','0','','','',''); }); if (getCookie('min_qc_nhanh') == 1 && getCookie('qc_nhanh') != 1){ $('#qc_nhanh').animate({height: '35px', top: parseInt($(window).height())-37},500); $('#qc_nhanh_min').html('?'); } $('#qc_nhanh_close').click(function(){ $('#qc_nhanh').animate({height: '0px', top: parseInt($(window).height())},500); setTimeout(function(){ $('#qc_nhanh').remove(); },500); qc_nhanh_hide = 1; setCookie ('qc_nhanh','1','','','',''); });});</script>