HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media


Welcome to TinyPortal. Please login or sign up.

July 21, 2024, 08:15:27 AM

Login with username, password and session length
  • Total Posts: 195,333
  • Total Topics: 21,233
  • Online today: 103
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 49
  • Total: 49

A Random Picture/Banner Script

Started by Mitchâ„¢, April 11, 2006, 11:34:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Very odd if you did all that right. Hard to say what it is without looking at your setup and code.


Quote from: whoesa on June 05, 2006, 09:25:22 PM
Quote from: elpvn on April 12, 2006, 03:17:00 PM
It's nice for set as a dinamic logo but I like it get the pictures from a gallery than rather :)

Quote from: SlideShowScript<SCRIPT LANGUAGE="JavaScript"><!--

var slideShowSpeed = 2000;
var fadeDuration = 3;

fadeimgarray = new Array();
fadeimgarray[0] = 'images/1.jpg';
fadeimgarray[1] = 'images/2.jpg';
fadeimgarray[2] = 'images/3.jpg';
fadeimgarray[3] = 'images/4.jpg';

var t
var j = 0

var preLoad = new Array()
for (i = 0; i < fadeimgarray.length; i++){
   preLoad = new Image()
   preLoad.src = fadeimgarray

function runSlideShow(){
   if (document.all){"blendTrans(duration=2)""blendTrans(duration=fadeDuration)"
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
   j = j + 1
   if (j > (fadeimgarray.length-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)

<BODY BGCOLOR="#FFFFFF" onLoad="runSlideShow()">

<IMG SRC="images/1.jpg" NAME="SlideShow" BORDER=0>

Demo here: ;)

Hi, how do i get this script working on my site?

I've been trying many ways but i can't get i working  :-\

Could anybody explain me what to do? I really like this one  :)

could it be do to the whole
Quote<IMG SRC="images/1.jpg" NAME="SlideShow" BORDER=0>

i dunno just guessing


Well i have no idea what is wrong  :)

It is working very nice on this site but for me it only shows first image

I guess i need a code master here  ;)


im kinda interested in the directory structure, and the whole code file...

id be happy to take a look for you


Well it's not 100% the perfect script anyway for me. I like that the images are fading but i want to use each images as a link to an other site.
I have no idea if this is possible with this script or if there is an other script that works like that.

Anyone with an idea?



to add to a block put all thsi code in a Script box

<SCRIPT LANGUAGE="Javascript">
function banner() {} ; b = new banner() ; n = 0
b[n++]= "<A HREF=''><IMG SRC='' BORDER='0' ALT=''></A>"
b[n++]= "<A HREF=''><IMG SRC='' BORDER='0' ALT=''></A>"
b[n++]= "<A HREF=''><IMG SRC='' BORDER='0' ALT=''></A>"
b[n++]= "<A HREF=''><IMG SRC='' BORDER='0' ALT=''></A>"
b[n++]= "<A HREF=''><IMG SRC='' BORDER='0' ALT=''></A>"
i=Math.floor(Math.random() * n) ;
document.write( b[i] )

in each line specify your site address and image address in the code above for it to work

prometheus fire

I just found this, very straightforward and clean.  I'm still in the process of building up my banners, but I want to have a mouse-over popup/tooltip when someone mouses over a banner.

Initially, I want it to say, "Advertise with us" but eventually it will be the name or blurb about my advertisers.

In addition to the reference link that takes the user out to the linked page, what kind of code is used to cause a mouse-over?  What would I need to add to each line/link/image command?

Yes, I am very new to this.  That kind of coding is probably simple, I just don't know where to look.

Thanks for any help you all can provide.


If you want a tooltip to show when a person does a mouseover you just need to add something to the title.
<a href="link/to/site.html" title="Advertise with us"><img here></a>

You should also pay attention to how old the topics are. The last post in here was over 2 years ago.... Would be better if you just start a new topic and reference anything you think is related.

prometheus fire

Thanks, sorry.  I wan't sure if it was better to start a new topic or add to the already created one.   The information doesn't really get old, and this is the thread that is linked to from the blocks indexhere.

Thank you for the help though, it was very useful to me.  While the script is old, it's basic and straightforward enough not to really be out of date.  Knowing how to alter the code to get the most out of it is helpful.

I am new here and I don't want to break any rules of the neighborhood.  I noted your comment and re-read your posting rules.  Thanks.