MVX Isometric Tile Engine Example
An example of how to use the MVX Isometric Tile Engine within the MVX Game Engine.
AI
AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Source Code
Upload
user friendly interface plus very simple code in javascript.
It uses eval to dinamically understand the id of the control being passed and Change color of the control where the cursor is.
<HTML>
<body>
<BR>
<INPUT type="text" id=text1 name=text1 onfocus="focusobj(this.id)" onblur="blurobj(this.id)"><BR>
<INPUT type="text" id=text2 name=text2 onfocus="focusobj(this.id)" onblur="blurobj(this.id)"><BR>
<INPUT type="text" id=text3 name=text3 onfocus="focusobj(this.id)" onblur="blurobj(this.id)"><BR>
<SELECT id=select1 name=select1 onfocus="focusobj(this.id)" onblur="blurobj(this.id)">
<OPTION>aaaa</OPTION>
<OPTION>bbbb</OPTION>
</SELECT>
</BODY>
</HTML>
<SCRIPT LANGUAGE=javascript>
<!--
function focusobj(value){
eval(value+'.style.backgroundColor = "bisque"')
}
function blurobj(value){
eval(value+'.style.backgroundColor = "white"')
}
/*
If by any means you have a form and your form name is myform. then the code would be something
like this:
eval('document.myform.'+value+'.style.backgroundColor = "bisque"')
*/
//-->
</SCRIPT>
Original Comments (3)
Recovered from Wayback Machine