Krypton v3.0 Quick Reference
Kernel.lib
Handle divs like this:
div("div").function()
div(ordered number on page).function()
Functions:
.x()
.xReal()
.x(x)
.y()
.yReal()
.y(y)
.z()
.z(z)
.write("text")
.move(x,y)
.width()
.width(width)
.height()
.height(height)
.resize(width,height)
.show()
.hide()
.toggle()
.shown()
.bgColor("color")
.bgColor(red,green,blue)
.clip("t:r:b:l")
.clip(top,right,bottom,left)
.contain("div")
.release("div")
.dom
.style
lib.divList
function loaded(){}
function resize(width,height){}
ie
n4
n6
lib.browserWidth
lib.browserHeight
Slide.lib
(Requires kernel.lib)
.slide(x : xArray,y : yArray,increment : incrementArray,speed : speedArray,"command")
.slideStop()
.slideResume()
MoveTo.lib
(Requires kernel.lib)
.moveTo(xArray,yArray,speed : speedArray,"command")
.moveStop()
.moveResume()
Wipe.lib
(Requires kernel.lib)
.wipe(top : topArray,right : rightArray,bottom : bottomArray,left : leftArray,phases : phaseArray,speed : speedArray,"command");
.wipeStop()
.wipeResume()
Events.lib
(Requires kernel.lib)
function mouseDown(x,y){}
function mouseMove(x,y){}
function mouseUp(x,y){}
function mouseOver(div){}
function mouseOut(div){}
function keyDown(Ascii value,"keyboard value"){}
function keyUp(Ascii value,"keyboard value"){}
function keyPress(Ascii value,"keyboard value"){}
.mouseOver("commands")
.mouseOut("commands")
.mouseDown("commands")
.mouseUp("commands")
lib.mouseOver("div");
lib.mouseX
lib.mouseY
lib.overList
Create.lib
(Requires kernel.lib)
create("divname","properties","inner HTML");
create("divname","properties","inner HTML","Nested Div");
.remove()
Scroll.lib
(Requires kernel.lib and create.lib)
name=new scrollBox("name");
name.innerDiv.function()
name.outerDiv.function()
name.scroll(x,y)
name.left(increment)
name.right(increment)
name.down(increment)
name.up(increment)
name.stop()
function scrolling(name,x,y){}
Drag.lib
(Requires kernel.lib and events.lib)
.drag()
.drag("div")
.drag(x,y,width,height)
.dragStatic()
.onTop("divname")
lib.dragList
function dragging("div being dragged"){}
function dragStart("div being dragged"){}
function dragStop("div being dragged"){}
loadPage.lib
(Requires kernel.lib)
.loadPage("url")
function loadedPage("div"){}
*All corrdinate functions, width/height functions, and clip functions will accept NULL values