DeMiNe0
10-26-2004, 07:38 PM
Hey,
Im trying to get a random background working on my site. I have this code in a seporate php file:
<?php
$bg[] = "/images/trees.jpg";
$bg[] = "/images/dawn.jpg";
$bg[] = "/images/winterwonder.jpg";
$bg[] = "/images/storm.jpg";
shuffle($bg);
echo $bg[0];
?>
I included this file into my phpinclude_start template:
ob_start();
include("/home/wowforge/public_html/bgimg.php");
$bgimg = ob_get_contents();
chdir("/home/wowforge/public_html/forums/");
ob_end_clean();
then i tryed using:
<style type="text/css">
<!--
.background
{
background: #000000 url('$bgimg') repeat-x top left;
}
-->
</style>
in my adv_portal template.
When i loaded the page. The $bgimg var was blank.
I tryed the same line on other templates and it worked fine... How would i go about making this work in VBA?
Im trying to get a random background working on my site. I have this code in a seporate php file:
<?php
$bg[] = "/images/trees.jpg";
$bg[] = "/images/dawn.jpg";
$bg[] = "/images/winterwonder.jpg";
$bg[] = "/images/storm.jpg";
shuffle($bg);
echo $bg[0];
?>
I included this file into my phpinclude_start template:
ob_start();
include("/home/wowforge/public_html/bgimg.php");
$bgimg = ob_get_contents();
chdir("/home/wowforge/public_html/forums/");
ob_end_clean();
then i tryed using:
<style type="text/css">
<!--
.background
{
background: #000000 url('$bgimg') repeat-x top left;
}
-->
</style>
in my adv_portal template.
When i loaded the page. The $bgimg var was blank.
I tryed the same line on other templates and it worked fine... How would i go about making this work in VBA?