MyBB Community Forums

Full Version: My javascript loads,but the board doesn't.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying this tutorial - http://www.boutell.com/newfaq/creating/b...dfill.html

To make my background work on all sizes.

The background loads,but the board doesn't. Or it goes behind the background..

How to fix this problem?

The stuffs -

<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script src="/jscripts/resizing_background.js">
</script>
<script type="text/javascript">
<!--
	lang.no_new_posts = "{$lang->no_new_posts}";
	lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body onLoad="rbInit()" onResize="rbResize()">
<script>
// "true" means "keep the proportions of the original image."
// If you pass "false" the image fills the whole window,
// even if it must be distorted to do so. Experiment.
rbOpen(false);
{$header}
{$forums}
{$boardstats}

<dl class="forum_legend smalltext">
	<dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->no_new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
	<dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
<script>
rbClose("http://i43.tinypic.com/2mzwdqf.jpg");
</script>
</body>
</html>
<script>
// "true" means "keep the proportions of the original image."
// If you pass "false" the image fills the whole window,
// even if it must be distorted to do so. Experiment.
rbOpen(false);

I don't see the </script> tag.
Ahh thanks for pointing that out.

That did fix it sorta.. Its just now the image is covering the board.