is there a way each time somebody refreshes or clicks on a new page of the forum to have a different header?
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
<script type="text/javascript">
var redirectPath = "./";
var redirectPage = ["index_second.html","index_third.html","index_fourth.html","index_fifth.html"];
var expDate = new Date();
expDate.setTime(expDate.getTime()+12*60*60*1000); // 12 hours
function deleteCookie(isName){
if (getCookie(isName))
{
document.cookie = isName + "="+ "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}
function setCookie(isName,isValue,dExpires){
document.cookie = isName+"="+isValue+";expires="+dExpires.toGMTString();
}
function getCookie(isName){
var cookieStr = document.cookie;
var startSlice = cookieStr.indexOf(isName+"=");
if (startSlice == -1){return false}
var endSlice = cookieStr.indexOf(";",startSlice+1)
if (endSlice == -1){endSlice = cookieStr.length}
var isValue = cookieStr.substring(startSlice,endSlice).replace(/^.+\=/,"");
return isValue;
}
function init(){
var visits = getCookie('Visits');
if (visits)
{
visits++;
if (visits < 7)
{
// self.location.href = redirectPath + redirectPage[visits-1];
}
else {
// self.location.href = redirectPath + redirectPage[redirectPage.length];
}
}
else {
visits = 1;
}
setCookie('Visits',"1",expDate);
}
navigator.appName == "Microsoft Internet Explorer" ? attachEvent('onload', init, false) : addEventListener('load', init, false);
</script>
document.getElementById('i_logo').src='http://link2secondImage.jpg';
// self.location.href = redirectPath + redirectPage[visits-1];
// self.location.href = redirectPath + redirectPage[redirectPage.length];
visits = 1;