From: SourceForge.net <no...@so...> - 2005-11-25 07:20:29
|
Bugs item #1366087, was opened at 2005-11-25 07:20 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1366087&group_id=5757 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: magrazeba (magrazeba) Assigned to: Nobody/Anonymous (nobody) Summary: DynLayer+iFrame+(FocusManager or events) Initial Comment: Little remade your example all will tell. This really big bug ()... do not miss it ! Excuse me for my english... I use translator russian- english <html> <head> <title>DynAPI Examples - Focus Manager</title> <script language="JavaScript" src="../dynapi/src/dynapi.js"></script> <script language="Javascript"> dynapi.library.setPath('../dynapi/src/'); dynapi.library.include('dynapi.api'); dynapi.library.include('FocusManager'); dynapi.library.include('BorderManager'); </script> <script language="Javascript"> var lyr1=dynapi.document.addChild(new DynLayer (null,100,100,100,100,'yellow')) var lyr2=dynapi.document.addChild(new DynLayer (null,210,100,100,100,'blue')) var lyr3=dynapi.document.addChild(new DynLayer (null,320,100,100,100,'green')) var lyr4=dynapi.document.addChild(new DynLayer (null,380,150,100,100,'#FFCC00')) var lyr5=dynapi.document.addChild(new DynLayer (null,50,150,100,100,'#FFCC00')) var child1=lyr3.addChild(new DynLayer (null,10,10,30,30,'#CCDDEE')); var child2=lyr3.addChild(new DynLayer (null,50,10,30,35,'#CCDDEE')); var child3=child2.addChild(new DynLayer (null,5,5,20,25,'teal')); lyr1.setHTML('<iframe name="Bla-bla-bla" src="http://www.google.ru" style="height: 100%; width: 100%;"></iframe>'); lyr2.setHTML('<iframe name="Bla-bla-bla" src="http://www.google.ru" style="height: 100%; width: 100%;"></iframe>'); lyr3.setHTML('<iframe name="Bla-bla-bla" src="http://www.google.ru" style="height: 100%; width: 100%;"></iframe>'); lyr4.setHTML('<iframe name="Bla-bla-bla" src="http://www.google.ru" style="height: 100%; width: 100%;"></iframe>'); lyr5.setHTML('<iframe name="Bla-bla-bla" src="http://www.google.ru" style="height: 100%; width: 100%;"></iframe>'); child1.setHTML('<iframe name="Bla-bla-bla" src="http://www.google.ru" style="height: 100%; width: 100%;"></iframe>'); child2.setHTML('<iframe name="Bla-bla-bla" src="http://www.google.ru" style="height: 100%; width: 100%;"></iframe>'); child3.setHTML('<iframe name="Bla-bla-bla" src="http://www.google.ru" style="height: 100%; width: 100%;"></iframe>'); var el={ onfocus:function(e){ var o=e.getSource(); o.setInnerBorder(2) }, onblur:function(e){ var o=e.getSource(); o.setInnerBorder(0) } } lyr1.addEventListener(el); lyr2.addEventListener(el); lyr3.addEventListener(el); lyr4.addEventListener(el); lyr5.addEventListener(el); child1.addEventListener(el); child2.addEventListener(el); child3.addEventListener(el); lyr1.setFocus('auto',false,'hover'); lyr5.setFocus('auto',false,'hover'); lyr2.setFocus('auto'); lyr3.setFocus('auto'); lyr4.setFocus('auto'); child1.setFocus('auto',true,'hover'); child3.setFocus('auto'); </script> </head> <body> </body> </html> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1366087&group_id=5757 |