….
,,,,,,
…..
When having to work with four (4) different pieces of code for the horizontal streaming banner, encountering a problem would not be a surprise. Should your script not be working correctly, here are a few troubleshooting tips you can check on . For convenience we’ve broken the tips down relevant to each section of code.
External Files
- Are there any typo’s?
- Does the code end in the file extension .js ?
- Is this file in the Root Directory of the domain?
CSS
- Are there any typo’s?
- For an individual HTML page, is the <STYLE> code in the <HEAD> section of the page?
- For CSS, is the information contained in a TEXT document?
- For CSS, does the document end in the file extension .css ?
- For CSS, does the .css file reside in the Root Directory of the domain?
Head
- Are there any typo’s
- Is the “scr= ” name the same as used in the External File?
Body
- Are there any typo’s?
- Do the image files for slideA and slideB have the same names?
- Do you have the same number of image files in both slideA and slideB?
- Are the width and height numbers the same?
- Is the width large enough to accommodate the number of images being used?
What Now?
OK, you’ve gone through everything and your script is still not working! What do you do? I have found the easiest way to see if the code is correct and working is to put all the files into a dummy HTML page, upload it (along with the images) and see what’s happening. This will quickly let you see if the script is working or not.
Setting the script up to test it is a little different than having the External file and CSS in the Root Directory. For our sample, we’ll not go through another description of the content, rather we’ll just show where to place the parts when used in an HTML document.
Actual HTML code is in blue; JAVA script code is in red; and notes are in grey.
<HTML>
<HEAD>
<TITLE></TITLE>
<META name=”description” content=”">
<META name=”keywords” content=”">
<STYLE>
Place the JAVA Script CSS, i.e., style code here
</STYLE>
</HEAD>
<BODY BGCOLOR=”#FFFFFF” TEXT=”#000000″ LINK=”#0000FF” VLINK=”#800080″>
JAVA Script Body code here. It would remain the same.
(Place the JAVA Script (External Files) at the bottom of the page below the JAVA Scrip BODY code, but before the final </BODY></HTML> that ends the page. Note that when you use the whole code on the actual page you do not use the ‘scr=’ reference. )
<script type=”text/javascript”>
JAVA Script code here (Due to length, the whole script has not been included)
</script>
</BODY>
</HTML>
“DUMMY” Page
We’ve created a simple dummy page with three (3) images to show how the code might look.
To view the HTML code for the ‘dummy’ page …. click here. (Note: The <!– –> tags have been used to show where the JAVA Script sections begin and end. Also, when you click on the link, you will be asked if you want to ‘Open’ or ‘Save’ this file – just click on ‘Open’ )
To see the HTML ‘dummy’ page in action…. click here.
Final note:
The code. . . .
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
. . . . has been placed at the top of the HTML page (as recommended by the script’s author) to overcome any problems that might be encountered by some browsers.


