[Borderman]

Borderman: Der Mann, der Ihre Seiten mit seiner Blase verteidigt.
Er kennt keine Angst, er ist unermüdlich, er beschützt Ihre Seiten wie ein Wachhund!
Und er hat ne verdammt schwache Blase!!!
Das ist Borderman, der Freund Ihrer Besucher, der Feind dümmlicher Pflanzen....

[zwischen <HEAD> und </HEAD>] <script>
<!-- Beginning of JavaScript -

//Browser Sniffer
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var mozup = (!document.all && document.getElementById) ? 1 : 0;

// The length of each step of the walking borderman (pixels)
var anistep=15

// The pause between each step of the walking borderman (milliseconds)
var anipause=80

// Do not edit the variables below
var max_ani=4
var aniwidth=54
var aniheight=54
var x_posani=0
var y_posani=0
var x_posflower=0
var y_posflower=0
var screenwidth
var screenheight
var thisani
var i_ani=1
var xrange

function initiate() {
if (ie4up) {
screenwidth=document.body.clientWidth
screenheight=document.body.clientHeight
xrange=screenwidth-200
randomposition()
y_posani=screenheight-aniheight
x_posani=0
document.all.bottom1.style.posLeft=x_posani
document.all.bottom1.style.posTop=y_posani
document.all.flower.style.posLeft=x_posflower
document.all.flower.style.posTop=screenheight-50
thisani=eval("document.all.left"+i_ani+".style")
}
if (ns4up) {
screenwidth=window.innerWidth
screenheight=window.innerHeight
xrange=screenwidth-200
randomposition()
y_posani=screenheight-aniheight-15
x_posani=0
document.bottom1.left=x_posani
document.bottom1.top=y_posani
document.flower.left=x_posflower
document.flower.top=screenheight-70
thisani=eval("document.left"+i_ani)
}
if (mozup) {
screenwidth=window.innerWidth
screenheight=window.innerHeight
xrange=screenwidth-200
randomposition()
y_posani=screenheight-aniheight-15
x_posani=0
document.getElementById("bottom1").style.left=x_posani
document.getElementById("bottom1").style.top=y_posani
document.getElementById("flower").style.left=x_posflower
document.getElementById("flower").style.top=screenheight-70
thisani=document.getElementById("left"+i_ani)
}
movebottom1()
}

function movebottom1() {
if (x_posani<x_posflower-aniheight) {
x_posani+=anistep
if (ie4up) {
thisani.posLeft=-2000
thisani=eval("document.all.bottom"+i_ani+".style")
thisani.posLeft=x_posani
thisani.posTop=y_posani
}
if (ns4up) {
thisani.left=-2000
thisani=eval("document.bottom"+i_ani)
thisani.left=x_posani
thisani.top=y_posani
}
if (mozup) {
thisani.style.left=-2000
thisani=document.getElementById("bottom"+i_ani)
thisani.style.left=x_posani
thisani.style.top=y_posani
}
i_ani++
if (i_ani>max_ani) {
i_ani=1
}
var timer=setTimeout("movebottom1()",anipause)
} else {
clearTimeout(timer)
x_posani-=anistep
showurinator()
}
}

function showurinator() {
if (ie4up) {
thisani.posLeft=-2000
manurinate.src="manurinating.gif"
document.all.manurinating.style.posLeft=x_posani
document.all.manurinating.style.posTop=screenheight-50
}
if (ns4up) {
thisani.left=-2000
document.manurinating.document.manurinate.src="manurinating.gif"
document.manurinating.left=x_posani
document.manurinating.top=screenheight-70
}
if (mozup) {
thisani.style.left=-2000
document.getElementById("manurinating").childNodes[1].src="manurinating.gif"
document.getElementById("manurinating").style.left=x_posani
document.getElementById("manurinating").style.top=screenheight-70
}
var timer=setTimeout("hideurinator()",2000)
}

function hideurinator() {
if (ie4up) {
document.all.manurinating.style.posLeft=-2000
}
if (ns4up) {
document.manurinating.left=-2000
}
if (mozup) {
document.getElementById("manurinating").style.left=-2000
}
movebottom2()
}

function movebottom2() {
if (x_posani<screenwidth-aniheight) {
x_posani+=anistep
if (ie4up) {
thisani.posLeft=-2000
thisani=eval("document.all.bottom"+i_ani+".style")
thisani.posLeft=x_posani
thisani.posTop=y_posani
document.all.flower.style.posTop+=3
}
if (ns4up) {
thisani.left=-2000
thisani=eval("document.bottom"+i_ani)
thisani.left=x_posani
thisani.top=y_posani
document.flower.top+=3
}
if (mozup) {
thisani.style.left=-2000
thisani=document.getElementById("bottom"+i_ani)
thisani.style.left=x_posani
thisani.style.top=y_posani
document.getElementById("flower").style.top = parseInt(document.getElementById("flower").style.top, 10)+3
}
i_ani++
if (i_ani>max_ani) {
i_ani=1
}
var timer=setTimeout("movebottom2()",anipause)
} else {
clearTimeout(timer)
x_posani-=anistep
if (ie4up) {
document.all.flower.style.posTop=screenheight
}
if (ns4up) {
document.flower.top=screenheight
}
if (mozup) {
document.getElementById("flower").style.top=screenheight
}
moveright()
}
}

function moveright() {
if (y_posani>0) {
y_posani-=anistep
if (ie4up) {
thisani.posLeft=-2000
thisani=eval("document.all.right"+i_ani+".style")
thisani.posLeft=x_posani
thisani.posTop=y_posani
}
if (ns4up) {
thisani.left=-2000
thisani=eval("document.right"+i_ani)
thisani.left=x_posani
thisani.top=y_posani
}
if (mozup) {
thisani.style.left=-2000
thisani=document.getElementById("right"+i_ani)
thisani.style.left=x_posani
thisani.style.top=y_posani
}
i_ani++
if (i_ani>max_ani) {
i_ani=1
}
var timer=setTimeout("moveright()",anipause)
} else {
clearTimeout(timer)
y_posani+=anistep/2
movetop()
}
}

function movetop() {
if (x_posani>0) {
x_posani-=anistep
if (ie4up) {
thisani.posLeft=-2000
thisani=eval("document.all.top"+i_ani+".style")
thisani.posLeft=x_posani
thisani.posTop=y_posani
}
if (ns4up) {
thisani.left=-2000
thisani=eval("document.top"+i_ani)
thisani.left=x_posani
thisani.top=y_posani
}
if (mozup) {
thisani.style.left=-2000
thisani=document.getElementById("top"+i_ani)
thisani.style.left=x_posani
thisani.style.top=y_posani
}
i_ani++
if (i_ani>max_ani) {
i_ani=1
}
var timer=setTimeout("movetop()",anipause)
} else {
clearTimeout(timer)
randomposition()
if (ie4up) {
document.all.flower.style.posLeft=x_posflower
document.all.flower.style.posTop=screenheight
}
if (ns4up) {
document.flower.left=x_posflower
document.flower.top=screenheight
}
if (mozup) {
document.getElementById("flower").style.left=x_posflower
document.getElementById("flower").style.top=screenheight
}
moveleft()
}
}

function moveleft() {
if (y_posani<screenheight-aniheight) {
y_posani+=anistep
if (ie4up) {
thisani.posLeft=-2000
thisani=eval("document.all.left"+i_ani+".style")
thisani.posLeft=x_posani
thisani.posTop=y_posani
if (document.all.flower.style.posTop>screenheight-50) {
document.all.flower.style.posTop-=5
}
}
if (ns4up) {
thisani.left=-2000
thisani=eval("document.left"+i_ani)
thisani.left=x_posani
thisani.top=y_posani
if (document.flower.top>screenheight-70) {
document.flower.top-=5
}
}
if (mozup) {
thisani.style.left=-2000
thisani=document.getElementById("left"+i_ani)
thisani.style.left=x_posani
thisani.style.top=y_posani
if (parseInt(document.getElementById("flower").style.top, 10)>screenheight-70) {
document.getElementById("flower").style.top = parseInt(document.getElementById("flower").style.top, 10) - 5
}
}
i_ani++
if (i_ani>max_ani) {
i_ani=1
}
var timer=setTimeout("moveleft()",anipause)
} else {
clearTimeout(timer)
y_posani-=anistep
movebottom1()
}
}

function randomposition() {
x_posflower=Math.floor(xrange*Math.random())
x_posflower=x_posflower+120
return
}

// - End of JavaScript - -->
</script>

[in den <BODY>-Tag]

onLoad="initiate()"

[zwischen <BODY> und </BODY>]

<DIV id="bottom1" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manbottom1.gif" border=0></A>
</DIV>

<DIV id="bottom2" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manbottom2.gif" border=0></A>
</DIV>

<DIV id="bottom3" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manbottom3.gif" border=0></A>
</DIV>

<DIV id="bottom4" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manbottom4.gif" border=0></A>
</DIV>

<DIV id="right1" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manright1.gif" border=0></A>
</DIV>

<DIV id="right2" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manright2.gif" border=0></A>
</DIV>

<DIV id="right3" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manright3.gif" border=0></A>
</DIV>

<DIV id="right4" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manright4.gif" border=0></A>
</DIV>

<DIV id="top1" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="mantop1.gif" border=0></A>
</DIV>

<DIV id="top2" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="mantop2.gif" border=0></A>
</DIV>

<DIV id="top3" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="mantop3.gif" border=0></A>
</DIV>

<DIV id="top4" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="mantop4.gif" border=0></A>
</DIV>

<DIV id="left1" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manleft1.gif" border=0></A>
</DIV>

<DIV id="left2" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manleft2.gif" border=0></A>
</DIV>

<DIV id="left3" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manleft3.gif" border=0></A>
</DIV>

<DIV id="left4" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manleft4.gif" border=0></A>
</DIV>

<DIV id="flower" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG SRC="manflower.gif" border=0></A>
</DIV>

<DIV id="manurinating" style="position:absolute;left:-5000px;">
<a href="http://www.nightfire.ch" target="_blank"><IMG name="manurinate" SRC="manurinating.gif" border=0></A>
</DIV>

[Autor]

www.24fun.com
modified by N8i (www.nightfire.ch)

[Download]

Copyright © 1998- Nightfire Webworker Archiv Script No: 0012