Bạn muốn có nhiều vị trí quảng cáo hơn cho diễn đàn, Mình Hướng dẫn chèn quảng cáo ở dưới góc bên phải trong Xenforo
Các bước thực hiện: Mở Template: ad_header chèn đoạn code bên dưới
___________________________________________________________________________
<!-- Begin Ad CHIASE -->
<script language=javascript type='text/javascript'>
function hideDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElenmentById('hideShow').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hideShow.visibility = 'hidden';
}
slse { // IE 4
document.all.hideShow.style.visibility = 'hidden';
}
}
}
function showDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElenmentById('hideShow').style.visibility = 'visible';
}
else {
if (document.layers) { // Netscape 4
document.hideShow.visibility = 'visible';
}
else { // IE 4
document.all.hideShow.style.visibility = 'visible';
}
}
}
</script>
<div id="hideShow" style="position: fixed; bottom: 19px; right: 0px; width:180px; 200px; text-align: right; z-index:2">
<a href="javascript:hideDiv()"><font color="red">[<b>X<b>]</font></a>
<script type="text/javascript">
var images = [], index = 0;
images[0] = "<a href='' target='_blank'><img src='http://diendantaynguyen.net/img/ad_header.jpg' width='170' height='200' /></a>";
images[1] = "<a href='' target='_blank'><img src='http://diendantaynguyen.net/img/ad_header.jpg' width='170' height='200' /></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]); //done
</script></div>
<!--End Ad CHIASE -->
Các bước thực hiện: Mở Template: ad_header chèn đoạn code bên dưới
___________________________________________________________________________
<!-- Begin Ad CHIASE -->
<script language=javascript type='text/javascript'>
function hideDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElenmentById('hideShow').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hideShow.visibility = 'hidden';
}
slse { // IE 4
document.all.hideShow.style.visibility = 'hidden';
}
}
}
function showDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElenmentById('hideShow').style.visibility = 'visible';
}
else {
if (document.layers) { // Netscape 4
document.hideShow.visibility = 'visible';
}
else { // IE 4
document.all.hideShow.style.visibility = 'visible';
}
}
}
</script>
<div id="hideShow" style="position: fixed; bottom: 19px; right: 0px; width:180px; 200px; text-align: right; z-index:2">
<a href="javascript:hideDiv()"><font color="red">[<b>X<b>]</font></a>
<script type="text/javascript">
var images = [], index = 0;
images[0] = "<a href='' target='_blank'><img src='http://diendantaynguyen.net/img/ad_header.jpg' width='170' height='200' /></a>";
images[1] = "<a href='' target='_blank'><img src='http://diendantaynguyen.net/img/ad_header.jpg' width='170' height='200' /></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]); //done
</script></div>
<!--End Ad CHIASE -->