Hey Shane, thanks for your reply.
I did read through all of that, and I’m doing exactly what it says or maybe not..
This is my .js file
<!--
//
// Type the number of images you are rotating.
NumberOfImagesToRotate = 2;
// Specify the first and last part of the image tag.
FirstPart = '<img src="top';
LastPart = '.gif">';
function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}
//-->
which I saved in my theme folder as randomtop.js
and this is what I’m putting in the post:
<script type="text/javascript" src="https://localhost/wordpress/wp-content/themes/themeone/randomtop.js"> </script>
<script type="text/javascript" language="JavaScript"><!--
printImage();
//--></script>
I’m even using the raw html plugin.
Also, I have wordpress installed offline for testing themes.
I’m not sure what I’m doing wrong…