hvad gør javascript??
Hej jeg fandt denne kode til nået af en 3dchat, men hvad gør den?<Script Language="JavaScript">
<? if (!$framecheck) {
print "parent.midtframe.cols='420,*,0'";
} ?>
function go2(fil) {
parent.info.location=fil;
}
function move(x,y) {
parent.bot.document.location.replace("bot.php?x="+x+"&y="+y+"&move=ok");
mydiv = document.getElementById('loading2').style;
mydiv.visibility = "visible";
var sjover=document.images["felt-"+x+"-"+y].src
if( document.images["felt-"+x+"-"+y].src.indexOf("spacer.gif")>=0 ) {
// if (document.images["felt-"+x+"-"+y].src == "../gfx/spacer.gif") {
mydiv = userdiv.style;
mydiv.left = x-0;
mydiv.top = y-0;
mydiv = usernamediv.style;
mydiv.left = x-0;
mydiv.top = y+60;
}
}
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
</Script>
