Rotating banner in index.php
-
Hi there. I currently run a rotating banner script on my forums called ‘ultimate banner’.
It’s a simple operation, whereby the .js points to a directory of images and gives instructions for these to be rotated. The forum’s header contains:
<script language=”JavaScript” SRC=”ultimateBanner.js”></SCRIPT>
which activates and displays the rotating banners.
I’ve been trying to add exactly the same thing to my front page, https://www.rapnews.co.uk
I’ve added a unique ultimatebanner.js in my default theme’s main directory, and told it to display what images I want et. I’ve been added the script I use in the forum header, to where I’d like it on the index.php.
I’ve had little joy with this. The main page loads slowly and when it’s completed, there’s no image and the status bar reads ‘error in page’.
I can’t think what I’m doing wrong. The official instructions of the script say to insert:
<BODY onLoad=”displayBanners()”>
<A HREF=”javascript:goTo()” onMouseOver=”show(); return true” onMouseOut=”window.status=”; return true”><IMG SRC=”default.jpg” ALT=”Banner” NAME=”img” BORDER=”1″ WIDTH=”400″ HEIGHT=”50″></A>into the body of the page you want the script on. For whatever reason years go, I didn’t use this for the forums. However, I’ve tried this on the main page and it too poses errors. It merely displays an unloaded image called ‘default.jpg’. This isn’t referenced in the .js nor does it exist.
For the time being, I’ve deleted all script and desired images for the main page, and merely have a static, non rotating image up.
Any help would be highly appreciated. Thanks, Tony.
- The topic ‘Rotating banner in index.php’ is closed to new replies.