View Full Version : rotating front page
i wanna know how i can have a 2 different rotating front pages, how can i do this?
thanks
Stallion
03-30-2001, 10:43 PM
I know that you can do it with blindio, but other than that, I'm not sure. With that, if the surfer has been to your mainpage in the last couple days, it will send them to your alternate page. You could write a javaScript to do it for you, too, if you're satisfied with just picking the page at random. goodluck.
kingfoo
03-30-2001, 11:07 PM
You can also do this with cookies pretty easily.
Crazyman
03-30-2001, 11:08 PM
kingfoo: Please tell us...
2 things..
1) just picking a random page
I do this via my script... the prod% went from around 86-90% to 100-104% so it does help even if you just do it at random
2) cookies
As javascript uses cookies, i think the easiest way would be to just set a cookie when the surfer enters and have a flag that is set acording to which mainpages he already have been send to.. when the surfer get send to you for the second or XX time, you check for the cookie and then increment this flag and send him to a new main page or if the cookie is empty you set it and send him to your mainpage... just remember that if the flag reaches a sertant point you just reset it and start over (that point being the # of mainpages you have)..
of cuz with evidence eliminator out there - who cares if you do it by cookies or by random - the effect will be just the same - or am i mistaken there??
breest
03-31-2001, 02:24 AM
Does it really boost your prod that much? And if it does, do you notice an increase in your revenue?
-Breest
so..how do i do it thru java, i dont care if its totally random between the two pages
Cyber-Fantasy
03-31-2001, 08:40 PM
<!-- Begin
var howMany = 1; // max number of items listed below
var page = new Array(howMany+1);
page[0]="http://page1";
page[1]="http://page2";
function rndnumber(){
var randscript = -1;
while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1));
}
return randscript;
}
quo = rndnumber();
quox = page[quo];
window.location=(quox);
// End -->
<font face="Verdana, Arial" size="2">Originally posted by breest:
Does it really boost your prod that much? And if it does, do you notice an increase in your revenue?
-Breest</font>
i dont know... i have seen that if i have much traffic i make more money then when i dont have much traffic - so i guess there could be a connection http://bbs.adultwebmasterinfo.com/ubb/smile.gif
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.