View Full Version : Cant put a title for this, just read to find out :/


Lemon Squash
01-14-2003, 07:29 PM
Ive noticed this on a lot of sites, which have a thinggy where is says click to enter and ive seen it on lissa explains where a picture seems to change if you keep visiing it it like goes through them if your not sure keep visiting the thing where it saysyou know.... just click here (http://www.lissaexplains.com) about 3 times and you see one of the picture changes its kinda weird :/ do you use html to do that or something eles? :/

thezeppzone
01-14-2003, 07:39 PM
<script language="javascript">
//Created and Copywright Daniel Marcus 2002. I give permission to all non-profitable organisations to use this script as long as they keep my name in it!
//IMPORANT:Always program 1 more of the if statements than you need. Why?? Because there is around 1/1000000 chance that this will be it!

//change this number below to set the number of options you want to have! unless you add more if statements this is limited to 20!

var Num = 15
var No = Math.random() * 100
No = Math.round(No)

var numNo = 100/Num
//below, all you have to do is change the page locations
if(No<=numNo) {
pgHi = "firstimage.jpg"
}
if(No>numNo && No<numNo*2) {
pgHi = "secondimage.gif"
}
if(No>=numNo*2 && No<numNo*3) {
pgHi = "thirdimage.jpg"
}
if(No>=numNo*3 && No<numNo*4) {
pgHi = "fourthpage.html"
}
if(No>=numNo*4 && No<numNo*5) {
pgHi = "fifthpage.html"
}
if(No>=numNo*5 && No<numNo*6) {
pgHi = "sixthpage.html"
}
if(No>=numNo*6 && No<numNo*7) {
pgHi = "seventhpage.html"
}
if(No>=numNo*7 && No<numNo*8) {
pgHi = "eighthpage.html"
}
if(No>=numNo*8 && No<numNo*9) {
pgHi = "ninthpage.html"
}
if(No>=numNo*9 && No<numNo*10) {
pgHi = "tenthpage.html"
}
if(No>=numNo*10 && No<numNo*11) {
pgHi = "11thpage.html"
}
if(No>=numNo*11 && No<numNo*12) {
pgHi = "12thpage.html"
}
if(No>=numNo*12 && No<numNo*13) {
pgHi = "13thpage.html"
}
if(No>=numNo*13 && No<numNo*14) {
pgHi = "14thpage.html"
}
if(No>=numNo*14 && No<numNo*15) {
pgHi = "15thpage.html"
}
if(No>=numNo*15 && No<numNo*16) {
pgHi = "16thpage.html"
}
if(No>=numNo*16 && No<numNo*17) {
pgHi = "17thpage.html"
}
if(No>=numNo*17 && No<numNo*18) {
pgHi = "18thpage.html"
}
if(No>=numNo*18 && No<numNo*19) {
pgHi = "19thpage.html"
}
if(No>=numNo*19 && No<=numNo*20) {
pgHi = "20thpage.html"
}

document.write('<img src="'+pgHi+'">')
</script>

Lemon Squash
01-14-2003, 09:50 PM
okay thanx! ^_^