Trunk updated to 0.9 git-svn-id: http://kusabax.cultnet.net/svn/repo/stable@176 73d99b7e-4f53-4972-b7b7-2ecd3c4d89ee
23 lines
673 B
JavaScript
23 lines
673 B
JavaScript
function toggle(button, area) {
|
|
var tog=document.getElementById(area);
|
|
if(tog.style.display) {
|
|
tog.style.display="";
|
|
} else {
|
|
tog.style.display="none";
|
|
}
|
|
button.innerHTML=(tog.style.display)?'+':'−';
|
|
set_cookie('nav_show_'+area, tog.style.display?'0':'1', 30);
|
|
}
|
|
function removeframes() {
|
|
var boardlinks = document.getElementsByTagName("a");
|
|
for(var i=0;i<boardlinks.length;i++) if(boardlinks[i].className == "boardlink") boardlinks[i].target = "_top";
|
|
|
|
document.getElementById("removeframes").innerHTML = 'Frames removed.';
|
|
|
|
return false;
|
|
}
|
|
function reloadmain() {
|
|
if (parent.main) {
|
|
parent.main.location.reload();
|
|
}
|
|
} |