Change header by refresh.
2 posters
Page 1 of 1
Change header by refresh.
I dont know how it is called. But could you please help me and tell me if its possible each time someones refreshes the forum the header changes.
thank you
thank you
allase- New Member
- Posts : 24
Reputation : 0
Language : english
Re: Change header by refresh.
It's a javascript code and it'll only be possible if you're using PHPBB2 or PunBB
Mike- Hyperactive
- Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado
Re: Change header by refresh.
ohh thank you i was losing hope
yes i am using PHPBB2
so is it easy for me that i obviously have no idea of it to do it? any helpful tutorials?
yes i am using PHPBB2
so is it easy for me that i obviously have no idea of it to do it? any helpful tutorials?
allase- New Member
- Posts : 24
Reputation : 0
Language : english
Re: Change header by refresh.
Are you looking to change the whole header or just the logo?
Mike- Hyperactive
- Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado
Re: Change header by refresh.
when you say logo you mean the banner at the header? thats what i want to change
here is my forum http://greekpop.asiat-world.com/
here is my forum http://greekpop.asiat-world.com/
allase- New Member
- Posts : 24
Reputation : 0
Language : english
Re: Change header by refresh.
Alright so basically:
ACP -> Display -> Templates -> General -> overall_header -> Find:
Replace with:
Note that this is center... So keep your logo position to center. Change your images where it says:
Hope this works for you
ACP -> Display -> Templates -> General -> overall_header -> Find:
- Code:
<!-- BEGIN switch_logo_center -->
<a href="{U_INDEX}"><img src="{LOGO}" id="i_logo" border="0" alt="{L_INDEX}" vspace="1" /></a>
<br />
<!-- END switch_logo_center -->
Replace with:
- Code:
<script type="text/javascript">
//<![CDATA[
var images=new Array();
images[0]="image_1.jpg";
images[1]="image_2.jpg";
images[2]="image_3.jpg";
images[3]="image_4.jpg";
images[4]="image_5.jpg";
images[5]="image_6.jpg";
function randomImage() {
var i=Math.floor(Math.random()*images.length);
document.getElementById("random").src=images[i];
}
onload=randomImage;
//]]>
</script>
Note that this is center... So keep your logo position to center. Change your images where it says:
- Code:
images[0]="image_1.jpg";
Hope this works for you
Mike- Hyperactive
- Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado
Re: Change header by refresh.
all i had to modify from your code was the image_1.jpg part right and replace it with ex.https://2img.net/r/ihimizer/img694/8374/dsads.png ?
and it was supposed to work ... unfortunately it didn't.
it doesnt show anything on the header.
and it was supposed to work ... unfortunately it didn't.
it doesnt show anything on the header.
allase- New Member
- Posts : 24
Reputation : 0
Language : english
Similar topics
» Header change of refresh
» Every time you refresh the page you get a new header?
» [JAVA script]Header image that changes on refresh?
» Logo Change on Refresh
» Change Header
» Every time you refresh the page you get a new header?
» [JAVA script]Header image that changes on refresh?
» Logo Change on Refresh
» Change Header
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum