TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 445
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 485
  • Total: 485

Rotating Banners

Started by RebelRose, August 23, 2006, 09:45:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eli

#10
Quote<center>

<ilayer id="l1">
<layer id="l2">
<div id="l1">
<div id="l3" style="position:relative">
</div>
</div>
</layer>
</ilayer>





<script language="JavaScript">
<!--


var bannerArray = new Array();
var myCount=0;
// Banner Code Assignment
bannerArray[0] = "<A HREF=\"http://www.devira.info\"><IMG SRC=\"http://www.devira.info/images/brooke/jennaboyd3a.jpg\" border=\"0\" width=\"133\" height=\"200\"></A>";
bannerArray[1] = "<A HREF=\"http://www.devira.info\"><IMG SRC=\"http://www.devira.info/images/brooke/jennaboyd5a.jpg\" border=\"0\" width=\"133\" height=\"200\"></A>";
bannerArray[2] = "<A HREF=\"http://www.devira.info\"><IMG SRC=\"http://www.devira.info/images/brooke/jennaboyd6a.jpg\" border=\"0\" width=\"133\" height=\"200\"></A>";
bannerArray[3] = "<A HREF=\"http://www.devira.info\"><IMG SRC=\"http://www.devira.info/images/brooke/jennaboyd7a.jpg\" border=\"0\" width=\"133\" height=\"200\"></A>";
bannerArray[4] = "<A HREF=\"http://www.devira.info\"><IMG SRC=\"http://www.devira.info/images/brooke/jennaboyd3a.jpg\" border=\"0\" width=\"133\" height=\"200\"></A>";

bannerRotate();

function bannerRotate() {

if(myCount > bannerArray.length-1){myCount=0;}

// Write out rotation
if (document.all){ // it is IE
document.all.l3.innerHTML=bannerArray[myCount];
}

else if (document.layers){ // it is NN

document.layers.l1.document.layers.l2.document.open();
document.layers.l1.document.layers.l2.document.write(bannerArray[myCount]);
document.layers.l1.document.layers.l2.document.close();
}
setTimeout("bannerRotate()", 3000);
myCount++;
}
// -->
</script>

</center>


That's exactly what I put in the scriptbox with no editor.

http://www.kalinini.devira.info is the site. Log in with the username "test" (without the quotes) and the password "test" (without the quotes) to see the block. This is for viewing purposes only, please.

EDIT: FYI, the SMF board changes the entered </a> to [/url]. That's why it shows up as such on the last code I posted, and why it showed up on this one until I put the nobbc tags in.

rebelrose

I see it rotating pictures however I made a mistake in the code, look at the very first image, I forgot to change the [/url]

rebelrose

#12
It never changed the script on any of the ones I used.


eli

Well, it's up with your code, and it still doesn't show. Doesn't work on any skin (thought that might be a source of the problem).

And it changes the script when you post it in SMF. Or at least it did when I posted it. I don't know why. Maybe it's my user settings. Anyways, the point is, I used the exact same code you have, and it doesn't work. I'm about to just give up on it here, because it's getting to be not worth my time. None of the code works, none of the settings work, etc.

rebelrose

I saw it on your site when I logged in the rotating images of a little girl, I don't understand what you are saying it wrong it is even working on my test site. I entered that exact code in a scriptbox.

eli

#15
Well, it doesn't want to work on my browser then. Doesn't make any sense to me, though. Did you make it Firefox 2 unfriendly?

eli

Tested it on Flock (firefox based) as well, doesn't work there. Works on Opera. I can assume it works on IE then. Didn't you make the code compatible with Firefox?

rebelrose

It is just a script code I have had for a while I did not write it. I use IE and yes well it works on that. Did you see it on my test site using your firefox? No one has ever said it didn't work on FF before so I am not sure what to tell you there.

eli

Download Firefox and check it out.

rebelrose

I did just that and I see it does not show in FireFox, I am not sure how to fix that problem, sorry.

This website is proudly hosted on Crocweb Cloud Website Hosting.