A
download dynapi.api.dynlayer-anchor-anchoring.html
Language: NonCode
LOC: 0
Project Info
DynAPI
Server: SourceForge
Type: cvs
...i\dynapi\dynapi3x\examples\
   datasource-paging.db
   datasource.db
   ...cross_frame_access.html
   ...me_access_-_frame1.html
   ...me_access_-_frame2.html
   ...dragdrop-collision.html
   demo.dragicon.html
   demo.dragover.html
   demo.dynlayer-attack.html
   ....dynlayer-dragdraw.html
   demo.oncontentchange.html
   demo.onlocationchange.html
   demo.slideshow.html
   demo.spaceship-circle.html
   demo.spaceship-path.html
   ...emplate.imageframe.html
   ...yndocument-addhtml.html
   ...r-anchor-anchoring.html
   ...dynlayer-anchor-ii.html
   ...-anchor-stretching.html
   ...pi.dynlayer-anchor.html
   ....dynlayer-autosize.html
   ...ynlayer-blackboard.html
   ...pi.dynlayer-create.html
   ...i.dynlayer-destroy.html
   ....dynlayer-relative.html
   ...api.dynlayer-slide.html
   ....api.ext.dragevent.html
   ....ext.inline-widget.html
   dynapi.api.ext.inline.html
   ....api.ext.keyevents.html
   ...pi.ext.tabmanager1.html
   ...pi.ext.tabmanager2.html
   dynapi.api.mouseevent.html
   ...ment.capturehotkey.html
   ...unctions.fadecolor.html
   ...functions.getimage.html
   dynapi.functions.html
   ...ctions.imageloader.html
   ...ions.subclassevent.html
   dynapi.fx.bezier.html
   dynapi.fx.circleanim.html
   dynapi.fx.fader.html
   dynapi.fx.flashsound.html
   dynapi.fx.glideanim.html
   dynapi.fx.hover.html
   dynapi.fx.motionx.html
   dynapi.fx.pathanim.html
   dynapi.fx.slideanim.html
   dynapi.fx.snapx.html
   dynapi.fx.swiper.html
   dynapi.fx.textanim.html
   dynapi.fx.timerx.html
   ...rdermanager-boxfix.html
   ...ordermanager-inner.html
   ...ordermanager-outer.html
   ...rdermanager-random.html
   dynapi.gui.button.html
   dynapi.gui.checkbox.html
   dynapi.gui.explorer.html
   ...i.gui.focusmanager.html
   dynapi.gui.graphics.html
   ...i.gui.groupmanager.html
   ...pi.gui.highlighter.html
   dynapi.gui.htmlbutton.html
   ...i.gui.htmlcalendar.html
   ...i.gui.htmlcheckbox.html
   dynapi.gui.htmlclock.html
   ...ui.htmlcolorpicker.html
   ....gui.htmlcontainer.html
   ...gui.htmldatepicker.html
   ...i.htmldropdownmenu.html
   dynapi.gui.htmlfile.html
   ....gui.htmlhyperlink.html
   ...pi.gui.htmllistbox.html
   ...ui.htmlmenu-images.html
   ...htmlmenu-startmenu.html
   dynapi.gui.htmlmenu.html
   ...ui.htmlprogressbar.html
   ...ui.htmlradiobutton.html
   ...i.gui.htmlrollover.html
   ...i.gui.htmltextarea.html
   ...pi.gui.htmltextbox.html
   dynapi.gui.imageclip.html
   dynapi.gui.knob.html
   dynapi.gui.label.html
   dynapi.gui.list.html
   dynapi.gui.listbox.html
   dynapi.gui.loadpanel.html
   dynapi.gui.marquee.html
   ...i.panelbar-stacker.html
   ...pi.gui.progressbar.html
   ...pi.gui.radiobutton.html
   dynapi.gui.scrollbar.html
   ...emplatemanager-htc.html
   ...ui.templatemanager.html
   dynapi.gui.tree.html
   ....viewpane-explorer.html
   ...viewpane-loadpanel.html
   dynapi.gui.viewpane.html
   dynapi.library-file1.js
   dynapi.library-file2.js
   dynapi.library-load.html
   dynapi.util.cookie.html
   ...atasource-acronyms.html
   ...il.datasource-forms.asp
   ...l.datasource-forms.html
   ...l.datasource-paging.asp
   ....datasource-paging.html
   ...atasource-testfile.html
   ...pi.util.datasource.html
   ...pi.util.filereader.html
   dynapi.util.filereader.xml
   ...ement-dynamic-code.html
   ...ement-dynamic-data.html
   ...til.ioelement-post.html
   ...lement-postresponse.asp
   ...lement-postresponse.php
   ...element-postresponse.pl
   ...lement-soda-calc-js.asp
   ...ement-soda-calc-vbs.asp
   ...ioelement-soda-calc.php
   ...oelement-soda-sync.html
   ...ment-soda-tester-vb.asp
   ...lement-soda-tester.html
   ...element-soda-tester.php
   ...til.ioelement-soda.html
   ...ioelement-testfile.html
   ...il.ioelement-upload.asp
   ...l.ioelement-upload.html
   ...il.ioelement-upload.php
   dynapi.util.ioelement.html
   ....util.stringbuffer.html
   ioelmsrv.jscript.asp
   ioelmsrv.php
   ioelmsrv.pl
   ioelmsrv.pm
   ioelmsrv.soda.jscript.asp
   ioelmsrv.soda.php
   ioelmsrv.soda.pl
   ioelmsrv.soda.vbscript.asp
   ioelmsrv.vbscript.asp
   speedtest.button.html
   speedtest.checkbox.html
   ...est.dynlayer-basic.html
   ...dynlayer-deep_nest.html
   ....dynlayer-oncreate.html
   ...yer-setclass-basic.html
   ...-basic-blueprint_def.js
   ...-basic-blueprint_ns4.js
   ...r.inline-basic-dom.html
   ...layer.inline-basic.html
   ...line-deep_nest-dom.html
   ...etcontentwidth.dom.html
   speedtest.knob.html
   speedtest.listbox.html
   speedtest.radiobutton.html
   speedtest.scrollbar.html
   ...reatewidget.button.html
   upload.asp

<html>
<head>
<title>DynAPI Examples - DynLayer Anchor - Anchoring</title>
<script language="JavaScript" src="../src/dynapi.js"></script>
<script language="Javascript">
dynapi.library.setPath('../src/');
dynapi.library.include('dynapi.api');
</script>
<script language="Javascript">
cnt=0;
w = new DynLayer(' ',-10,-10,20,18); // use negative x,y to hide layer during ns4 resize (or reload)
w.setAnchor({topA:'c',leftA:'c',stretchH:120,stretchV:28});
w.__a=w.addChild(new DynLayer(null,null,null,null,null,'#000000'));
w.__b=w.addChild(new DynLayer(null,null,null,null,null,'#000000'));
w.__c=w.addChild(new DynLayer(null,null,null,null,null,'#000000'));
w.__d=w.addChild(new DynLayer(null,null,null,null,null,'#000000'));
w.__a.setAnchor({stretchH:'100%',stretchV:2,top:0})
w.__b.setAnchor({stretchH:2,stretchV:'100%',right:0})
w.__c.setAnchor({stretchH:'100%',stretchV:2,bottom:0})
w.__d.setAnchor({stretchH:2,stretchV:'100%',left:0})

window.setTimeout('setColor()',200);
dynapi.document.addChild(w);

function setColor() {
	var color='#ffcc00';
	cnt++
	if (cnt>4)cnt=1;
	if(cnt==1) w.__a.setBgColor(color);
	else w.__a.setBgColor('#000000');
	if(cnt==2) w.__b.setBgColor(color);
	else w.__b.setBgColor('#000000');
	if(cnt==3) w.__c.setBgColor(color);
	else w.__c.setBgColor('#000000');
	if(cnt==4) w.__d.setBgColor(color);
	else w.__d.setBgColor('#000000');
	window.setTimeout('setColor()',300);
}
function setAnchor(t){
	if(t=='a') w.setAnchor({topA:'a',leftA:'a',stretchH:90,stretchV:18});
	if(t=='b') w.setAnchor({topA:'b',leftA:'b',stretchH:100,stretchV:18});
	if(t=='c') w.setAnchor({topA:'c',leftA:'c',stretchH:120,stretchV:28});
	if(t=='d') w.setAnchor({topA:'d',leftA:'d',stretchH:120,stretchV:35});
	if(t=='e') w.setAnchor({topA:'e',leftA:'e',stretchH:80,stretchV:18});
	if(t=='f') w.setAnchor({topA:'f1',leftA:'f1',bottomA:'f3',rightA:'f2',stretchH:'*',stretchV:'*'});
}
</script>
</head>
<body bgcolor="#FFFFFF">
<script>
dynapi.document.insertAllChildren();
</script>


<p align="center"><b><u><font face="Arial" size="4">&nbsp;Anchoring/Docking</font></u></b></p>
<table border="1" width="100%">
  <tr>
    <td width="16%" valign="top" align="center" rowspan="2"><font face="Arial" size="2"><b>Change Anchor
      Location</b><br>
      <br>
      <a href="javascript:setAnchor('a')">Anchor A</a><br>
      <a href="javascript:setAnchor('b')">Anchor B</a><br>
      <a href="javascript:setAnchor('c')">Anchor C</a><br>
      <a href="javascript:setAnchor('d')">Anchor D</a><br>
      <a href="javascript:setAnchor('e')">Anchor E</a><br>
      <a href="javascript:setAnchor('f')">Anchor F</a></font>
      <p><font face="Arial" size="2">&nbsp;Resize the browser to see the changes</font>
      <p align="center"><font face="Arial" size="2" color="#000080">
      topA<br>
      rightA<br>
      bottomA<br>
      leftA<br>
      </font></td>
    <td width="84%" valign="top">
      <p><font face="Arial" size="2">A example of an anchor
      :</font> <font face="Arial" size="2">&lt;a name=&quot;myname&quot;
      id=&quot;myname&quot;&gt;&amp;nbsp;&lt;/a&gt;</font>
      <p><font face="Arial" size="2">Some text here,
      some more text here some text here, some more text here. some more text here
      some &nbsp;text here, some more text here.<font color="#008000"> </font> </font>
      <a id="a" name="a"><font color="#000080" size="3" face="Arial">AnchorHere</font></a>
      <font face="Arial" size="2">
      some more text here some text here, some more text here. some more text
      here some text here, some more text here. some more text here some text
      here, some more text here. </font>
      <a id="b" name="b"><font color="#000080" face="Arial" size="3"><b>AnchorHere</b></font></a><p><font face="Arial" size="2">And more text here some text here, some
      more text here. some more text here some text here, some more text here.
      some more text here some text here, some more text here. some more text
      here some text here, some more text here. some more text here&nbsp; some text here, some more text here.
      </font>some more text here&nbsp;&nbsp;</p>
      <p align="center"><b><font size="5"><a id="c" name="c">MoreText</a></font></b></p>
      <p><font face="Arial" size="2"> &nbsp;some text
      here, some more text here.some more text here some text here, some more
      text here.some more text here some text here, some more text here.some
      more text here some text here, some more text here.some more text here
      some text here, some more text here.some more text here some text here,
      some more text here.some more text here some text here, some more text
      here.</font></p>
    </td>
  </tr>
  <tr>
    <td width="84%" valign="top">
      <table border="0" width="100%">
        <tr>
          <td width="50%" valign="top" colspan="2">some more text here some text
            here, some more text here. some more text here some text here, some
            more text here.some more text
            <table border="0" width="100%" cellspacing="1">
              <tr>
                <td width="100%" valign="top">
                  <p align="center"><b><font size="6"><a id="d" name="d">Testing</a></font></b>
                  </p>
                  <p>
            here some text here, some more text here.some more text here some
            text here, some more text here.some more text here some text here,
            some more text here.some more text here some text here, some more
            text here some more text here some</p>
                </td>
              </tr>
            </table>
            <p>&nbsp; text here, some more text
            here.some more text here some text here, some more text here.some
            more text here some text here, some more text here..</p>
          </td>
          <td width="50%" valign="top" rowspan="3">some more text here some text here, some
            more text here.some more text here some text here, some more text
            here.
            <p align="center"><a name="e" id="e"><font size="3" face="Arial" color="#000080">Anchor_here</font></a></p>
            <p>some more text here some text here, some more text here.some more
            text here some text here, some more text here.some more text here
            some text here, some more text here.
            <p>some more text here some text here, some more text
            here.some more text here some text here, some more text here. some more text here some text here, some more text
            here.some more text here some text here, some more text here.some
            more text here some text here, some more text here.some more text here some text here, some more text
            here.some more text here some text here, some more text here.some
            more text here some text here, some more text here.some more text here some text here, some more text
            here.some more text here some text here, some more text here.some
            more text here some text here, some more text here.</p>
          </td>
        </tr>
        <tr>
          <td width="156" valign="top">some more text here some text here, some
            more text here.</td>
          <td width="155" valign="middle" align="center">
            <table border="0" width="100%" height="100%">
              <tr>
                <td width="50%"><a id="f1" name="f1">1</a></td>
                <td width="50%" align="right"><a id="f2" name="f2">2</a></td>
              </tr>
              <tr>
                <td width="50%" valign="bottom">&nbsp;</td>
                <td width="50%" align="right" valign="bottom">&nbsp;&nbsp;</td>
              </tr>
              <tr>
                <td width="50%" valign="bottom">&nbsp;</td>
                <td width="50%" align="right" valign="bottom"><a id="f3" name="f3">3</a></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td width="311" valign="top" colspan="2">some more text here some text
            here, some more text here.some more text here some text here, some
            more text here.</td>
        </tr>
      </table>
    </td>
  </tr>
</table>

</body>
</html>

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us