Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Javascript help

  • Please log in to reply
No replies to this topic

#1 cowsgonemadd3


    Feed me some spyware!

  • Banned
  • 4,557 posts
  • Local time:11:38 AM

Posted 14 August 2005 - 10:23 PM

I found this javascript that will display images and links randomly. Well I added my images and links and it only shows one out of 3 images and only after like 10 clicks.

Take a look and maybe tell me whats wrong?


<!-- written by The Omega

// http://members.xoom.com/the_omega/

// the_omega@geocities.com

// You must leave these comments in to use the script

// (hey, I wrote it. Let me have a little credit!)

// put info for randomly selected banners here, as in the examples



alt0="Alt code 1";

txt0="Tagline 1";



alt1="Alt code 2";

txt1="Tagline 2";



alt2="Alt code 3";

txt2="Tagline 3";

len=3; // change to equal number of banners

today=new Date();



document.writeln('<A HREF="'+eval("lnk"+rnd)+'"><IMG SRC="'+eval("gfx"+rnd)+'" ALT="'+eval("alt"+rnd)+'"><BR>'+eval("txt"+rnd)+'</A>');



<p align="center"><font face="arial" size="-2">This free script provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript

Is there somewhere where it tells how often it will load? I mean it wont even display my image hardly ever. Thanks

BC AdBot (Login to Remove)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users