Chexbox
08-19-2001, 02:51 AM
Hey,
My name is Isaac and I am new here so please son't scold me if
I post something stupid. I am trying to start a website, but I don't
have enough money to buy vBulletin Board yet.
Once I buy it in a month, I want this hack but I want to know if it can be done before I through my money away.
(1) Could I be able to put an expandable and collapsable script
on the forum so that the Categories have a + or - sign image on them and then when you press the + the category collapses but when you press the minus it expands.
I don't think I explained it very well, so here is an example and a clarification
http://www.wonko.com
The columns on the side do exactly what I want the categorys to do: expand and collapse without having to reload the page.
I have taken out what I think is the javascript code that does this:
<script language=javascript type="text/javascript">
function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
document.cookie = curCookie;
}
function menuClick(menu){
var foo=document.all[menu.sourceIndex+3].style;
if (foo.visibility=='hidden') {
foo.display='inline';
foo.visibility='visible';
document.all[menu.sourceIndex+1].src='images/arrow-down.gif'
setCookie('sideboxes[' + menu.id + ']', '1', 'Friday, 16-Jan-2037 00:00:00 GMT')
} else {
foo.display='none';
foo.visibility='hidden';
document.all[menu.sourceIndex+1].src='images/arrow-right.gif'
setCookie('sideboxes[' + menu.id + ']', '0', 'Friday, 16-Jan-2037 00:00:00 GMT')
}
}
function menuHighlight(menu){
//menu.style.color='yellow';
}
function menuUnHighlight(menu){
//menu.style.color='#000000';
}
function openNewsBox() {
window.open('newsbox.php', 'NewsBox', 'width=150, height=400, left=0, top=0, toolbar=no, menubar=no, status=no, location=no, scrollbars=no, resizable=yes');
}
function userInfo() {
box = document.whoisonline.members;
destination = box.options[box.selectedIndex].value;
if (destination) location.href = destination;
}
</script>
It even stores a cookie so that the categories would be in the same position the visitor left it when they returned.
Here are the images that would look good:
My name is Isaac and I am new here so please son't scold me if
I post something stupid. I am trying to start a website, but I don't
have enough money to buy vBulletin Board yet.
Once I buy it in a month, I want this hack but I want to know if it can be done before I through my money away.
(1) Could I be able to put an expandable and collapsable script
on the forum so that the Categories have a + or - sign image on them and then when you press the + the category collapses but when you press the minus it expands.
I don't think I explained it very well, so here is an example and a clarification
http://www.wonko.com
The columns on the side do exactly what I want the categorys to do: expand and collapse without having to reload the page.
I have taken out what I think is the javascript code that does this:
<script language=javascript type="text/javascript">
function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
document.cookie = curCookie;
}
function menuClick(menu){
var foo=document.all[menu.sourceIndex+3].style;
if (foo.visibility=='hidden') {
foo.display='inline';
foo.visibility='visible';
document.all[menu.sourceIndex+1].src='images/arrow-down.gif'
setCookie('sideboxes[' + menu.id + ']', '1', 'Friday, 16-Jan-2037 00:00:00 GMT')
} else {
foo.display='none';
foo.visibility='hidden';
document.all[menu.sourceIndex+1].src='images/arrow-right.gif'
setCookie('sideboxes[' + menu.id + ']', '0', 'Friday, 16-Jan-2037 00:00:00 GMT')
}
}
function menuHighlight(menu){
//menu.style.color='yellow';
}
function menuUnHighlight(menu){
//menu.style.color='#000000';
}
function openNewsBox() {
window.open('newsbox.php', 'NewsBox', 'width=150, height=400, left=0, top=0, toolbar=no, menubar=no, status=no, location=no, scrollbars=no, resizable=yes');
}
function userInfo() {
box = document.whoisonline.members;
destination = box.options[box.selectedIndex].value;
if (destination) location.href = destination;
}
</script>
It even stores a cookie so that the categories would be in the same position the visitor left it when they returned.
Here are the images that would look good: