:: is not impressed with their javascript "protection" ::
Sifting through the code, it just seems to be an inefficient way of implementing custom tags. It also eliminates the most signifcant advantage I ever found - not exposing Javascript. This stuff exposes a multitude of functions and variables it doesn't need to.
Essentially, all of your custom tags except for <custom/> are replaced at runtime with <div>'s.:
<HTML>
<HEAD>
<SCRIPT src="http://www.naltabyte.se/customtags?animation">
</SCRIPT>
</HEAD>
<BODY scroll="no" style="border: 0pt none ; background-color: buttonface;"
id="soft" theid="a1" onkeydown="return checkMotion(event)">
<DIV style="width: 600px; height: 400px; overflow: hidden;">
<CUSTOM newtags="clip,move,motioncontrol,resize,trigger" _moz-userdefined="">
</CUSTOM>
<DIV setaction="clip" id="coll"
style="border: 1px solid rgb(255, 255, 255); background-image: url(http://www.naltabyte.se/crossbrowsers/images/space.gif); position: absolute; top: 30px; left: 30px; width: 300px; height: 300px; background-color: black; overflow: hidden;"
lock="no" hide="yes" x="0" y="0">
<DIV setaction="move" id="a1" assign="reappear"
style="position: absolute; height: 30px; width: 30px; z-index: 5; left: 70px; top: 165px;"
x="0" y="5" lock="no">
<IMG src="images/war.gif" height="30" width="30" style="height: 30px; width: 30px; z-index: 5;"/>
</DIV>
<DIV setaction="move" id="a2" assign="reappear"
style="position: absolute; height: 30px; width: 30px; z-index: 5; top: 135px; left: 185px;"
x="-5" y="5" lock="no">
<IMG src="images/war2.gif" height="30" width="30" style="height: 30px; width: 30px; z-index: 5;"/>
</DIV>
<DIV setaction="move" id="a3" assign="reappear"
style="position: absolute; top: 150px; height: 30px; width: 30px; z-index: 5; left: 110px;"
x="-5" y="0" lock="no">
<IMG src="images/war2.gif" height="30" width="30" style="height: 30px; width: 30px; z-index: 5;"/>
</DIV>
<DIV setaction="move" id="a4" assign="reappear"
style="position: absolute; height: 25px; width: 25px; z-index: 5; top: 221px; left: 96px;"
x="4" y="1" lock="no">
<IMG src="images/war2.gif" style="height: 25px; width: 25px;"/>
</DIV>
<DIV setaction="move" id="a5" assign="reappear"
style="position: absolute; top: 50px; height: 25px; width: 25px; z-index: 5; left: 84px;"
x="7" y="0" lock="no">
<IMG src="images/war2.gif" style="height: 25px; width: 25px;"/>
</DIV>
<IMG src="images/planet.gif" id="im" style="z-index: 2; height: 610px; width: 610px;"/>
<DIV setaction="resize" run="im" to="" x="2" y="2" lock="yes"/>
</DIV>
<DIV setaction="motioncontrol" run="a1" speed="5"
key52="fireMove('upright');release('t1:t2:t3:t4')"
key51="fireMove('upleft');release('t1:t2:t3:t4')"
key50="fireMove('downright');release('t1:t2:t3:t4')"
key49="fireMove('downleft');release('t1:t2:t3:t4')"
shoot="<div style='color:yellow'>¤</div>" to="10" lock="yes" id="mcon">
</DIV>
<DIV setaction="trigger" id="t1" lock="yes" run="a2" from="fire" onevent="hiding('a2')"/>
<DIV setaction="trigger" id="t2" lock="yes" run="a3" from="fire" onevent="hiding('a3')"/>
<DIV setaction="trigger" id="t3" lock="yes" run="a4" from="fire" onevent="hiding('a4')"/>
<DIV setaction="trigger" id="t4" lock="yes" run="a5" from="fire" onevent="hiding('a5')"/>
</DIV>
</BODY>
</HTML>
Is the parsed representation, as opposed to the source code:
<?xml version="1.0" ?>
<html>
<head>
<title>NALTABYTE: DEMO</title>
<script language="Jscript.Encode" src="DELETED"></script>
<script src="aml_1.js"></script>
<custom newtags="clip,move,circle,resize,trigger,motioncontrol,preload," />
</head>
<body scroll="no" style="border:solid buttonface 1px;background-color:buttonface">
<!--Game area-->
<clip id="d1" style="background-image:url('space.gif');background-color:silver;position:absolute;top:30;left:30;height:300;width:300;border:1 solid white 2px;z-index:2;">
<move id="r5" assign="bounce" x="3" y="3" style="position:absolute;top:100;left:70">
<img src="war2.gif" style="height:20;width:20" />
</move>
<move id="r4" assign="bounce" x="4" y="3" style="position:absolute;top:130;left:100">
<img src="war2.gif" style="height:20;width:20" />
</move>
<move id="r3" assign="reappear" x="3" y="3" style="position:absolute;top:80;left:120">
<img src="war2.gif" style="height:20;width:20" />
</move>
<move id="r1" events="mouseover" assign="reappear" x="-4" y="-3" style="position:absolute;top:130;left:140">
<img src="war2.gif" style="height:20;width:20" />
</move>
<circle id="r2" size="14" assign="reappear" style="position:absolute;top:70;left:50">
<img src="war2.gif" style="height:20;width:20" />
</circle>
<move id="boxer" lock="yes" assign="reappear" x="2" y="2" style="position:absolute;top:150;left:170">
<img src="war.gif" height="35" width="35" />
</move>
<img id="planet" src="planet.gif" height="10" />
<resize y="1" x="1" run="planet" to="300" />
</clip>
<!--Command area-->
<trigger run="inmove" to="r1" onevent="r1.style.visibility='hidden'"></trigger>
<trigger run="inmove" to="r2" onevent="r2.style.visibility='hidden'"></trigger>
<trigger run="inmove" to="r3" onevent="r3.style.visibility='hidden'"></trigger>
<trigger run="inmove" to="r4" onevent="r4.style.visibility='hidden'"></trigger>
<trigger run="inmove" to="r5" onevent="r5.style.visibility='hidden'"></trigger>
<motioncontrol
run="boxer"
k1="insertMove(boxer,6,6,'','yellow')"
k2="insertMove(boxer,6,-6,'','yellow')"
k3="insertMove(boxer,-6,6,'','yellow')"
k4="insertMove(boxer,-6,-6,'','yellow')" />
<preload load="war.gif,war2.gif,space.gif,planet.gif"
message="" color="" style="visibility:hidden;" />
</body>
</html>
Whatever works I guess though must be the prevailing attitude in this case, as even though there are better ways of doing this (i.e. the way I assumed they were doing it originally), it seems to work well enough.