banner changing?
+7
DaSportsGuy34STC
djdart
MrMega
Punk101
Darren1
Ape
raf.b
11 posters
Page 1 of 2
Page 1 of 2 • 1, 2
banner changing?
does anyone here know the code for image switching?
so if you refresh the page you'll see new banner.
please tell me,how to do that..
thanx
so if you refresh the page you'll see new banner.
please tell me,how to do that..
thanx
Re: banner changing?
yeah i would like to know that as i think it would be realy cool if we could add more than one banner at a time
maybe like 5 or so
maybe like 5 or so
Re: banner changing?
I dont think that you can do this?
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: banner changing?
but why??
i know i can make it in www.imgaerotation.com
but its only 24hours,
any idea so i can make it...
i know i can make it in www.imgaerotation.com
but its only 24hours,
any idea so i can make it...
Re: banner changing?
raf.b wrote:does anyone here know the code for image switching?
so if you refresh the page you'll see new banner.
please tell me,how to do that..
thanx
I don't think you can do that, but you can go to the admin panel and all that, then click 'hide' so nobody sees the banner although it's there, and then click it back.... Sorry, that's the only 2-banner way you can do it.
MrMega- Forumember
- Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States
Re: banner changing?
Most sites that do this, they use php scripts. That would require us to have access to the databases here at forumotion, which I'm sure we will not get.
If you can setup a script on your own hosting site, that allows PHP, then you can do it, or even maybe find a site that allows it for free.
If you can setup a script on your own hosting site, that allows PHP, then you can do it, or even maybe find a site that allows it for free.
djdart- New Member
- Posts : 24
Reputation : 0
Language : English
A Script For You...
OK, i keep seeing people telling other people on the board that there is no script that you can use to have a random banner displayed every time the page is refreshed without having access to some off site source or script.
That is NOT true.
I AM a freelance programmer....
A simple method around this is by using a HTML Javascript. I wrote a script that will call up a picture of any size with a link to any place. You can add as many pictures and links that you want and they will be displayed randomly.
I am giving you all this script for FREE to use. IT WORKS ON FORUMOTION BOARDS.
If you use this script, KEEP IT EXACTLY AS-IS. Just follow the instructions.
**Place the code in your HTML page in the exact spot you would like it to show**
Just Copy and Paste:
I hope this helps and solves everyones need for a simple yet useful random banner code.....
Maybe the admin's will share it with everyone?
That is NOT true.
I AM a freelance programmer....
A simple method around this is by using a HTML Javascript. I wrote a script that will call up a picture of any size with a link to any place. You can add as many pictures and links that you want and they will be displayed randomly.
I am giving you all this script for FREE to use. IT WORKS ON FORUMOTION BOARDS.
If you use this script, KEEP IT EXACTLY AS-IS. Just follow the instructions.
**Place the code in your HTML page in the exact spot you would like it to show**
Just Copy and Paste:
- Code:
<script type="text/javascript">
//
/* script by Kris J (greendesign@live.ca) (admin@punk101.net).
// Copyright 2008
// Leave ALL Comments in place
//
// www.greendesign.tk
//
// www.punk101.net
*/
/* To work you must change the "link" to reflect your destination URL
// and the "image" pointed to your online image address.
// DO NOT CHANGE ANYTHING ELSE.
*/
//<![CDATA[
ads=[];n=0
ads[n++]=["link","image"];
ads[n++]=["link","image"];
ads[n++]=["link","image"];
num=Math.floor(Math.random()*ads.length);
document.write("<center><a href='"+ads[num][0]+"'><img src='"+ads[num][1]+"'/></a></center>");
//]]>
</script>
I hope this helps and solves everyones need for a simple yet useful random banner code.....
Maybe the admin's will share it with everyone?
Last edited by Punk101 on Sat 27 Dec - 2:22; edited 3 times in total
Re: banner changing?
It works I used template editing and placed it in overall header new
It dont refresh EVERY time but it does change. It seems to hang up on the same one after a few refreshes.
It dont refresh EVERY time but it does change. It seems to hang up on the same one after a few refreshes.
Guest- Guest
Re: banner changing?
This is my first writing of the script.
It works fine on my website dude. Maybe it's because I have a paid for address?
It works fine on my website dude. Maybe it's because I have a paid for address?
Last edited by Punk101 on Sat 27 Dec - 2:20; edited 1 time in total
Re: banner changing?
ya man that is how I have it I eliminated the extra script for more than 3 images.
Like I said it does work.
I to have a paid address and everything else.
Like I said it does work.
I to have a paid address and everything else.
Guest- Guest
Re: banner changing?
I will post this code on my help site as well if that is cool with you.
Guest- Guest
Re: banner changing?
OK I have fixed the script in my original post for use.
I do have it working for more than 3 pics on my site. try different configs for more pics.
I do have it working for more than 3 pics on my site. try different configs for more pics.
Re: banner changing?
what's the address of your help site?
Never mind I see it...
Never mind I see it...
Last edited by Punk101 on Sat 27 Dec - 2:35; edited 1 time in total (Reason for editing : because I'm Blind!)
Re: banner changing?
Well, have you ever tried to animate a banner? I haven't actually, but you can request for one, I guess.
MrMega- Forumember
- Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States
Re: banner changing?
Animating a banner is easy.
If you didn't read my previous posts, I have put up a banner changing script that works on forumotion boards.
Just look up...
If you didn't read my previous posts, I have put up a banner changing script that works on forumotion boards.
Just look up...
Re: banner changing?
Punk101 wrote:OK, i keep seeing people telling other people on the board that there is no script that you can use to have a random banner displayed every time the page is refreshed without having access to some off site source or script.
That is NOT true.
just to be clear, i never said there wasn't a script. I just said that most sites use a PHP script to access the images randomly, in which case, we cannot do that on forumotion. But a javascript can be done
djdart- New Member
- Posts : 24
Reputation : 0
Language : English
Re: banner changing?
Punk101 wrote:OK, i keep seeing people telling other people on the board that there is no script that you can use to have a random banner displayed every time the page is refreshed without having access to some off site source or script.
That is NOT true.
I AM a freelance programmer....
A simple method around this is by using a HTML Javascript. I wrote a script that will call up a picture of any size with a link to any place. You can add as many pictures and links that you want and they will be displayed randomly.
I am giving you all this script for FREE to use. IT WORKS ON FORUMOTION BOARDS.
If you use this script, KEEP IT EXACTLY AS-IS. Just follow the instructions.
**Place the code in your HTML page in the exact spot you would like it to show**
Just Copy and Paste:
- Code:
<script type="text/javascript">
//
/* script by Kris J (greendesign@live.ca) (admin@punk101.net).
// Copyright 2008
// Leave ALL Comments in place
//
// www.greendesign.tk
//
// www.punk101.net
*/
/* To work you must change the "link" to reflect your destination URL
// and the "image" pointed to your online image address.
// DO NOT CHANGE ANYTHING ELSE.
*/
//<![CDATA[
ads=[];n=0
ads[n++]=["link","image"];
ads[n++]=["link","image"];
ads[n++]=["link","image"];
num=Math.floor(Math.random()*ads.length);
document.write("<center><a href='"+ads[num][0]+"'><img src='"+ads[num][1]+"'/></a></center>");
//]]>
</script>
I hope this helps and solves everyones need for a simple yet useful random banner code.....
Maybe the admin's will share it with everyone?
this scripts too long for site description.
if i placed it in homepage mesage,it only show in main page.
i want it shows on top,above nav bar
Re: banner changing?
template editing??
but i use phpbb3.
if i change to phpbb2,where i should edit it?
but i use phpbb3.
if i change to phpbb2,where i should edit it?
Re: banner changing?
If your site is English the template editing is free (or it was)
You need version 2
Then the template editing is
Admin Panel
Display
Templates
You would place the above code in OVERALL HEADER_NEW
right after the
You need version 2
Then the template editing is
Admin Panel
Display
Templates
You would place the above code in OVERALL HEADER_NEW
right after the
- Code:
<head>
Guest- Guest
Page 1 of 2 • 1, 2
Similar topics
» Changing the banner on the skin
» Ad Banner Changing Every 10 Seconds?
» Problem changing banner
» changing banner on forum
» Changing banner image?
» Ad Banner Changing Every 10 Seconds?
» Problem changing banner
» changing banner on forum
» Changing banner image?
Page 1 of 2
Permissions in this forum:
You cannot reply to topics in this forum