[JAVA script]Header image that changes on refresh?
3 posters
Page 1 of 1
[JAVA script]Header image that changes on refresh?
Hello there (once again)
I'm having some issues with my header. I would like to have pictures that would change once the user refreshes the page, and at the same time having all those header pictures linking to my main page ( http://http://limestripe.englishboards.com ). I also would like to being able to add more headers in the future, I just used those random 2 pictures to test the script ( https://2img.net/h/i271.photobucket.com/albums/jj148/mimids/zulzin.gif and https://2img.net/h/i271.photobucket.com/albums/jj148/mimids/zulzaum.gif )I tried using some scripts, but none worked. here an example of one of them:
I dunno where to set this html page, tried just pasting this code on script generator's "free field". I have a feeling that all I'm doing is wrong, if anyone could please help me with the right script and how to make it work as my board header, I would be thankfull forever! (Yeah I'm kinda desperate already, as java is teaching me a lesson here T_T) Thank you in advance for any help and sorry for bothering (you guys always solve my retard problems, I'm so glad I joined this comm <3)
I'm having some issues with my header. I would like to have pictures that would change once the user refreshes the page, and at the same time having all those header pictures linking to my main page ( http://http://limestripe.englishboards.com ). I also would like to being able to add more headers in the future, I just used those random 2 pictures to test the script ( https://2img.net/h/i271.photobucket.com/albums/jj148/mimids/zulzin.gif and https://2img.net/h/i271.photobucket.com/albums/jj148/mimids/zulzaum.gif )I tried using some scripts, but none worked. here an example of one of them:
- Code:
<div align="center">
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
var theImages = new Array()
theImages[0] = 'http://i271.photobucket.com/albums/jj148/mimids/zulzin.gif'
theImages[1] = 'http://i271.photobucket.com/albums/jj148/mimids/zulzaum.gif'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
</script>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
showImage();
</script></BODY></div>
I dunno where to set this html page, tried just pasting this code on script generator's "free field". I have a feeling that all I'm doing is wrong, if anyone could please help me with the right script and how to make it work as my board header, I would be thankfull forever! (Yeah I'm kinda desperate already, as java is teaching me a lesson here T_T) Thank you in advance for any help and sorry for bothering (you guys always solve my retard problems, I'm so glad I joined this comm <3)
Re: [JAVA script]Header image that changes on refresh?
I'm still searching for a way to solve this, without success... Does any one know if it`s even possible to have a header that changes on refresh? It doesn't even need to link to another place, tough it would be neat XD Tx in advance for any help!
Re: [JAVA script]Header image that changes on refresh?
I'm not crazy on Javascript, I can only make a pop-up and a blank screen with text.
Re: [JAVA script]Header image that changes on refresh?
so you can do teh header change and open a link in a new window? sorry if I got it wrong, but if you could help me...
Re: [JAVA script]Header image that changes on refresh?
Well first of all, the code you provided is incorrect. The part that starts the script,
I imagine Typlo could verify, but I don't think it's possible to do what you want without access to the headers and footers of the forum.
- Code:
<SCRIPT LANGUAGE="JavaScript">
- Code:
<script type="text/javascript">
I imagine Typlo could verify, but I don't think it's possible to do what you want without access to the headers and footers of the forum.
Re: [JAVA script]Header image that changes on refresh?
Hum... I see. I got that script from a forum, Iknow nothing about java to see the mistake on the script T_T Tx forpointig out,guess I'll have to stick with the flashheader then
Similar topics
» Java script pop up image !!!!!!
» [JAVA script]How to set a countdown script to forum/portal?
» java script
» Java Script
» Java Script
» [JAVA script]How to set a countdown script to forum/portal?
» java script
» Java Script
» Java Script
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum