I have tried 3 different rotators and went through a whole bunch of dead links off of a google search. Can somone pm me or post a simple javascript banner rotator script that works? I would really appreciate it.
There are two links to phpadsnew which i really don't want to learn to rotate a single banner, a link to hotscripts and a script that someone wrote and someone else says gives an error. Was looking for a working script.
I would use a php rotator as java scripts are bad for search engines - with php rotator u can get stats on which one gets clicks - I was usin java rotators but I went to php - lately I switch back to java because - CJ codes are java scripts - so I manually just took the codes and images and rotated them - but PHP rotating is far better for your site and search engines
for those who find this thread in the future here is what i found off of TOPS30's links. <script language="JavaScript"> <!-- Begin rnd.today=new Date(); rnd.seed=rnd.today.getTime(); function rnd() { rnd.seed = (rnd.seed*9301+49297) % 233280; return rnd.seed/(233280.0); }; function rand(number) { var result = Math.ceil(rnd()*number); if (!result)result++; return result }; var ad_cnt1 = 3; var ad1 = rand(ad_cnt1); var link1; var adBanner1; var width1 var height1 if (ad1==1) { link1="http://url1.com"; adBanner1="http://image1.com/1.gif"; width1="160"; height1="600"; alt1="first image"; } if (ad1==2) { link1="http://url1.com"; adBanner1="http://image1.com/2.gif"; width1="160"; height1="600"; alt1="number 2"; } if (ad1==3) { link1="http://url1.com"; adBanner1="http://image1.com/1.gif"; width1="160"; height1="600"; alt1="number 3"; } document.write('<center><a href="' + link1 + '" target="_blank">'); document.write('<img src="' + adBanner1 + '" width=' + width1 + ' height=' + height1 + ' border=0 alt="' + alt1 + '"></a>'); document.write('</center>'); // End --> </SCRIPT> Code (markup):
I am trying to get some text and links to rotate, and my script isn't even showing ANY text. Can I modify this script to rotate just text? How would I do that? Any takers?
I use this http://www.bannercreator.nu/banner-rotation.html script for text on this site Golf In NYC. I had used it for images but changed it to use text. Its simple and it works. Hope this helps you