View Full Version: CBox Goodies

Time, Space, & Chips > Out to the Pub > CBox Goodies


Title: CBox Goodies
Description: How to auto refresh.


The Meta - August 23, 2010 09:06 PM (GMT)
Now this isn't anything that would break the site, or anything remotely similar.

This code will enable you to have a small browser window that will refresh every two minutes.

Just open a second browser window, size it to taste, and drop it in a corner of your screen. Then you wont have to keep clicking the refresh link.
    Save these to whatever you want to call them, but use .html or .htm for the extension.
    You don't have to upload these anywhere.
    Save the files anywhere you like on your computer, and just drag the file to browser.
    I saved mine to TSC__cbox.html
OOC Chat Window Code:
CODE
<html>
<head>
 <title>TS&C OOC CHAT</title>
 <link href="http://www2.cbox.ws/box/?boxid=1862779&boxtag=5997&sec=rss" rel="alternate" type="application/rss+xml" title="Cbox &middot; TimeSpaceChips" />
 <meta http-equiv="refresh" content="120">
</head>
<body bgcolor="#ffffff" style="text-align: center;">
 <div style="position: bottom; width:100%; margin: 0px auto; height: 80%;" >
  <div><iframe allowtransparency="yes" frameborder="0" width="100%" height="100%" src="http://www2.cbox.ws/box/?boxid=1862779&boxtag=5997&sec=main" marginheight="0" marginwidth="0" scrolling="auto" name="cboxmain"></iframe></div>
  <div><iframe allowtransparency="yes" frameborder="0" width="100%" height="75" src="http://www2.cbox.ws/box/?boxid=1862779&boxtag=5997&sec=form" marginheight="0" marginwidth="0" scrolling="no" name="cboxform"></iframe></div>   </div>
 </div>
</body>
</html>
Now none of these calls are changed.
They're the same as what's embedded on our pages over there.
<----

The only thing that is changed, is the formatting - so that it will fill the majority of the browser window.

Here's what mine looks like:
user posted image


Now for the In Character Chat Code:
(saved mine to TSC_IC_cbox.html)
CODE
<html>
<head>
 <title>TS&C Character Chat</title>
 <link href="http://www7.cbox.ws/box/?boxid=282711&boxtag=twxxap&sec=rss" rel="alternate" type="application/rss+xml" title="Cbox &middot; TimeSpaceChipsIC" />
 <meta http-equiv="refresh" content="120">
</head>
<body bgcolor="#ffffff" style="text-align: center;">
   <div style="position: bottom; width:100%; margin: 0px auto; height: 80%;" >  
  <div><iframe allowtransparency="yes" frameborder="0" width="100%" height="100%" src="http://www7.cbox.ws/box/?boxid=282711&boxtag=twxxap&sec=main" marginheight="0" marginwidth="0" scrolling="auto" name="cboxmain"></iframe></div>
  <div><iframe allowtransparency="yes" frameborder="0" width="100%" height="75" src="http://www7.cbox.ws/box/?boxid=282711&boxtag=twxxap&sec=form" marginheight="0" marginwidth="0" scrolling="no" name="cboxform"></iframe></div>
 </div>
</body>
</html>


And this is what mine looks like:
user posted image


Now this is the refresh code itself for both of them:
CODE
<meta http-equiv="refresh" content="120">
This bit sets it so that it will refresh the page every two minutes.
CODE
content="120"
The numbers are the seconds, and you can change it to how ever long in between refresh cycles that you want.

There is one drawback to using these...
    If the refresh timer is too short and you are in the middle of typing, the page will refresh and cause you to lose whatever you typed beforehand. With that in mind, I'd suggest not going under 120 seconds (two minutes), and to hit F5 to refresh the page before typing.
If anyone needs help, let me know. Personally, I find these to be much easier to deal with then having to click refresh, or hitting F5. Plus, you still have the option to click the refresh link if you need to.

And like I said before, the code for these doesn't touch this forum. It calls the cbox.ws server, and wont break the page.

Oh... this should work for internet explorer as well.

*double-checks*

Yep. Works great in IE. :D

Have fun all! Happy Monday! *ducks*

Avalon De Winter - August 23, 2010 09:23 PM (GMT)
ohhhh how useful!!




* Hosted for free by zIFBoards