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> ____________________________________________________ |
From: Pascal B. <pa...@dy...> - 2000-10-30 17:12:34
|
The loadHTML code supplied is NOT BUG FREE, it won't work on all browsers correctly, and usually crashes the browser (faster then it would normally :-) It has never worked 100% ! Pascal Bestebroer pa...@dy... http://www.dynamic-core.net -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Robert Rainwater Verzonden: maandag 30 oktober 2000 4:39 Aan: Hegardt Onderwerp: Re: [Dynapi-Help] Scrolling-problems I'm not sure if the loadHTML even works completely. Has anyone verified this with the latest release? Robert -- Email: <mailto:rra...@ya...> PGP Key ID: 0x703D7F7C _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help |
From: Robert R. <rra...@ya...> - 2000-10-30 03:38:26
|
I'm not sure if the loadHTML even works completely. Has anyone verified this with the latest release? Robert -- Email: <mailto:rra...@ya...> PGP Key ID: 0x703D7F7C |
From: Tarun R E. <ta...@we...> - 2000-10-30 08:53:07
|
What does "work completely" in your message mean ? It seems to work okay for me, with this code : (after importing core.ext.loadhtml.js) (24th Oct DynAPI) myLayer = new DynLayer(null,30,50,300,300,"#cccccc"); DynAPI.document.addChild(myLayer); myLayer.setURL("bingo.txt"); // "bingo.txt" is in the current directory ----- Original Message ----- From: "Robert Rainwater" <rra...@ya...> To: "Hegardt" <dyn...@li...> Sent: Monday, October 30, 2000 9:09 AM Subject: Re: [Dynapi-Help] Scrolling-problems > > I'm not sure if the loadHTML even works completely. Has anyone > verified this with the latest release? > > > Robert > > -- > Email: <mailto:rra...@ya...> > PGP Key ID: 0x703D7F7C > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > |