HelpWanted
01-19-2009, 05:13 AM
<script>function toggle(cboxmain){
var element = document.getElementById(cboxmain);
element.style.display = (element.style.display == 'block') ? "none" : "block";
}
</script>
<!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div>
<script type=text/javascript>
function refresh()
{
document.all.cboxmain.src = document.all.cboxmain.src;
}
window.setInterval("refresh()",7500);
</script>
<iframe name='cboxmain' frameborder="0" width="300" height="100" src="http://www5.cbox.ws/box/?boxid=407802&boxtag=7124&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#FFFFFF 1px solid;" id="cboxmain"></iframe><script>
</script></div>
<div><iframe frameborder="0" width="300" height="75" src="http://www5.cbox.ws/box/?boxid=407802&boxtag=7124&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#FFFFFF 1px solid;border-top:0px" id="cboxform"></iframe></div>
</div>
<!-- END CBOX --><script type="text/javascript">
function popcbox() {
cboxwin = window.open("","Cbox","width=200,height=515,toolbar=no,scrollbars=no,status=no,resizable=yes");
cboxwin.document.write('<html><head><title>Cbox</title></head><frameset rows="*,75" frameborder="0" framespacing="0">');
cboxwin.document.write('<frame marginwidth="2" marginheight="2" src="http://www5.cbox.ws/box/?boxid=407802&boxtag=7124&sec=main" noresize="true" scrolling="auto" name="cboxmain" style="border:#FFFFFF 1px solid;"/>');
cboxwin.document.write('<frame marginwidth="2" marginheight="2" src="http://www5.cbox.ws/box/?boxid=407802&boxtag=7124&sec=form" noresize="true" scrolling="no" name="cboxform" style="border:#FFFFFF 1px solid;border-top:0px"/></frameset>'); cboxwin.document.write('<noframes>Cbox needs frames!</noframes></html>');
try {
x = screen.width;
y = screen.height;
cboxwin.moveTo(Math.max((x/2)-150, 0), Math.max((y/3)-88));
} catch (e) {};
}
</script>
<Center><a href="JavaScript: popcbox();">Click for Shoutbox Window</a>|<a href="javascript: toggle('refresh');">Toggle Refresh</a></Center>
I can't get it to Toggle the Auto-Refreshing? How can I fix this?
var element = document.getElementById(cboxmain);
element.style.display = (element.style.display == 'block') ? "none" : "block";
}
</script>
<!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div>
<script type=text/javascript>
function refresh()
{
document.all.cboxmain.src = document.all.cboxmain.src;
}
window.setInterval("refresh()",7500);
</script>
<iframe name='cboxmain' frameborder="0" width="300" height="100" src="http://www5.cbox.ws/box/?boxid=407802&boxtag=7124&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#FFFFFF 1px solid;" id="cboxmain"></iframe><script>
</script></div>
<div><iframe frameborder="0" width="300" height="75" src="http://www5.cbox.ws/box/?boxid=407802&boxtag=7124&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#FFFFFF 1px solid;border-top:0px" id="cboxform"></iframe></div>
</div>
<!-- END CBOX --><script type="text/javascript">
function popcbox() {
cboxwin = window.open("","Cbox","width=200,height=515,toolbar=no,scrollbars=no,status=no,resizable=yes");
cboxwin.document.write('<html><head><title>Cbox</title></head><frameset rows="*,75" frameborder="0" framespacing="0">');
cboxwin.document.write('<frame marginwidth="2" marginheight="2" src="http://www5.cbox.ws/box/?boxid=407802&boxtag=7124&sec=main" noresize="true" scrolling="auto" name="cboxmain" style="border:#FFFFFF 1px solid;"/>');
cboxwin.document.write('<frame marginwidth="2" marginheight="2" src="http://www5.cbox.ws/box/?boxid=407802&boxtag=7124&sec=form" noresize="true" scrolling="no" name="cboxform" style="border:#FFFFFF 1px solid;border-top:0px"/></frameset>'); cboxwin.document.write('<noframes>Cbox needs frames!</noframes></html>');
try {
x = screen.width;
y = screen.height;
cboxwin.moveTo(Math.max((x/2)-150, 0), Math.max((y/3)-88));
} catch (e) {};
}
</script>
<Center><a href="JavaScript: popcbox();">Click for Shoutbox Window</a>|<a href="javascript: toggle('refresh');">Toggle Refresh</a></Center>
I can't get it to Toggle the Auto-Refreshing? How can I fix this?