Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Banner Rotation - will this work?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cobabana123
Starting Member

2 Posts

Posted - 18 February 2004 :  16:32:03  Show Profile
This is what I am using on my website to rotate my banners, but I am needing to add the banners to my forum:


<TABLE ALIGN="center">
<TR><TD HEIGHT="150" WIDTH="500">

<div id="affiliants"></div>

<script>

//images
var aff_img = new Array()
aff_img[0] = 'http://www.dlksfslkgsg.com/gif';
aff_img[1] = 'http://www.sfsfsf.com/banners/kybanner.jpg';
aff_img[2] = 'http://www.sfsfsf.com/banners/snowtop.gif';
aff_img[3] = 'http://www.csdfsfs.com/banners/cabanner.gif';
aff_img[4] = 'http://www.sdfsfsf.com/cpc/tbc2.gif';
aff_img[5] = 'http://www.asdfsfs.com/banners/css.gif';
aff_img[6] = 'http://www.sdfsfsf.com/banners/janet.jpg';


//links to corresponding images
var aff_link = new Array()
aff_link[0] = 'http://www.fsfsfsfsf.com';
aff_link[1] = 'http://www.dsfsfsafsaf.com';
aff_link[2] = 'http://www.sfsfsfsf.com';
aff_link[3] = 'http://www.safdsfs.com/web';
aff_link[4] = 'http://www.safsfsfsf.com';
aff_link[5] = 'http://www.sadfsfsf.com';
aff_link[6] = 'http://www.sfsfsf.com';



function affilianate() {
var rand=Math.floor(Math.random()*aff_img.length)
document.getElementById('affiliants').innerHTML='<a href="'+aff_link[rand]+'" target="_blank"><img src="'+aff_img[rand]+'" border="0"></a>';
setTimeout("affilianate()",7000)
}
affilianate();

</script>

</TD></TR>
</TABLE>

Would this same code work? If so, where should I put it AND if not, what could I use?


Edited by - Cobabana123 on 18 February 2004 16:34:44

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 18 February 2004 :  16:43:32  Show Profile
Have a look here
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=49938

The UK MkIVs Forum
Go to Top of Page

Cobabana123
Starting Member

2 Posts

Posted - 20 February 2004 :  11:31:11  Show Profile
I took a peak at the demo. I was hoping that the banners could rotate, where only one would appear at a time (which is how the above code worked on a proboard. Is that the only option that I have?

Thanks!
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 20 February 2004 :  14:09:20  Show Profile  Visit Jezmeister's Homepage
Not sure if it would work but try putting it in "inc_header.asp" about line 320 between these lines:
		"          <td align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>" & vbNewLine
call sForumNavigation()

make it look something like this:

		"          <td align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>" & vbNewLine
<script>

//images
var aff_img = new Array()
aff_img[0] = 'http://www.dlksfslkgsg.com/gif';
aff_img[1] = 'http://www.sfsfsf.com/banners/kybanner.jpg';
aff_img[2] = 'http://www.sfsfsf.com/banners/snowtop.gif';
aff_img[3] = 'http://www.csdfsfs.com/banners/cabanner.gif';
aff_img[4] = 'http://www.sdfsfsf.com/cpc/tbc2.gif';
aff_img[5] = 'http://www.asdfsfs.com/banners/css.gif';
aff_img[6] = 'http://www.sdfsfsf.com/banners/janet.jpg';


//links to corresponding images
var aff_link = new Array()
aff_link[0] = 'http://www.fsfsfsfsf.com';
aff_link[1] = 'http://www.dsfsfsafsaf.com';
aff_link[2] = 'http://www.sfsfsfsf.com';
aff_link[3] = 'http://www.safdsfs.com/web';
aff_link[4] = 'http://www.safsfsfsf.com';
aff_link[5] = 'http://www.sadfsfsf.com';
aff_link[6] = 'http://www.sfsfsf.com';



function affilianate() {
var rand=Math.floor(Math.random()*aff_img.length)
document.getElementById('affiliants').innerHTML='<a href="'+aff_link[rand]+'" target="_blank"><img src="'+aff_img[rand]+'" border="0"></a>';
setTimeout("affilianate()",7000)
}
affilianate();

</script>

call sForumNavigation()

dunno if it'd work - worth a try tho

Edited by - Jezmeister on 20 February 2004 14:11:26
Go to Top of Page

TheBigSnake
Junior Member

154 Posts

Posted - 23 February 2004 :  11:16:07  Show Profile
Did it work ?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07