From: Hegardt <he...@mf...> - 2000-10-28 14:13:10
|
Hello again! I still don't get it to work... Should I use loadHTML('intro.html') or setURL('intro.html') or setHTML() when loading the contents? How do i resize the contentslayer after loading the content? I really don't get the eventlistener-thing... I have read the documentation I could find, but it's a little complicated to understand... I want layers that scroll the contents in the scrollwindow when I mouseover them. Whatever I try I get a message that the object does't support the function... Here is what I've done so far: ___________________________________________________________________ <html> <head> <title>test</title> </head> <script language="Javascript" src="../js/dynapi.js"></script> <script language="Javascript"> DynAPI.setLibraryPath('../js/lib2.0/') DynAPI.include('core.api.*') DynAPI.include('core.ext.loadhtml.js') DynAPI.include('core.ext.slide.js') DynAPI.include('core.ibs.scrollwindow.js') DynAPI.onLoad=function() { topLayer = new DynLayer(null,0,0,DynAPI.document.w,(DynAPI.document.h/9),'#c0c0c0') bottomLayer = new DynLayer(null,0,(DynAPI.document.h-topLayer.h), topLayer.w, (DynAPI.document.h/9),'#c0c0c0') leftLayer = new DynLayer(null,0,(topLayer.h),(DynAPI.document.w/7),(DynAPI.document.h-topLayer.h-bottomLayer.h),'#c0c0c0') // The layers that on mouseover should scroll the contents of mySW arrowdownChild=new DynLayer(null,(leftLayer.w/9),0,(leftLayer.w/1.25),(leftLayer.h/4),'yellow') arrowupChild= new DynLayer(null,(leftLayer.w/9),(arrowdownChild.h+(leftLayer.w/9)),(leftLayer.w/1.25),(leftLayer.h/4),'pink') leftLayer.addChild(arrowdownChild) leftLayer.addChild(arrowupChild) DynAPI.document.addChild(leftLayer) DynAPI.document.addChild(topLayer) DynAPI.document.addChild(bottomLayer) mySW = new IbsScrollWindow() mySW.setSize((DynAPI.document.w-(leftLayer.w)),((DynAPI.document.h)-(topLayer.h)-(bottomLayer.h))) mySW.moveTo((leftLayer.w),(topLayer.h)) mySW.setBgColor("#999999") DynAPI.document.addChild(mySW) mySW.setURL("intro.html") // Here I need the eventlisteners doing the actual scrolling on mouseover } </script> <body> </body> </html> ____________________________________________________ |