??xml version="1.0" encoding="utf-8" standalone="yes"?>高清不卡一区二区在线,亚洲精品中文字幕在线,不卡在线视频http://www.aygfsteel.com/swingboat/category/6386.html&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----只要路选对?jin),׃怕有多远Q?/description>zh-cnThu, 13 Sep 2007 14:04:20 GMTThu, 13 Sep 2007 14:04:20 GMT60IE对select的处理,又一怪现象:(x)innerHTML竟然不v作用?/title><link>http://www.aygfsteel.com/swingboat/archive/2007/09/12/144426.html</link><dc:creator>swingboat</dc:creator><author>swingboat</author><pubDate>Wed, 12 Sep 2007 02:43:00 GMT</pubDate><guid>http://www.aygfsteel.com/swingboat/archive/2007/09/12/144426.html</guid><wfw:comment>http://www.aygfsteel.com/swingboat/comments/144426.html</wfw:comment><comments>http://www.aygfsteel.com/swingboat/archive/2007/09/12/144426.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/swingboat/comments/commentRss/144426.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/swingboat/services/trackbacks/144426.html</trackback:ping><description><![CDATA[<p>我们用select来选取一个国Ӟ当我辛辛苦苦拼凑字符Ԍ然后把这个字W串赋值给select的innerHTMLQ运行,在firefox下能昄出所有的国家。但是在IE下却什么都没有昄。刚开始我q(sh)为是我拼凑的字符串有问题Q仔l检查没有啊。后台到google上search?jin)下Q发现是ie处理select的一个bug。于是做?jin)一个简单的试?br /> </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080"> 1</span><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">html</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080"> 2</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">head</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080"> 3</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">title</span><span style="color: #0000ff">></span><span style="color: #000000">test</span><span style="color: #0000ff"></</span><span style="color: #800000">title</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080"> 4</span><span style="color: #000000"><img id="Codehighlighter1_64_176_Open_Image" onclick="this.style.display='none'; Codehighlighter1_64_176_Open_Text.style.display='none'; Codehighlighter1_64_176_Closed_Image.style.display='inline'; Codehighlighter1_64_176_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_64_176_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_64_176_Closed_Text.style.display='none'; Codehighlighter1_64_176_Open_Image.style.display='inline'; Codehighlighter1_64_176_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">script </span><span style="color: #ff0000">language</span><span style="color: #0000ff">="javascript"</span><span style="color: #0000ff">></span><span id="Codehighlighter1_64_176_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_64_176_Open_Text"><span style="color: #000000; background-color: #f5f5f5"><br /> </span><span style="color: #008080"> 5</span><span style="color: #000000; background-color: #f5f5f5"><img id="Codehighlighter1_80_174_Open_Image" onclick="this.style.display='none'; Codehighlighter1_80_174_Open_Text.style.display='none'; Codehighlighter1_80_174_Closed_Image.style.display='inline'; Codehighlighter1_80_174_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_80_174_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_80_174_Closed_Text.style.display='none'; Codehighlighter1_80_174_Open_Image.style.display='inline'; Codehighlighter1_80_174_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span style="color: #0000ff; background-color: #f5f5f5">function</span><span style="color: #000000; background-color: #f5f5f5"> test()</span><span id="Codehighlighter1_80_174_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_80_174_Open_Text"><span style="color: #000000; background-color: #f5f5f5">{<br /> </span><span style="color: #008080"> 6</span><span style="color: #000000; background-color: #f5f5f5"><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff; background-color: #f5f5f5">var</span><span style="color: #000000; background-color: #f5f5f5"> elem</span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5">document.getElementById(</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">testS</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">);    <br /> </span><span style="color: #008080"> 7</span><span style="color: #000000; background-color: #f5f5f5"><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    elem.innerHTML</span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5"><option value=1>aa</option></span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">;<br /> </span><span style="color: #008080"> 8</span><span style="color: #000000; background-color: #f5f5f5"><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000; background-color: #f5f5f5"><br /> </span><span style="color: #008080"> 9</span><span style="color: #000000; background-color: #f5f5f5"><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" /><br /> </span><span style="color: #008080">10</span><span style="color: #000000; background-color: #f5f5f5"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></span><span style="color: #0000ff"></</span><span style="color: #800000">script</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">11</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">head</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">12</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">body</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">13</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">input </span><span style="color: #ff0000">type</span><span style="color: #0000ff">=button </span><span style="color: #ff0000">value</span><span style="color: #0000ff">=test </span><span style="color: #ff0000">onclick</span><span style="color: #0000ff">='test()'</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">14</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">div</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">15</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">select </span><span style="color: #ff0000">id</span><span style="color: #0000ff">='testS'</span><span style="color: #0000ff">></</span><span style="color: #800000">select</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">16</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">div</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">17</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">body</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">18</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">html</span><span style="color: #0000ff">></span></div> <br /> 点击test按钮Q在IE下,select框没有Q何的内容。怪异啊!<br /> 于是不得不利用Option对象来增加select的内宏V?br /> <img src ="http://www.aygfsteel.com/swingboat/aggbug/144426.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/swingboat/" target="_blank">swingboat</a> 2007-09-12 10:43 <a href="http://www.aygfsteel.com/swingboat/archive/2007/09/12/144426.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在IE下,面只有一个text的时候,回R自动submit?/title><link>http://www.aygfsteel.com/swingboat/archive/2007/08/28/140585.html</link><dc:creator>swingboat</dc:creator><author>swingboat</author><pubDate>Tue, 28 Aug 2007 08:47:00 GMT</pubDate><guid>http://www.aygfsteel.com/swingboat/archive/2007/08/28/140585.html</guid><wfw:comment>http://www.aygfsteel.com/swingboat/comments/140585.html</wfw:comment><comments>http://www.aygfsteel.com/swingboat/archive/2007/08/28/140585.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/swingboat/comments/commentRss/140585.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/swingboat/services/trackbacks/140585.html</trackback:ping><description><![CDATA[真是一个很怪的~省操作啊!<br><br> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080"> 1</span><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">html</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 2</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">head</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 3</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">title</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">test</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">title</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 4</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">script </span><span style="COLOR: #ff0000">language</span><span style="COLOR: #0000ff">="javascript"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><br></span><span style="COLOR: #008080"> 5</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">script</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 6</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">head</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 7</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">body</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 8</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">form </span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="test"</span><span style="COLOR: #ff0000"> method</span><span style="COLOR: #0000ff">="post"</span><span style="COLOR: #ff0000"> action</span><span style="COLOR: #0000ff">="test.htm"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080"> 9</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">input </span><span style="COLOR: #ff0000">type</span><span style="COLOR: #0000ff">='button' </span><span style="COLOR: #ff0000">value</span><span style="COLOR: #0000ff">='test' </span><span style="COLOR: #ff0000">onclick</span><span style="COLOR: #0000ff">="javascript:test()"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"> <br></span><span style="COLOR: #008080">10</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">input </span><span style="COLOR: #ff0000">type</span><span style="COLOR: #0000ff">="text"</span><span style="COLOR: #ff0000">   name</span><span style="COLOR: #0000ff">="textfield"</span><span style="COLOR: #ff0000">   class</span><span style="COLOR: #0000ff">="input"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">11</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">form</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">12</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">body</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">13</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">html</span><span style="COLOR: #0000ff">></span></div> <br>q行上面的html文gQ在text中输入内容,然后回RQ这个页面将?x)自动提交表单。即使我在这个页面中增加fileQcheckboxQhidden{的控gQ这个页面还是会(x)自动提交。这是IE的一个缺省操作。如果想改变q个~省操作Q我们可以再增加一个textQ然后隐藏这个text?br><br>If you have a Web Form with just one single-line text input (even if there are additional input fields, like CheckBoxLists, RadioButtonLists, DropDownLists, and so on), hitting enter in the text input will not cause the Button Web control's Click event to fire when using Internet Explorer <img src ="http://www.aygfsteel.com/swingboat/aggbug/140585.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/swingboat/" target="_blank">swingboat</a> 2007-08-28 16:47 <a href="http://www.aygfsteel.com/swingboat/archive/2007/08/28/140585.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>讄input的内容居中?http://www.aygfsteel.com/swingboat/archive/2007/08/24/139121.htmlswingboatswingboatFri, 24 Aug 2007 08:02:00 GMThttp://www.aygfsteel.com/swingboat/archive/2007/08/24/139121.htmlhttp://www.aygfsteel.com/swingboat/comments/139121.htmlhttp://www.aygfsteel.com/swingboat/archive/2007/08/24/139121.html#Feedback0http://www.aygfsteel.com/swingboat/comments/commentRss/139121.htmlhttp://www.aygfsteel.com/swingboat/services/trackbacks/139121.html让input的内容在U向居中Q首先我使用?jin)vertical-align样式Q没有Q何的效果?br>后来google?jin)一把,发现需要设|line-height样式Q设|后q行Q果然如此!
.input   {  
  FONT-SIZE:   12px;    
  height:100px; 
  line-height:100px;
}  
以下是引用内容(http://topic.csdn.net/t/20050722/20/4162420.htmlQ:(x)
实际上,一个Box中由很多行很多元素组成,vertical-align只作用于在同一行内的元素,它的垂直q不是相对于整个Box而言的。前面那?nbsp;  span定义?jin)一?0px的高度,但是q个span的Box中存在很多行Q那D|本ƈ不能寚w到span的中央。因此希望那D|本对齐span的中行,   需要给它定义一个line-height的属性,让line-height?0pxQ作用于一行的vertical-align按你的x(chng)工作?/p>

swingboat 2007-08-24 16:02 发表评论
]]>
可恶的“本不但包含安全的内容Q也包含不安全的内容。是否显CZ安全的内容”对话框Q?/title><link>http://www.aygfsteel.com/swingboat/archive/2007/08/15/136953.html</link><dc:creator>swingboat</dc:creator><author>swingboat</author><pubDate>Wed, 15 Aug 2007 08:15:00 GMT</pubDate><guid>http://www.aygfsteel.com/swingboat/archive/2007/08/15/136953.html</guid><wfw:comment>http://www.aygfsteel.com/swingboat/comments/136953.html</wfw:comment><comments>http://www.aygfsteel.com/swingboat/archive/2007/08/15/136953.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/swingboat/comments/commentRss/136953.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/swingboat/services/trackbacks/136953.html</trackback:ping><description><![CDATA[<p>今天解决?jin)一个困扰我们很久的一个问题(说是很久Q但一直没有花旉去researchQ想想不影响功能使用Q没什么啊。而真正解决问题,也就那二十来分钟Q哎Qh已经懒惰成这样了(jin)Q?br>问题描述Q?br>我们利用ajax做了(jin)一套系l,但通过https讉K的时候,IEM(x)弹出下面的对话框Q?br><img height=157 alt="" src="http://www.aygfsteel.com/images/blogjava_net/swingboat/secure.jpg" width=344 border=0></p> <p>而在我们的代码中所有的讉K都是通过https的,怎么?x)有不安全的元素呢?在网上google?jin)一下,有h提到可能是iframe的问题。而在我们pȝ中确实用C(jin)很多的iframe。修改codeQ去掉所有的iframe。再ơrunQ上面的对话框没有了(jin)Q终于找到原因了(jin)。但是我们的pȝ中是需要iframe啊?L(fng)下面的codeQ?br></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080">1</span><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000"> iframe</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">document.createElement(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">iframe</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br></span><span style="COLOR: #008080">2</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top>        iframe.style.zIndex</span><span style="COLOR: #000000">=-</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">3</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top>        iframe.style.position</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">absolute</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">4</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top>        iframe.style.left</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">5</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top>        iframe.style.top</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">6</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top>        iframe.style.width</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">menu.getSize().x</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">7</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top>        iframe.style.height</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">menu.getSize().y</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">4</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">8</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top>        menu.getHtmlElement().appendChild(iframe);</span></div> <p>从上面的codeQ可以看Z码中没有指定src属性,q样IE是没有办法知道这个iframe引用的是安全内容还是不安全内容呢。所以会(x)弹出上面的对话框。增加src属性,修改codeQ?br></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff"><font style="BACKGROUND-COLOR: #eeeeee" color=#000000>var iframe=document.createElement("<iframe src='blank.html'>");//src是个只读属性,不能直接赋|black.html是个I的?rn)态页面?/font></span><span style="COLOR: #000000"></span></div> <p>再次runQ对话框没有?jin),问题解决?br><br>附录Q?/p> <p>在IE下,如果div(zhn)Q在select上面。select?x)透过div昄出来。这非常影响视觉效果。网上有很多的解军_法,其中一个就是在div中增加iframe。我们就是通过q个Ҏ(gu)的,但又产生?jin)这个问题?br></p> <img src ="http://www.aygfsteel.com/swingboat/aggbug/136953.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/swingboat/" target="_blank">swingboat</a> 2007-08-15 16:15 <a href="http://www.aygfsteel.com/swingboat/archive/2007/08/15/136953.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>HTML的特D字W?/title><link>http://www.aygfsteel.com/swingboat/archive/2007/04/23/112958.html</link><dc:creator>swingboat</dc:creator><author>swingboat</author><pubDate>Mon, 23 Apr 2007 07:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/swingboat/archive/2007/04/23/112958.html</guid><wfw:comment>http://www.aygfsteel.com/swingboat/comments/112958.html</wfw:comment><comments>http://www.aygfsteel.com/swingboat/archive/2007/04/23/112958.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/swingboat/comments/commentRss/112958.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/swingboat/services/trackbacks/112958.html</trackback:ping><description><![CDATA[<p>学习(fn)BPELQ有个有名的开源引擎ActiveBEPLQ?a >http://www.active-endpoints.com</a>Q,于是q入q个站点搜烦(ch)些资料。在览中发现网上有很多这U字W?#8220;ActiveBPEL™”Q这个TM的样式非常的怪,是怎么实现的呢Q我用firebug查看?jin)下它的代码Q也仅仅?#8220;TM”两个字符。我又用IE Inspector查看?jin),?#8220;? ”。这更怪了(jin)Q竟然不一栗后来又在一늚title上发C(jin)q些字符Q于是查看了(jin)下源代码?#8220;ActiveBPEL&trade;”&trade;是什么,google一下。呵呵,原来是HTML的一个特D字W而已。写?jin)这么多q的HTMLQ竟然不知道Q惭愧啊Q?br><br> <table title="Ҏ(gu)字符 - HTML语言 对照? cellSpacing=6 width=480 align=center> <tbody> <tr vAlign=top> <td> <table borderColor=#666666 cellSpacing=1 cellPadding=6 border=2> <tbody> <tr bgColor=#00ff00> <td>惌辄意图</td> <td align=middle>处理方式</td> </tr> <tr> <td>Q回车换行)(j)</td> <td><br></td> </tr> <tr> <td> Q空格符Q?/td> <td>&nbsp;</td> </tr> <tr> <td>&QANDW号Q?/td> <td>&amp;</td> </tr> <tr bgColor=#ffff00> <td><Q左括受小于号Q?/td> <td>&lt;</td> </tr> <tr bgColor=#ffff00> <td>>Q右括受大于号Q?/td> <td>&gt;</td> </tr> <tr> <td>°Q度Q?/td> <td>&deg;</td> </tr> <tr> <td>•Q间隔符Q?/td> <td>•</td> </tr> <tr> <td>´</td> <td>&acute;</td> </tr> <tr> <td>"</td> <td>&quot;</td> </tr> <tr> <td>“</td> <td>&ldquo;</td> </tr> <tr> <td>”</td> <td>&rdquo;</td> </tr> <tr> <td>‰</td> <td>&permil;</td> </tr> <tr> <td>←</td> <td>&larr;</td> </tr> <tr> <td>↑</td> <td>&uarr;</td> </tr> <tr> <td>→</td> <td>&rarr;</td> </tr> <tr> <td>↓</td> <td>&darr;</td> </tr> <tr> <td>↔</td> <td>&harr;</td> </tr> <tr> <td>√</td> <td>&radic;</td> </tr> <tr> <td>∝</td> <td>&prop;</td> </tr> <tr> <td>∞</td> <td>&infin;</td> </tr> <tr> <td>∠</td> <td>&ang;</td> </tr> <tr> <td>?/td> <td>&and;</td> </tr> <tr> <td>?/td> <td>&or;</td> </tr> <tr> <td>∩</td> <td>&cap;</td> </tr> <tr> <td>∪</td> <td>&cup;</td> </tr> <tr> <td>Ø</td> <td>&Oslash;</td> </tr> <tr> <td>∫</td> <td>&int;</td> </tr> <tr> <td>∴</td> <td>&there4;</td> </tr> <tr> <td>?/td> <td>&asymp;</td> </tr> <tr> <td>¥QRMBQ?/td> <td>&yen;</td> </tr> </tbody> </table> <br></td> <td> <table borderColor=#666666 cellSpacing=1 cellPadding=6 border=2> <colgroup> <colgroup> <col style="COLOR: red" align=middle> <tbody> <tr bgColor=#00ff00> <td>惌辄意图</td> <td align=middle>处理方式</td> </tr> <tr> <td>≠</td> <td>&ne;</td> </tr> <tr> <td>≡</td> <td>&equiv;</td> </tr> <tr> <td>≤</td> <td>&le;</td> </tr> <tr> <td>≥</td> <td>&ge;</td> </tr> <tr> <td>⊕</td> <td>&oplus;</td> </tr> <tr> <td>λ</td> <td>&lambda;</td> </tr> <tr> <td>μ</td> <td>&mu;</td> </tr> <tr> <td>ν</td> <td>&nu;</td> </tr> <tr> <td>ξ</td> <td>&xi;</td> </tr> <tr> <td>ν</td> <td>&nu;</td> </tr> <tr> <td>ξ</td> <td>&xi;</td> </tr> <tr> <td>∏</td> <td>&prod;</td> </tr> <tr> <td>?/td> <td>&sum;</td> </tr> <tr> <td>¥</td> <td>&yen;</td> </tr> <tr> <td>…</td> <td>…</td> </tr> <tr> <td>¹Q一ơ方W号Q?/td> <td>&sup1;</td> </tr> <tr> <td>²Q^方符P(j)</td> <td>&sup2;</td> </tr> <tr> <td>³Q立方符P(j)</td> <td>&sup3;</td> </tr> <tr bgColor=#ffff00> <td>n<sup>r</sup>Q上标情形)(j)</td> <td>n<sup>r</sup></td> </tr> <tr bgColor=#ffff00> <td>C<sub>i</sub>Q下标情形)(j)</td> <td>C<sub>i</sub></td> </tr> <tr> <td><strong>加粗</strong></td> <td><b>加粗</b></td> </tr> <tr> <td><em>斜体</em></td> <td><i>斜体</i></td> </tr> <tr> <td><u>下划U?/u></td> <td><u>下划U?lt;/u></td> </tr> <tr> <td>±Q加减符P(j)</td> <td>&plusmn;</td> </tr> <tr> <td>×Q乘法符P(j)</td> <td>&times;</td> </tr> <tr> <td>÷Q除法符P(j)</td> <td>&divide;</td> </tr> <tr> <td>©Q版权所有)(j)</td> <td>&copy;</td> </tr> <tr> <td>®Q注册商标)(j)</td> <td>&reg;</td> </tr> <tr> <td><strong style="COLOR: red">™Q商标符P(j)</strong></td> <td>&trade;</td> </tr> <tr> <td>—(破折P(j)</td> <td>?/td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <script type=text/javascript><!-- google_ad_client = "pub-1253167922227550"; google_alternate_ad_url = "http://www.365tech.net/google_adsense_script.htm"; google_ad_width = 468; google_ad_height = 15; google_ad_format = "468x15_0ads_al_s"; google_ad_channel = ""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "940F04"; google_color_text = "000000"; google_color_url = "008000"; //--></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script></p> <img src ="http://www.aygfsteel.com/swingboat/aggbug/112958.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/swingboat/" target="_blank">swingboat</a> 2007-04-23 15:16 <a href="http://www.aygfsteel.com/swingboat/archive/2007/04/23/112958.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript在IE和Firefox中的区别1http://www.aygfsteel.com/swingboat/archive/2007/04/11/109935.htmlswingboatswingboatWed, 11 Apr 2007 08:33:00 GMThttp://www.aygfsteel.com/swingboat/archive/2007/04/11/109935.htmlhttp://www.aygfsteel.com/swingboat/comments/109935.htmlhttp://www.aygfsteel.com/swingboat/archive/2007/04/11/109935.html#Feedback0http://www.aygfsteel.com/swingboat/comments/commentRss/109935.htmlhttp://www.aygfsteel.com/swingboat/services/trackbacks/109935.html   
 1  <html>
 2    <head>
 3    <title>test</title>
 4    <script language="javascript">
 5    function test(){
 6        var tbodyElement=document.getElementById("tbody1");
 7        var trElement=document.createElement("tr");
 8        var idTDElement=document.createElement("td");
 9        
10        idTDElement.innerHTML=1;
11        var nameTDElement=document.createElement("td");
12        
13        var inputElement=document.createElement("input");
14        nameTDElement.appendChild(inputElement);
15        inputElement.type="button";  
16        //在IE中,q句话将?x)抛出异常,但在firefox能正常运行,如果type为text或者不讄type属性,也都能正常运?/span>
17        inputElement.value="Invoke";
18        /*
19        修改成下面的语句p正常q行Q?br>20        var inputElement=document.createElement("input");
21        inputElement.type="button";
22        nameTDElement.appendChild(inputElement);
23        */

24        
25        tbodyElement.appendChild(trElement);
26        trElement.appendChild(idTDElement);
27        trElement.appendChild(nameTDElement);
28    }

29    
</script>
30    </head>
31    <body>
32        <input type="button" value="insert" onclick='test()'>
33        <table cellpadding="0" cellspacing="0" border="1">
34            <tbody id='tbody1'>
35                <tr>
36                    <td width="50">ID</td>
37                    <td width="200">name</td>
38                </tr>
39            </tbody>
40        </table>
41    </body>
42  </html> 
 
2.appendChild一个radio对象Q设|该对象的name属?br>
 1  var nameTDElement=document.createElement("td");  
 2  var radioElement=document.createElement("input");
 3  radioElement.type="radio";
 4  nameTDElement.appendChild(inputElement);
 5  radioElement.name="testRadioName";  //q句话在firefox是v作用的,但在IE下是不v作用?/span>
 6  /*解决的办法是
 7  var radioElement=document.createElement("<input name='testRadioName'>");
 8  radioElement.type="radio";
 9  nameTDElement.appendChild(inputElement);
10  */

3.对select控g增加和删除Option
 1  <html>
 2    <head>
 3    <title>test</title>
 4    <script language="javascript">
 5    function deleteRow(){
 6        var selectElement=document.getElementById("select1");
 7        selectElement.options.remove(1);  //IE:OK        Firefox:Failure
 8        selectElement.remove(1);          //IE:OK        Firefox:OK
 9    }

10    function insertRow(){
11        var selectElement=document.getElementById("select1");
12        var option=new Option("eeee",5);        
13        selectElement.add(option);        //IE:OK        Firefox:Failure
14        selectElement.options.add(option);//IE:OK        Firefox:OK
15    }

16    
</script>
17    </head>
18    <body>
19    <input type="button" value="Delete" onclick='deleteRow()'>
20    <input type="button" value="Insert" onclick='insertRow()'>
21    <select id="select1">
22        <option  value="1">aaa</option>
23        <option  value="2">bbb</option>
24        <option  value="3">ccc</option>
25        <option  value="4">ddd</option>
26    </select>
27    </body>
28  </html>    

   

swingboat 2007-04-11 16:33 发表评论
]]>
利用divq行面的布局2(position属? http://www.aygfsteel.com/swingboat/archive/2007/04/11/109914.htmlswingboatswingboatWed, 11 Apr 2007 07:23:00 GMThttp://www.aygfsteel.com/swingboat/archive/2007/04/11/109914.htmlhttp://www.aygfsteel.com/swingboat/comments/109914.htmlhttp://www.aygfsteel.com/swingboat/archive/2007/04/11/109914.html#Feedback0http://www.aygfsteel.com/swingboat/comments/commentRss/109914.htmlhttp://www.aygfsteel.com/swingboat/services/trackbacks/109914.html一、请看下面的HTML代码

 1<HTML>
 2<HEAD>
 3<TITLE>Position </TITLE>
 4</HEAD>
 5<BODY>
 6<table border=1>
 7    <tr>
 8        <td >
 9            <textarea id="textareaInput" style="font-family: Tahoma; font-size: 11px;" cols="35" rows="3"/></textarea>
10        </td>
11        <td width='300' align='right' >
12            <DIV id=senddiv  style="WIDTH: 70px; HEIGHT: 41px;">
13                <IMG id=btnSendOut style="WIDTH: 70px; POSITION: absolute; HEIGHT: 41px" src="windows_button_bg.gif">
14                <div id=divSendOut style="WIDTH: 70px; POSITION: absolute; HEIGHT: 41px;line-height:41px" align='center' >Send</div>
15            </DIV>
16        </td>
17    </tr>
18</table>
19</div>
20</BODY>
21</HTML>

二、运行的l果

 三、问?br>     Z么img(id为btnSendOut)和文字div(id为divSendOut)出现在table外了(jin)呢?
四、原?br>    img和文字div都用的绝?position:absolute)位置,但都没有讄left和top属性,q样?x)根据当前的HTML位置来确定left和top属?/strong>。上U容器是个div(id为senddiv)中,此div延箋上td的align属性,q样当前位置应在div的右辏V于是img和文字div从divQid为senddiv)的右边开始显C,׃都是l对的,qHTML的显C,所以都?x)超出table外?br>五、解x(chng)?br>      扑ֈ?jin)原因,解决h容易了(jin)。我们只需要把div(id为senddiv)的align属性设|ؓ(f)left可以了(jin)。因为imgQdiv(id为divSendOut)Qdiv(id为senddiv)的大都是一L(fng)?/p> 六、另外的问题(层的居中问题)
      对于把字W串"Send"居中在div(id为divSendOut)中间Q我们可以设|div的line-height属?注意该属性的单位)和height属性一样就可以?jin)。但是如果需要居中的不是文字Q而且其它的对象,例如另一个divQ则需要利用脚本来控制?jin)?

swingboat 2007-04-11 15:23 发表评论
]]>
利用divq行面的布局1(floatQclear属?http://www.aygfsteel.com/swingboat/archive/2007/03/25/106238.htmlswingboatswingboatSun, 25 Mar 2007 08:22:00 GMThttp://www.aygfsteel.com/swingboat/archive/2007/03/25/106238.htmlhttp://www.aygfsteel.com/swingboat/comments/106238.htmlhttp://www.aygfsteel.com/swingboat/archive/2007/03/25/106238.html#Feedback0http://www.aygfsteel.com/swingboat/comments/commentRss/106238.htmlhttp://www.aygfsteel.com/swingboat/services/trackbacks/106238.htmlL(fng)下面的代码:(x)

 1 < html >
 2 < head >
 3 < script  language ="javascript" >
 4 </ script >
 5 < style  type ="text/css" >
 6 </ style >
 7 </ head >
 8 < body >
 9 < div  style ="position:absolute;top:100px;left:100px;width:300;height:300;background-color:#99FF00" >
10      < div  style ="float:left;width:100;height:100;background-color:red" ></ div >
11      < div  style ="clear:right;height:100;background-color:blue;" ></ div >
12 </ div >
13 </ body >
14 </ html >

 
float : none | left |right
 
参数Q?/span>
 
none :  对象不Q?br>left :  对象在左边
right :  对象在双
 
说明Q?/span>
该属性的值指Z(jin)对象是否?qing)如何Q动?br>当该属性不{于none引v对象动Ӟ对象被视作块对?block-level)Q即display属性等于block。也是_(d)动对象的displayҎ(gu)将被忽略?br>对应的脚本特性ؓ(f)styleFloat?br>
clear : none | left |right | both
 
参数Q?/span>
 
none :  允许两边都可以有动对象
both :  不允许有动对象
left :  不允许左Ҏ(gu)动对象
right :  不允许右Ҏ(gu)动对象
 
说明Q?/span>
 
该属性的值指Z(jin)不允许有动对象的边?br>对应的脚本特性ؓ(f)clear?

swingboat 2007-03-25 16:22 发表评论
]]>
javascript转换日期字符串ؓ(f)Date对象http://www.aygfsteel.com/swingboat/archive/2007/02/28/101076.htmlswingboatswingboatWed, 28 Feb 2007 02:21:00 GMThttp://www.aygfsteel.com/swingboat/archive/2007/02/28/101076.htmlhttp://www.aygfsteel.com/swingboat/comments/101076.htmlhttp://www.aygfsteel.com/swingboat/archive/2007/02/28/101076.html#Feedback2http://www.aygfsteel.com/swingboat/comments/commentRss/101076.htmlhttp://www.aygfsteel.com/swingboat/services/trackbacks/101076.html1Q?br />
1var (tng) (tng) (tng)strArray=str.split(" (tng) (tng) (tng)"); (tng) (tng) (tng)
2var (tng) (tng) (tng)strDate=strArray[0].split("-"); (tng) (tng) (tng)
3var (tng) (tng) (tng)strTime=strArray[1].split(":"); (tng) (tng) (tng)
4var (tng) (tng) (tng)a=new (tng) (tng) (tng)Date(strDate[0],(strDate[1]-parseInt(1)),strDate[2],strTime[0],strTime[1],strTime[2]) (tng) (tng) (tng)

2Q?br />
1var (tng) (tng) (tng)s (tng) (tng) (tng)= (tng) (tng) (tng)"2005-12-15 (tng) (tng) (tng)09:41:30"; (tng) (tng) (tng)
2var (tng) (tng) (tng)d (tng) (tng) (tng)= (tng) (tng) (tng)new (tng) (tng) (tng)Date(Date.parse(s.replace(/-/g, (tng) (tng) (tng)"/"))); (tng) (tng) (tng)
3

W二U方法真是简单啊Q?img src ="http://www.aygfsteel.com/swingboat/aggbug/101076.html" width = "1" height = "1" />

swingboat 2007-02-28 10:21 发表评论
]]>
Table中table-layout:fixed样式的作用?/title><link>http://www.aygfsteel.com/swingboat/archive/2006/12/19/88776.html</link><dc:creator>swingboat</dc:creator><author>swingboat</author><pubDate>Tue, 19 Dec 2006 05:44:00 GMT</pubDate><guid>http://www.aygfsteel.com/swingboat/archive/2006/12/19/88776.html</guid><wfw:comment>http://www.aygfsteel.com/swingboat/comments/88776.html</wfw:comment><comments>http://www.aygfsteel.com/swingboat/archive/2006/12/19/88776.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/swingboat/comments/commentRss/88776.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/swingboat/services/trackbacks/88776.html</trackback:ping><description><![CDATA[L(fng)下面的html <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 101.12%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 377px; BACKGROUND-COLOR: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">html</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">body</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TABLE (tng)</span><span style="COLOR: #ff0000">cellSpacing</span><span style="COLOR: #0000ff">="0"</span><span style="COLOR: #ff0000"> (tng)cellPadding</span><span style="COLOR: #0000ff">="0"</span><span style="COLOR: #ff0000"> (tng)width</span><span style="COLOR: #0000ff">="100%"</span><span style="COLOR: #ff0000"> (tng)border</span><span style="COLOR: #0000ff">="1"</span><span style="COLOR: #ff0000"> (tng)</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TBODY</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TR (tng)</span><span style="COLOR: #ff0000">height</span><span style="COLOR: #0000ff">="30"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TD (tng)</span><span style="COLOR: #ff0000">style</span><span style="COLOR: #0000ff">="WIDTH: (tng)12px"</span><span style="COLOR: #0000ff">></</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TD (tng)</span><span style="COLOR: #ff0000">class</span><span style="COLOR: #0000ff">="BigCaption"</span><span style="COLOR: #ff0000"> (tng)style</span><span style="COLOR: #0000ff">="WIDTH: (tng)150px"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">Web (tng)Domain (tng):</span><span style="COLOR: #ff0000">&nbsp;</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">SPAN (tng)</span><span style="COLOR: #ff0000">class</span><span style="COLOR: #0000ff">="WarningDescription"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">*</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">SPAN</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">SELECT (tng)</span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="DWT189WebDomain"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TR</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TR</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TD (tng)</span><span style="COLOR: #ff0000">vAlign</span><span style="COLOR: #0000ff">="top"</span><span style="COLOR: #ff0000"> (tng)colSpan</span><span style="COLOR: #0000ff">="2"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)asfdassdgsdgfsdgfsdgfsdfffffffffffffffffffffffffffffffffffffffffffffsdgfsdfgsdgsdgfsdgfsdgsdg<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TR</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TBODY</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TABLE</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">body</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">html</span><span style="COLOR: #0000ff">></span></div><br />昄q个面Q含有Web Domain的TD的实际长度绝对大?50px的。因为受W二行的colSpan的属性媄(jing)响了(jin)<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 99.22%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 377px; BACKGROUND-COLOR: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">html</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">body</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TABLE (tng)</span><span style="COLOR: #ff0000">cellSpacing</span><span style="COLOR: #0000ff">="0"</span><span style="COLOR: #ff0000"> (tng)cellPadding</span><span style="COLOR: #0000ff">="0"</span><span style="COLOR: #ff0000"> (tng)width</span><span style="COLOR: #0000ff">="100%"</span><span style="COLOR: #ff0000"> (tng)border</span><span style="COLOR: #0000ff">="1"</span><span style="COLOR: #ff0000"> (tng)style</span><span style="COLOR: #0000ff">="table-layout:fixed"</span><span style="COLOR: #ff0000"> (tng)</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TBODY</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TR (tng)</span><span style="COLOR: #ff0000">height</span><span style="COLOR: #0000ff">="30"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TD (tng)</span><span style="COLOR: #ff0000">style</span><span style="COLOR: #0000ff">="WIDTH: (tng)12px"</span><span style="COLOR: #0000ff">></</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TD (tng)</span><span style="COLOR: #ff0000">class</span><span style="COLOR: #0000ff">="BigCaption"</span><span style="COLOR: #ff0000"> (tng)style</span><span style="COLOR: #0000ff">="WIDTH: (tng)150px"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">Web (tng)Domain (tng):</span><span style="COLOR: #ff0000">&nbsp;</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">SPAN (tng)</span><span style="COLOR: #ff0000">class</span><span style="COLOR: #0000ff">="WarningDescription"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">*</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">SPAN</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">SELECT (tng)</span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="DWT189WebDomain"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TR</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TR</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">TD (tng)</span><span style="COLOR: #ff0000">vAlign</span><span style="COLOR: #0000ff">="top"</span><span style="COLOR: #ff0000"> (tng)colSpan</span><span style="COLOR: #0000ff">="2"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)asfdassdgsdgfsdgfsdgfsdfffffffffffffffffffffffffffffffffffffffffffffsdgfsdfgsdgsdgfsdgfsdgs<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TD</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TR</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TBODY</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">TABLE</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">body</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">html</span><span style="COLOR: #0000ff">></span></div><br />q才是我要的效果Q呵呵!<img src ="http://www.aygfsteel.com/swingboat/aggbug/88776.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/swingboat/" target="_blank">swingboat</a> 2006-12-19 13:44 <a href="http://www.aygfsteel.com/swingboat/archive/2006/12/19/88776.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>|站图标http://www.aygfsteel.com/swingboat/archive/2006/08/28/66197.htmlswingboatswingboatMon, 28 Aug 2006 07:48:00 GMThttp://www.aygfsteel.com/swingboat/archive/2006/08/28/66197.htmlhttp://www.aygfsteel.com/swingboat/comments/66197.htmlhttp://www.aygfsteel.com/swingboat/archive/2006/08/28/66197.html#Feedback0http://www.aygfsteel.com/swingboat/comments/commentRss/66197.htmlhttp://www.aygfsteel.com/swingboat/services/trackbacks/66197.html<link rel="SHORTCUT ICON" href=">

swingboat 2006-08-28 15:48 发表评论
]]>
javascript对象使用ȝ(1)http://www.aygfsteel.com/swingboat/archive/2006/03/13/35093.htmlswingboatswingboatMon, 13 Mar 2006 09:32:00 GMThttp://www.aygfsteel.com/swingboat/archive/2006/03/13/35093.htmlhttp://www.aygfsteel.com/swingboat/comments/35093.htmlhttp://www.aygfsteel.com/swingboat/archive/2006/03/13/35093.html#Feedback0http://www.aygfsteel.com/swingboat/comments/commentRss/35093.htmlhttp://www.aygfsteel.com/swingboat/services/trackbacks/35093.html  function Person(name,age,sex){
   var self=this;
   this.name=name;
   this.age=age;
   this.sex=sex;
   
   toString=function(){
    alert(self.name);
   }
   
   this.getName=function(){
    return this.name;
   }  
  }
 
  使用:
  var person=new Person("yhp",28,1);
  person.getName();//可以讉KgetName函数
  person.toString();//不可以访问toString函数
 
  利用prototype.js也可以这么定?BR>  var Person=Class.create();
  必须定义Person的构造函?
  Person.prototype.initialize=function(name,age,sex){
   this.name=name;
   this.age=age;
   this.sex=sex;
  }
 
2.在上面的PersoncM,toString函数是不能直接访问this.name?
  解决Ҏ(gu):可以定义变量self,把this赋值给?在toString中利用self来访问this.name.
  var self=this;
  toString(){
   alert(self.name);
  }
  应用:定义一个类,有个成员变量number,在构造函C传入一个容?在容器中创徏一个div,div中绑定onclick,在onclick中访问number
  var Module=function(container){
 var self=this;
 this.container=container;
 this.build=function(){
  this.number=Math.random();
  var div=document.createElement("div");
  div.innerHTML="module";
  div.style.cursor="pointer";
  div.onclick=function(){
   alert(self.number);//在此处是不能讉Kthis.number?
  }
  this.container.appendChild(div);
  test();
 }
  }
 
3.对于下面代码:
  while(count>=0){
    var div=document.createElement("div");
 div.className="number";        
 div.innerHTML=count+1;
 div.style.cursor="pointer";
 div.onclick=function(e){
  alert(count);
 }      
  }
 
  当触发div的onclick的时?每次alert昄都是-1;也就是最后count的?但需要每ơalert的都是innerHTML中?
  获取innerHTML的方? 
     对于事g,获取触发该事件的对象:
     IE     : window.Event.srcElement
     Firefox:e.target   //e是函C入的事g参数
  获取触发事g的对象的InnerHTML:
  getClickPageNumber=function(e){
   return Try.these(
    function() {return window.event.srcElement.innerHTML},
    function() {return e.target.innerHTML}
 ) ;
  }
  修改onclick:
  div.onclick=function(e){
   alert(getClickPageNumber(e));
  }
 
4.清除html的table中tbody中的内容.
  <tbody id="tBody">
   <tr>
    <td>a</td>
    <td>b</td>
   </tr> 
  </tbody>
  代码:
  $("tBody").innerHTML="";
  上面的代码在IE中是没有效果?
  修改:
  while (tBody.rows.length > 0) {
 tBody.deleteRow(0);
  }

swingboat 2006-03-13 17:32 发表评论
]]>
javascript中event详解http://www.aygfsteel.com/swingboat/archive/2006/02/23/32064.htmlswingboatswingboatThu, 23 Feb 2006 01:54:00 GMThttp://www.aygfsteel.com/swingboat/archive/2006/02/23/32064.htmlhttp://www.aygfsteel.com/swingboat/comments/32064.htmlhttp://www.aygfsteel.com/swingboat/archive/2006/02/23/32064.html#Feedback0http://www.aygfsteel.com/swingboat/comments/commentRss/32064.htmlhttp://www.aygfsteel.com/swingboat/services/trackbacks/32064.htmlevent代表事g的状态,例如触发event对象的元素、鼠标的位置?qing)状态、按下的键等{?BR>event对象只在事g发生的过E中才有效?BR>event的某些属性只对特定的事g有意义。比如,fromElement ?toElement 属性只?onmouseover ?onmouseout 事g有意义?BR>例子

下面的例子检查鼠标是否在链接上单击,q且Q如果shift键被按下Q就取消链接的蟩转?BR>code<HTML>
<HEAD><TITLE>Cancels Links</TITLE>
<SCRIPT LANGUAGE="JScript">
function cancelLink() {
    if (window.event.srcElement.tagName == "A" && window.event.shiftKey)
    window.event.returnValue = false;
}
</SCRIPT>
<BODY onclick="cancelLink()">


下面的例子在状态栏上显C鼠标的当前位置?BR>code<BODY onmousemove="window.status = 'X=' + window.event.x + ' Y=' + window.event.y">


属性:(x)

altKey, button, cancelBubble, clientX, clientY, ctrlKey, fromElement, keyCode, offsetX, offsetY, propertyName, returnValue, screenX,
screenY, shiftKey, srcElement, srcFilter, toElement, type, x, y

1.altKey
描述Q?BR>(g)查alt键的状态?/P>

语法Q?BR>event.altKey

可能的|(x)
当alt键按下时Qgؓ(f) TRUE Q否则ؓ(f) FALSE 。只诅R?/P>


2.button
描述Q?BR>(g)查按下的鼠标键?/P>

语法Q?BR>event.button

可能的|(x)
0 没按?BR>1 按左?BR>2 按右?BR>3 按左右键
4 按中间键
5 按左键和中间?BR>6 按右键和中间?BR>7 按所有的?/P>

q个属性仅用于onmousedown, onmouseup, ?onmousemove 事g。对其他事gQ不鼠标状态如何,都返?0Q比如onclickQ?/P>

3.cancelBubble
描述Q?BR>(g)是否接受上层元素的事g的控制?/P>

语法Q?BR>event.cancelBubble[ = cancelBubble]

可能的|(x)
q是一个可d的布?yu)(dng)?

TRUE 不被上层原素的事件控制?BR>FALSE 允许被上层元素的事g控制。这是默认倹{?/P>

例子Q?BR>下面的代码片断演CZ(jin)当在囄上点击(onclickQ时Q如果同时shift键也被按下,取消上层元素(bodyQ上的事件onclick所引发的showSrc()函数?/P>

code<SCRIPT LANGUAGE="JScript">
function checkCancel() {
    if (window.event.shiftKey)
    window.event.cancelBubble = true;
}
function showSrc() {
    if (window.event.srcElement.tagName == "IMG")
    alert(window.event.srcElement.src);
}
</SCRIPT>
<BODY onclick="showSrc()">
<IMG onclick="checkCancel()" SRC="sample.gif">

 

4.clientX
描述Q?BR>q回鼠标在窗口客户区域中的X坐标?/P>

语法Q?BR>event.clientX

注释Q?BR>q是个只d性。这意味着Q你只能通过它来得到鼠标的当前位|,却不能用它来更改鼠标的位|?/P>


5.clientY
描述Q?BR>q回鼠标在窗口客户区域中的Y坐标?/P>

语法Q?BR>event.clientY

注释Q?BR>q是个只d性。这意味着Q你只能通过它来得到鼠标的当前位|,却不能用它来更改鼠标的位|?/P>


6.ctrlKey
描述Q?BR>(g)查ctrl键的状态?/P>

语法Q?BR>event.ctrlKey

可能的|(x)
当ctrl键按下时Qgؓ(f) TRUE Q否则ؓ(f) FALSE 。只诅R?/P>


7.fromElement
描述Q?BR>(g)?onmouseover ?onmouseout 事g发生Ӟ鼠标所d的元素?参考:(x)18.toElement

语法Q?BR>event.fromElement

注释Q?BR>q是个只d性?/P>


8.keyCode
描述Q?BR>(g)键盘(sh)件相对应的内码?BR>q个属性用?onkeydown, onkeyup, ?onkeypress 事g?/P>

语法Q?BR>event.keyCode[ = keyCode]


可能的|(x)
q是个可d的|可以是Q何一个Unicode键盘内码。如果没有引发键盘(sh)Ӟ则该gؓ(f) 0 ?/P>


9.offsetX
描述Q?BR>(g)查相对于触发事g的对象,鼠标位置的水q_?/P>

语法Q?BR>event.offsetX


10.offsetY
描述Q?BR>(g)查相对于触发事g的对象,鼠标位置的垂直坐?/P>

语法Q?BR>event.offsetY


11.propertyName
描述Q?BR>讄或返回元素的变化?jin)的属性的名称?/P>

语法Q?BR>event.propertyName [ = sProperty ]

可能的|(x)
sProperty 是一个字W串Q指定或q回触发事g的元素在事g中变化了(jin)的属性的名称?BR>q个属性是可读写的。无默认倹{?/P>

注释Q?BR>你可以通过使用 onpropertychange 事gQ得?propertyName 的倹{?/P>

例子Q?BR>下面的例子通过使用 onpropertychange 事gQ弹Z个对话框Q显C?propertyName 的倹{?/P>

code<HEAD>
<SCRIPT>
function changeProp(){
    btnProp.value = "This is the new VALUE";
}

function changeCSSProp(){
    btnStyleProp.style.backgroundColor = "aqua";
}
</SCRIPT>
</HEAD>
<BODY>
<P>The event object property propertyName is
used here to return which property has been
altered.</P>

<INPUT TYPE=button ID=btnProp onclick="changeProp()"
VALUE="Click to change the VALUE property of this button"
onpropertychange='alert(event.propertyName+" property has changed value")'>
<INPUT TYPE=button ID=btnStyleProp
onclick="changeCSSProp()"
VALUE="Click to change the CSS backgroundColor property of this button"
onpropertychange='alert(event.propertyName+" property has changed value")'>
</BODY>

 

12.returnValue
描述Q?BR>讄或检查从事g中返回的?/P>

语法Q?BR>event.returnValue[ = Boolean]

可能的|(x)
true 事g中的Dq回
false 源对象上事g的默认操作被取消

例子见本文的开头?/P>


13.screenX
描述Q?BR>(g)鼠标相对于用户屏幕的水q位|?/P>

语法Q?BR>event.screenX


注释Q?BR>q是个只d性。这意味着Q你只能通过它来得到鼠标的当前位|,却不能用它来更改鼠标的位|?/P>


14.screenY
描述Q?BR>(g)鼠标相对于用户屏幕的垂直位|?/P>

语法Q?BR>event.screenY

注释Q?BR>q是个只d性。这意味着Q你只能通过它来得到鼠标的当前位|,却不能用它来更改鼠标的位|?/P>


15.shiftKey
描述Q?BR>(g)查shift键的状态?/P>

语法Q?BR>event.shiftKey

可能的|(x)
当shift键按下时Qgؓ(f) TRUE Q否则ؓ(f) FALSE 。只诅R?/P>


16.srcElement
描述Q?BR>q回触发事g的元素。只诅R例子见本文开头?/P>

语法Q?BR>event.srcElement


17.srcFilter
描述Q?BR>q回触发 onfilterchange 事g的o(h)镜。只诅R?/P>

语法Q?BR>event.srcFilter


18.toElement
描述Q?BR>(g)?onmouseover ?onmouseout 事g发生Ӟ鼠标所q入的元素?参考:(x)7.fromElement

语法Q?BR>event.toElement

注释Q?BR>q是个只d性?/P>

例子Q下面的代码演示?jin)当鼠标Ud按钮上时Q弹Z个对话框Q显C“mouse arrived?/P>

code<SCRIPT>
function testMouse(oObject) {
    if(oObject.contains(event.toElement)) {
        alert("mouse arrived");
    }
}
</SCRIPT>
:
<BUTTON ID=oButton onmouseover="testMouse(this)">Mouse Over This.</BUTTON>

 

19.type
描述Q?BR>q回事g名?/P>

语法Q?BR>event.type

注释Q?BR>q回没有“on”作为前~的事件名Q比如,onclick事gq回的type是click
只读?/P>


20. x
描述Q?BR>q回鼠标相对于css属性中有position属性的上元素的x轴坐标。如果没有css属性中有position属性的上元素Q默认以BODY元素作ؓ(f)参考对象?/P>

语法Q?BR>event.x

注释Q?BR>如果事g触发后,鼠标UdH口外,则返回的gؓ(f) -1
q是个只d性。这意味着Q你只能通过它来得到鼠标的当前位|,却不能用它来更改鼠标的位|?/P>


21. y
描述Q?BR>q回鼠标相对于css属性中有position属性的上元素的y轴坐标。如果没有css属性中有position属性的上元素Q默认以BODY元素作ؓ(f)参考对象?/P>

语法Q?BR>event.y

注释Q?BR>如果事g触发后,鼠标UdH口外,则返回的gؓ(f) -1
q是个只d性。这意味着Q你只能通过它来得到鼠标的当前位|,却不能用它来更改鼠标的位|?



swingboat 2006-02-23 09:54 发表评论
]]>
javascript对XML的解?/title><link>http://www.aygfsteel.com/swingboat/archive/2006/02/21/31828.html</link><dc:creator>swingboat</dc:creator><author>swingboat</author><pubDate>Tue, 21 Feb 2006 09:13:00 GMT</pubDate><guid>http://www.aygfsteel.com/swingboat/archive/2006/02/21/31828.html</guid><wfw:comment>http://www.aygfsteel.com/swingboat/comments/31828.html</wfw:comment><comments>http://www.aygfsteel.com/swingboat/archive/2006/02/21/31828.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/swingboat/comments/commentRss/31828.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/swingboat/services/trackbacks/31828.html</trackback:ping><description><![CDATA[<P>1.对XMLHttpRequesthq回的responseXMLq行解析,responseXML是个XMLDOcument对象<BR>假设q回的responseXML?<BR><?xml version="1.0" encoding="UTF-8" <BR>  standalone="yes"?><BR><response><BR>  <method>checkName</method><BR>  <result>1</result><BR></response><BR>则获取method和result值方法ؓ(f):<BR>var response=req.responseXML.documentElement;<BR>method    =response.getElementsByTagName('method')[0].firstChild.data;<BR>result    = response.getElementsByTagName('result')[0].firstChild.data;<BR><BR>2.创徏一个XMLDocument对象<BR>function getXMLDocument() {<BR>    var xDoc = null;<BR>    if (document.implementation && document.implementation.createDocument) {<BR>        xDoc = document.implementation.createDocument("", "", null);<BR>    } else {<BR>        if ((typeof ActiveXObject) != "undefined") {<BR>            var msXmlAx = null;<BR>            try {<BR>                msXmlAx = new ActiveXObject("Msxml2.DOMDocument");<BR>            }<BR>            catch (e) {<BR>                msXmlAx = new ActiveXObject("Msxml.DOMDocument");<BR>            }<BR>            xDoc = msXmlAx;<BR>        }<BR>    }<BR>    if (xDoc == null || typeof xDoc.load == "undefined") {<BR>        xDoc = null;<BR>    }<BR>    return xDoc;<BR>}<BR><BR>3.创徏一个DOM?BR><people><BR> <person first-name="eric" middle-initial="h" last-name="jung"><BR>  <address street="321 south st" city="denver" state="co" country="usa" /><BR> </person><BR> <person first-name="jed" last-name="brown"><BR>  <address street="321 north st" city="atlanta" state="ga" country="usa" /><BR>  <address street="321 south avenue" city="denver" state="co" country="usa" /><BR> </person><BR></people><BR>E序如下:<BR>  var doc=getXMLDocument();<BR>  var peopleElem = doc.createElement("people");<BR>  var personElem1 = doc.createElement("person");<BR>  personElem1.setAttribute("first-name", "eric");<BR>  personElem1.setAttribute("middle-initial", "h");<BR>  personElem1.setAttribute("last-name", "jung");<BR>  <BR>  var addressElem1 = doc.createElement("address");<BR>  addressElem1.setAttribute("street", "321 south st");<BR>  addressElem1.setAttribute("city", "denver");<BR>  addressElem1.setAttribute("state", "co");<BR>  addressElem1.setAttribute("country", "usa");<BR>  personElem1.appendChild(addressElem1);<BR>  <BR>  var personElem2 = doc.createElement("person");<BR>  personElem2.setAttribute("first-name", "jed");<BR>  personElem2.setAttribute("last-name", "brown");<BR>  <BR>  var addressElem3 = doc.createElement("address");<BR>  addressElem3.setAttribute("street", "321 north st");<BR>  addressElem3.setAttribute("city", "atlanta");<BR>  addressElem3.setAttribute("state", "ga");<BR>  addressElem3.setAttribute("country", "usa");<BR>  personElem2.appendChild(addressElem3);  <BR>  <BR>  var addressElem5 = doc.createElement("address");<BR>  addressElem5.setAttribute("street", "321 south avenue");<BR>  addressElem5.setAttribute("city", "denver");<BR>  addressElem5.setAttribute("state", "co");<BR>  addressElem5.setAttribute("country", "usa");<BR>  personElem2.appendChild(addressElem5);<BR>  <BR>  peopleElem.appendChild(personElem1);<BR>  peopleElem.appendChild(personElem2);<BR>  doc.appendChild(peopleElem);<BR>  alert(doc.xml);//xml属性只对IE用</P><img src ="http://www.aygfsteel.com/swingboat/aggbug/31828.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/swingboat/" target="_blank">swingboat</a> 2006-02-21 17:13 <a href="http://www.aygfsteel.com/swingboat/archive/2006/02/21/31828.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>利用html中的div标签实现|页中某一块区域的自动滚动 http://www.aygfsteel.com/swingboat/archive/2005/12/28/25652.htmlswingboatswingboatWed, 28 Dec 2005 01:15:00 GMThttp://www.aygfsteel.com/swingboat/archive/2005/12/28/25652.htmlhttp://www.aygfsteel.com/swingboat/comments/25652.htmlhttp://www.aygfsteel.com/swingboat/archive/2005/12/28/25652.html#Feedback0http://www.aygfsteel.com/swingboat/comments/commentRss/25652.htmlhttp://www.aygfsteel.com/swingboat/services/trackbacks/25652.htmlhtml代码如下Q?BR><html>
<body>
<div style="height:400;overflow:auto ">
<table width="543" height="300" border="1">
  <tr>
    <td width="59"><div align="center"></div></td>
    <td width="59"><div align="center"></div></td>
    <td width="403"><div align="center"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</div>
</body>
</html>
说明Qdiv的高度ؓ(f)400Q而table的高度ؓ(f)300Q此U情况不?x)出现滚动条。div的高度ؓ(f)300Q而table的高度ؓ(f)400Q此U情况下Q在table的旁边就?x)出现滚动条。主要是利用?jin)div的overflow属性?img src ="http://www.aygfsteel.com/swingboat/aggbug/25652.html" width = "1" height = "1" />

swingboat 2005-12-28 09:15 发表评论
]]>
վ֩ģ壺 | ɽ| ʯ| | ɽ| ֶ| | | | α| | | ƽ| ̨| ຣʡ| ƽԶ| | ̨| | | п| | ̨| | ɽ| | Ǩ| ɽ| ³ƶ| | | | | ԭ| Ԫ| | ֲ| °| | Ϫ| Ͽ|