Demo: https://sailormoon.forumvi.com/
Mình có đoạn code như sau:
Và 2 đoạn Javascript:
Làm sao để khi đóng thanh sidebar thì f5 không bị hiện trở lại? Ai rành javascript hỗ trợ giúp mình với. Cảm ơn vì đã ghé thăm topic
Mình có đoạn code như sau:
Code:
<div id="Link1" style="margin-bottom: -40px;border-radius: 0px 4px 4px 0;margin-left: 247px;width: 70px;background-image: url('');text-align: center;" runat="server" navigateurl="#">
<a href="#" title="Click để tuỳ chỉnh SideBar"><img src="https://i.servimg.com/u/f34/17/54/83/01/tab-co10.png" />
</a>
</div>
Và 2 đoạn Javascript:
Code:
<script type="text/javascript">
$(function() {
$("#Link1").click(function(evt) {
evt.preventDefault();
if ($('#panelText').is(":hidden")) {
$("#panelText").animate({
width: 'toggle',
height: 'toggle',
opacity: 'toggle'
}, 1000);
} else {
$("#panelText").animate({
width: 'toggle',
height: 'toggle',
opacity: 'toggle'
}, 1000);
}
});
});
</script>
Code:
<script type="text/javascript">
jQuery('#Link1').insertBefore('#panelText');
if (my_getcookie('forum-widget') == '0') {
jQuery('#panelText').animate({
width: 'toggle',
height: 'toggle',
opacity: 'toggle'
}, 0);
}
</script>
Làm sao để khi đóng thanh sidebar thì f5 không bị hiện trở lại? Ai rành javascript hỗ trợ giúp mình với. Cảm ơn vì đã ghé thăm topic