The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

banner changing?

+7
DaSportsGuy34STC
djdart
MrMega
Punk101
Darren1
Ape
raf.b
11 posters

Page 1 of 2 1, 2  Next

Go down

banner changing? Empty banner changing?

Post by raf.b Wed 24 Dec - 8:36

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
avatar
raf.b
Forumember

Male Posts : 62
Reputation : 0
Language : indonesian

http://www.mig33-klaten.forumotion.net

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Ape Wed 24 Dec - 19:38

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


banner changing? Left1212banner changing? Center11banner changing? Right112
banner changing? Ape_b110
banner changing? Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19128
Reputation : 1993
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

banner changing? Empty Re: banner changing?

Post by raf.b Fri 26 Dec - 5:58

help...
avatar
raf.b
Forumember

Male Posts : 62
Reputation : 0
Language : indonesian

http://www.mig33-klaten.forumotion.net

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Darren1 Fri 26 Dec - 6:01

I dont think that you can do this?
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

banner changing? Empty Re: banner changing?

Post by raf.b Fri 26 Dec - 12:10

but why??

i know i can make it in www.imgaerotation.com
but its only 24hours,

any idea so i can make it...
avatar
raf.b
Forumember

Male Posts : 62
Reputation : 0
Language : indonesian

http://www.mig33-klaten.forumotion.net

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Punk101 Fri 26 Dec - 12:57

I have a script...that works on forumotion boards.
Punk101
Punk101
Forumember

Male Posts : 36
Reputation : 0
Language : English, Icelandic, French, PHP, Java, JS, CSS, Web Design, Logo Design, Flash Websites,
Location : Canada Eh!

http://punk101.hightoxic.com

Back to top Go down

banner changing? Empty Re: banner changing?

Post by raf.b Fri 26 Dec - 17:08

can u give me one??

i have 2 banners here..
avatar
raf.b
Forumember

Male Posts : 62
Reputation : 0
Language : indonesian

http://www.mig33-klaten.forumotion.net

Back to top Go down

banner changing? Empty Re: banner changing?

Post by MrMega Fri 26 Dec - 17:10

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
MrMega
Forumember

Male Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States

Back to top Go down

banner changing? Empty Re: banner changing?

Post by djdart Fri 26 Dec - 17:49

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.
avatar
djdart
New Member

Posts : 24
Reputation : 0
Language : English

Back to top Go down

banner changing? Empty A Script For You...

Post by Punk101 Sat 27 Dec - 1:45

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?


Last edited by Punk101 on Sat 27 Dec - 2:22; edited 3 times in total
Punk101
Punk101
Forumember

Male Posts : 36
Reputation : 0
Language : English, Icelandic, French, PHP, Java, JS, CSS, Web Design, Logo Design, Flash Websites,
Location : Canada Eh!

http://punk101.hightoxic.com

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Guest Sat 27 Dec - 1:47

so where is the code?
avatar
Guest
Guest


Back to top Go down

banner changing? Empty Re: banner changing?

Post by Punk101 Sat 27 Dec - 1:53

Should show now...
Punk101
Punk101
Forumember

Male Posts : 36
Reputation : 0
Language : English, Icelandic, French, PHP, Java, JS, CSS, Web Design, Logo Design, Flash Websites,
Location : Canada Eh!

http://punk101.hightoxic.com

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Guest Sat 27 Dec - 1:55

place it between code tags

Code:
[code]  script here[/code]
avatar
Guest
Guest


Back to top Go down

banner changing? Empty Re: banner changing?

Post by Punk101 Sat 27 Dec - 2:10

it's there..
Punk101
Punk101
Forumember

Male Posts : 36
Reputation : 0
Language : English, Icelandic, French, PHP, Java, JS, CSS, Web Design, Logo Design, Flash Websites,
Location : Canada Eh!

http://punk101.hightoxic.com

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Guest Sat 27 Dec - 2:11

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.
avatar
Guest
Guest


Back to top Go down

banner changing? Empty Re: banner changing?

Post by Punk101 Sat 27 Dec - 2:17

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?


Last edited by Punk101 on Sat 27 Dec - 2:20; edited 1 time in total
Punk101
Punk101
Forumember

Male Posts : 36
Reputation : 0
Language : English, Icelandic, French, PHP, Java, JS, CSS, Web Design, Logo Design, Flash Websites,
Location : Canada Eh!

http://punk101.hightoxic.com

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Guest Sat 27 Dec - 2:21

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.
avatar
Guest
Guest


Back to top Go down

banner changing? Empty Re: banner changing?

Post by Guest Sat 27 Dec - 2:23

I will post this code on my help site as well if that is cool with you.
avatar
Guest
Guest


Back to top Go down

banner changing? Empty Re: banner changing?

Post by Punk101 Sat 27 Dec - 2:24

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.
Punk101
Punk101
Forumember

Male Posts : 36
Reputation : 0
Language : English, Icelandic, French, PHP, Java, JS, CSS, Web Design, Logo Design, Flash Websites,
Location : Canada Eh!

http://punk101.hightoxic.com

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Punk101 Sat 27 Dec - 2:25

Ya you can post it.

just keep my comments intact Twisted Evil
Punk101
Punk101
Forumember

Male Posts : 36
Reputation : 0
Language : English, Icelandic, French, PHP, Java, JS, CSS, Web Design, Logo Design, Flash Websites,
Location : Canada Eh!

http://punk101.hightoxic.com

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Guest Sat 27 Dec - 2:32

oh ya no doubt!
avatar
Guest
Guest


Back to top Go down

banner changing? Empty Re: banner changing?

Post by Punk101 Sat 27 Dec - 2:33

what's the address of your help site?

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!)
Punk101
Punk101
Forumember

Male Posts : 36
Reputation : 0
Language : English, Icelandic, French, PHP, Java, JS, CSS, Web Design, Logo Design, Flash Websites,
Location : Canada Eh!

http://punk101.hightoxic.com

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Guest Sat 27 Dec - 2:37

pm sent
avatar
Guest
Guest


Back to top Go down

banner changing? Empty Re: banner changing?

Post by MrMega Sat 27 Dec - 4:31

Well, have you ever tried to animate a banner? I haven't actually, but you can request for one, I guess.
MrMega
MrMega
Forumember

Male Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Punk101 Sat 27 Dec - 4:34

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...
Punk101
Punk101
Forumember

Male Posts : 36
Reputation : 0
Language : English, Icelandic, French, PHP, Java, JS, CSS, Web Design, Logo Design, Flash Websites,
Location : Canada Eh!

http://punk101.hightoxic.com

Back to top Go down

banner changing? Empty Re: banner changing?

Post by djdart Sat 27 Dec - 6:45

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 thumleft
avatar
djdart
New Member

Posts : 24
Reputation : 0
Language : English

Back to top Go down

banner changing? Empty Re: banner changing?

Post by raf.b Sat 27 Dec - 12:25

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
avatar
raf.b
Forumember

Male Posts : 62
Reputation : 0
Language : indonesian

http://www.mig33-klaten.forumotion.net

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Guest Sat 27 Dec - 16:57

Then you need template editing
avatar
Guest
Guest


Back to top Go down

banner changing? Empty Re: banner changing?

Post by raf.b Sat 27 Dec - 17:08

template editing??
but i use phpbb3.

if i change to phpbb2,where i should edit it?
avatar
raf.b
Forumember

Male Posts : 62
Reputation : 0
Language : indonesian

http://www.mig33-klaten.forumotion.net

Back to top Go down

banner changing? Empty Re: banner changing?

Post by Guest Sat 27 Dec - 17:12

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
Code:
<head>
tag
avatar
Guest
Guest


Back to top Go down

Page 1 of 2 1, 2  Next

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum