﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-rox-随笔分类-AJAX</title><link>http://www.blogjava.net/rox/category/14646.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 27 Feb 2007 21:35:55 GMT</lastBuildDate><pubDate>Tue, 27 Feb 2007 21:35:55 GMT</pubDate><ttl>60</ttl><item><title>浮动广告的一些相关问题的解决！</title><link>http://www.blogjava.net/rox/archive/2007/02/14/99776.html</link><dc:creator>rox</dc:creator><author>rox</author><pubDate>Wed, 14 Feb 2007 01:55:00 GMT</pubDate><guid>http://www.blogjava.net/rox/archive/2007/02/14/99776.html</guid><wfw:comment>http://www.blogjava.net/rox/comments/99776.html</wfw:comment><comments>http://www.blogjava.net/rox/archive/2007/02/14/99776.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/rox/comments/commentRss/99776.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rox/services/trackbacks/99776.html</trackback:ping><description><![CDATA[浮动广告代码很多了，不介绍了。<br />但是对于flash或者下拉框，是容易被遮挡的。<br /><br />1、flash的解决：<br />    &lt;!--1.设置FLASH为底层--&gt;<br />    &lt;div style="z-index:-1"&gt; <br />    &lt;!--2.必须把FLASH设置为透明--&gt;<br />    &lt;param name="wmode" value="transparent"&gt; <br /><br />2、下拉框的解决：<br />    因为下拉框的index是最高的，怎么调整都没有用。<br />    所以，浮动层里面要增加一个iframe，里面再src近来一个新页面，这个页面就是广告页面。<br />    <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 128, 0);">&lt;!--</span><span style="color: rgb(0, 128, 0);"> 浮云 </span><span style="color: rgb(0, 128, 0);">--&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 2</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">div </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="fuyun"</span><span style="color: rgb(255, 0, 0);"> style</span><span style="color: rgb(0, 0, 255);">="Z-INDEX: 99999999999; LEFT: 4px; WIDTH: 100px; POSITION: absolute; TOP: 372px; HEIGHT: 100px"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br /></span><span style="color: rgb(0, 128, 128);"> 3</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">p </span><span style="color: rgb(255, 0, 0);">align</span><span style="color: rgb(0, 0, 255);">="center"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 4</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">iframe </span><span style="color: rgb(255, 0, 0);">height</span><span style="color: rgb(0, 0, 255);">="80"</span><span style="color: rgb(255, 0, 0);"> width</span><span style="color: rgb(0, 0, 255);">="80"</span><span style="color: rgb(255, 0, 0);"> frameborder</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(255, 0, 0);"> scrolling</span><span style="color: rgb(0, 0, 255);">="no"</span><span style="color: rgb(255, 0, 0);"> hspace</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(255, 0, 0);"> vspace</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(255, 0, 0);"> style</span><span style="color: rgb(0, 0, 255);">="padding:0; margin:0"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">="ad_kfc/fy_kfc.html"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 5</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">iframe</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 6</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">p</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 7</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">div</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 8</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">script </span><span style="color: rgb(255, 0, 0);">language</span><span style="color: rgb(0, 0, 255);">="JavaScript"</span><span style="color: rgb(255, 0, 0);"> src</span><span style="color: rgb(0, 0, 255);">="js/fy.js"</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 9</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">SCRIPT </span><span style="color: rgb(255, 0, 0);">LANGUAGE</span><span style="color: rgb(0, 0, 255);">="JavaScript"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">10</span> <span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">&lt;!--</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">11</span> <span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">    start();<br /></span><span style="color: rgb(0, 128, 128);">12</span> <span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">//</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);">--&gt;</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 128, 128);">13</span> <span style="background-color: rgb(245, 245, 245); color: rgb(0, 128, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">SCRIPT</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br />其中这个src页面代码如下：<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);">1</span> <span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">2</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">3</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">title</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"> fy kfc </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">title</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">4</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">head</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">5</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">body </span><span style="color: rgb(255, 0, 0);">style</span><span style="color: rgb(0, 0, 255);">="padding:0; margin:0"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">6</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">a </span><span style="color: rgb(255, 0, 0);">href</span><span style="color: rgb(0, 0, 255);">="/public/enterprise.do?id=29838"</span><span style="color: rgb(255, 0, 0);"> target</span><span style="color: rgb(0, 0, 255);">="_blank"</span><span style="color: rgb(0, 0, 255);">&gt;&lt;</span><span style="color: rgb(128, 0, 0);">img </span><span style="color: rgb(255, 0, 0);">src</span><span style="color: rgb(0, 0, 255);">="kfc.gif"</span><span style="color: rgb(255, 0, 0);"> width</span><span style="color: rgb(0, 0, 255);">="80"</span><span style="color: rgb(255, 0, 0);"> height</span><span style="color: rgb(0, 0, 255);">="80"</span><span style="color: rgb(255, 0, 0);"> border</span><span style="color: rgb(0, 0, 255);">=0</span><span style="color: rgb(0, 0, 255);">&gt;&lt;/</span><span style="color: rgb(128, 0, 0);">a</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">7</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">body</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">8</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">html</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">9</span> <span style="color: rgb(0, 0, 0);"></span></div><br />还是把浮动窗口的js代码贴上来，原来网上找的代码，参数名字过于简单，怕多个js一起调用时会重名。自己改了一下的<br /><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fuyun </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">fuyun</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br /></span><span style="color: rgb(0, 128, 128);"> 2</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fy_xPos </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">20</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);"> 3</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fy_yPos </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.body.clientHeight;<br /></span><span style="color: rgb(0, 128, 128);"> 4</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fy_step </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);"> 5</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fy_delay </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">30</span><span style="color: rgb(0, 0, 0);">; <br /></span><span style="color: rgb(0, 128, 128);"> 6</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fy_height </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);"> 7</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fy_Hoffset </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);"> 8</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fy_Woffset </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);"> 9</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fy_yon </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">10</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fy_xon </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">11</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> fy_pause </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">12</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> interval;<br /></span><span style="color: rgb(0, 128, 128);">13</span> <span style="color: rgb(0, 0, 0);">fuyun.style.top </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> fy_yPos;<br /></span><span style="color: rgb(0, 128, 128);">14</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> changePos() {<br /></span><span style="color: rgb(0, 128, 128);">15</span> <span style="color: rgb(0, 0, 0);">fy_width </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.body.clientWidth;<br /></span><span style="color: rgb(0, 128, 128);">16</span> <span style="color: rgb(0, 0, 0);">fy_height </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.body.clientHeight;<br /></span><span style="color: rgb(0, 128, 128);">17</span> <span style="color: rgb(0, 0, 0);">fy_Hoffset </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> fuyun.offsetHeight;<br /></span><span style="color: rgb(0, 128, 128);">18</span> <span style="color: rgb(0, 0, 0);">fy_Woffset </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> fuyun.offsetWidth;<br /></span><span style="color: rgb(0, 128, 128);">19</span> <span style="color: rgb(0, 0, 0);">fuyun.style.left </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> fy_xPos </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> document.body.scrollLeft;<br /></span><span style="color: rgb(0, 128, 128);">20</span> <span style="color: rgb(0, 0, 0);">fuyun.style.top </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> fy_yPos </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> document.body.scrollTop;<br /></span><span style="color: rgb(0, 128, 128);">21</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (fy_yon) {<br /></span><span style="color: rgb(0, 128, 128);">22</span> <span style="color: rgb(0, 0, 0);">fy_yPos </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> fy_yPos </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> fy_step;<br /></span><span style="color: rgb(0, 128, 128);">23</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">24</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"> {<br /></span><span style="color: rgb(0, 128, 128);">25</span> <span style="color: rgb(0, 0, 0);">fy_yPos </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> fy_yPos </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> fy_step;<br /></span><span style="color: rgb(0, 128, 128);">26</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">27</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (fy_yPos </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">) {<br /></span><span style="color: rgb(0, 128, 128);">28</span> <span style="color: rgb(0, 0, 0);">fy_yon </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">29</span> <span style="color: rgb(0, 0, 0);">fy_yPos </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">30</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">31</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (fy_yPos </span><span style="color: rgb(0, 0, 0);">&gt;=</span><span style="color: rgb(0, 0, 0);"> (fy_height </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> fy_Hoffset)) {<br /></span><span style="color: rgb(0, 128, 128);">32</span> <span style="color: rgb(0, 0, 0);">fy_yon </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">33</span> <span style="color: rgb(0, 0, 0);">fy_yPos </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> (fy_height </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> fy_Hoffset);<br /></span><span style="color: rgb(0, 128, 128);">34</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">35</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (fy_xon) {<br /></span><span style="color: rgb(0, 128, 128);">36</span> <span style="color: rgb(0, 0, 0);">fy_xPos </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> fy_xPos </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> fy_step;<br /></span><span style="color: rgb(0, 128, 128);">37</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">38</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"> {<br /></span><span style="color: rgb(0, 128, 128);">39</span> <span style="color: rgb(0, 0, 0);">fy_xPos </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> fy_xPos </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> fy_step;<br /></span><span style="color: rgb(0, 128, 128);">40</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">41</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (fy_xPos </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">) {<br /></span><span style="color: rgb(0, 128, 128);">42</span> <span style="color: rgb(0, 0, 0);">fy_xon </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">43</span> <span style="color: rgb(0, 0, 0);">fy_xPos </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">44</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">45</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (fy_xPos </span><span style="color: rgb(0, 0, 0);">&gt;=</span><span style="color: rgb(0, 0, 0);"> (fy_width </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> fy_Woffset)) {<br /></span><span style="color: rgb(0, 128, 128);">46</span> <span style="color: rgb(0, 0, 0);">fy_xon </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">47</span> <span style="color: rgb(0, 0, 0);">fy_xPos </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> (fy_width </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> fy_Woffset);<br /></span><span style="color: rgb(0, 128, 128);">48</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">49</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">50</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> start() {<br /></span><span style="color: rgb(0, 128, 128);">51</span> <span style="color: rgb(0, 0, 0);">fuyun.visibility </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">visible</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">52</span> <span style="color: rgb(0, 0, 0);">interval </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> setInterval('changePos()', fy_delay);<br /></span><span style="color: rgb(0, 128, 128);">53</span> <span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">54</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">55</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> fy_pause_resume() {<br /></span><span style="color: rgb(0, 128, 128);">56</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(fy_pause) {<br /></span><span style="color: rgb(0, 128, 128);">57</span> <span style="color: rgb(0, 0, 0);">clearInterval(interval);<br /></span><span style="color: rgb(0, 128, 128);">58</span> <span style="color: rgb(0, 0, 0);">fy_pause </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">false</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">59</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">60</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"> {<br /></span><span style="color: rgb(0, 128, 128);">61</span> <span style="color: rgb(0, 0, 0);">interval </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> setInterval('changePos()',fy_delay);<br /></span><span style="color: rgb(0, 128, 128);">62</span> <span style="color: rgb(0, 0, 0);">fy_pause </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">63</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">64</span> <span style="color: rgb(0, 0, 0);">}</span></div><br /><br />不提倡使用浮动广告，现在多半都是悬浮广告了。只是客户指定要，而且还要不被遮挡，在多人的帮助下，终于解决了这个问题。<br /><br />大家可以到 <a target="_blank" title="http://www.jobhn.cn" href="http://www.jobhn.cn">http://www.jobhn.cn</a> 网站上看看实际的效果。<br /><img src ="http://www.blogjava.net/rox/aggbug/99776.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rox/" target="_blank">rox</a> 2007-02-14 09:55 <a href="http://www.blogjava.net/rox/archive/2007/02/14/99776.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle IMP/EXP bat</title><link>http://www.blogjava.net/rox/archive/2006/08/07/62164.html</link><dc:creator>rox</dc:creator><author>rox</author><pubDate>Mon, 07 Aug 2006 06:10:00 GMT</pubDate><guid>http://www.blogjava.net/rox/archive/2006/08/07/62164.html</guid><wfw:comment>http://www.blogjava.net/rox/comments/62164.html</wfw:comment><comments>http://www.blogjava.net/rox/archive/2006/08/07/62164.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/rox/comments/commentRss/62164.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rox/services/trackbacks/62164.html</trackback:ping><description><![CDATA[Windows XP SP2 + Oralce 9i<br /><br />exp++.bat<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);">1</span> <span style="color: rgb(0, 0, 0);">set sid</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">portal<br /></span><span style="color: rgb(0, 128, 128);">2</span> <span style="color: rgb(0, 0, 0);">set username</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">portal<br /></span><span style="color: rgb(0, 128, 128);">3</span> <span style="color: rgb(0, 0, 0);">set password</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">portal<br /></span><span style="color: rgb(0, 128, 128);">4</span> <span style="color: rgb(0, 0, 0);">set connect</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%username%/%password%@%sid%<br /></span><span style="color: rgb(0, 128, 128);">5</span> <span style="color: rgb(0, 0, 0);">set back_path</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">D:\oracle<br /></span><span style="color: rgb(0, 128, 128);">6</span> <span style="color: rgb(0, 0, 0);">set date_string</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%date:~</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">4</span><span style="color: rgb(0, 0, 0);">%_%date:~</span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">%_%date:~</span><span style="color: rgb(0, 0, 0);">8</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">%<br /></span><span style="color: rgb(0, 128, 128);">7</span> <span style="color: rgb(0, 0, 0);">set time_string</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%time:~</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">%_%time:~</span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">%_%time:~</span><span style="color: rgb(0, 0, 0);">6</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">%<br /></span><span style="color: rgb(0, 128, 128);">8</span> <span style="color: rgb(0, 0, 0);">set file_string</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%back_path%\portal_%date_string%_%time_string%<br /></span><span style="color: rgb(0, 128, 128);">9</span> <span style="color: rgb(0, 0, 0);">exp %connect% buffer</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">20000000</span><span style="color: rgb(0, 0, 0);"> file</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%file_string%.dmp log</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">exp_%file_string%.log owner</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">portal</span></div><br />imp++.bat<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 0, 0);">set dmp_source</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 2</span> <span style="color: rgb(0, 0, 0);">set sid</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">his<br /></span><span style="color: rgb(0, 128, 128);"> 3</span> <span style="color: rgb(0, 0, 0);">set username</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">his_dba<br /></span><span style="color: rgb(0, 128, 128);"> 4</span> <span style="color: rgb(0, 0, 0);">set password</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">his_dba<br /></span><span style="color: rgb(0, 128, 128);"> 5</span> <span style="color: rgb(0, 0, 0);">set connect</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%username%/%password%@%sid%<br /></span><span style="color: rgb(0, 128, 128);"> 6</span> <span style="color: rgb(0, 0, 0);">set back_path</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">D:\oracle<br /></span><span style="color: rgb(0, 128, 128);"> 7</span> <span style="color: rgb(0, 0, 0);">set date_string</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%date:~</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">4</span><span style="color: rgb(0, 0, 0);">%_%date:~</span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">%_%date:~</span><span style="color: rgb(0, 0, 0);">8</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">%<br /></span><span style="color: rgb(0, 128, 128);"> 8</span> <span style="color: rgb(0, 0, 0);">set time_string</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%time:~</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">%_%time:~</span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">%_%time:~</span><span style="color: rgb(0, 0, 0);">6</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">%<br /></span><span style="color: rgb(0, 128, 128);"> 9</span> <span style="color: rgb(0, 0, 0);">set output_string</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%back_path%\portal_%date_string%_%time_string%<br /></span><span style="color: rgb(0, 128, 128);">10</span> <span style="color: rgb(0, 0, 0);">set source_string</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%back_path%\%dmp_source%<br /></span><span style="color: rgb(0, 128, 128);">11</span> <span style="color: rgb(0, 0, 0);">imp %connect% file</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">imp_%source_string% log</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">%output_string%.log FROMUSER</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">portal</span></div><br />Change CHARACTER SET<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);">1</span> <span style="color: rgb(0, 0, 0);">ALTER DATABASE CHARACTER SET UTF8<br /></span><span style="color: rgb(0, 128, 128);">2</span> <span style="color: rgb(0, 0, 0);">NLS_CHARACTERSET<br /></span><span style="color: rgb(0, 128, 128);">3</span> <span style="color: rgb(0, 0, 0);">ZHS16CGB231280<br /></span><span style="color: rgb(0, 128, 128);">4</span> <span style="color: rgb(0, 0, 0);">ZHS16GBK<br /></span><span style="color: rgb(0, 128, 128);">5</span> <span style="color: rgb(0, 0, 0);">AL32UTF8<br /></span><span style="color: rgb(0, 128, 128);">6</span> <span style="color: rgb(0, 0, 0);">UTF8</span></div><br /><br /><img src ="http://www.blogjava.net/rox/aggbug/62164.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rox/" target="_blank">rox</a> 2006-08-07 14:10 <a href="http://www.blogjava.net/rox/archive/2006/08/07/62164.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>超级酷的AJAX收藏</title><link>http://www.blogjava.net/rox/archive/2006/07/11/57595.html</link><dc:creator>rox</dc:creator><author>rox</author><pubDate>Tue, 11 Jul 2006 01:29:00 GMT</pubDate><guid>http://www.blogjava.net/rox/archive/2006/07/11/57595.html</guid><wfw:comment>http://www.blogjava.net/rox/comments/57595.html</wfw:comment><comments>http://www.blogjava.net/rox/archive/2006/07/11/57595.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/rox/comments/commentRss/57595.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rox/services/trackbacks/57595.html</trackback:ping><description><![CDATA[一个可以快速实现网页内窗口的JS：<br />http://prototype-window.xilinus.com/<br /><br />以前引用过，转到这里来，<br />很牛的网页效果，非常接近Windows视觉：<br />http://www.activewidgets.com/<br /><br />一个国内牛人的系列产品：<br />http://www.linb.net/linb/index.html<br /><img src ="http://www.blogjava.net/rox/aggbug/57595.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rox/" target="_blank">rox</a> 2006-07-11 09:29 <a href="http://www.blogjava.net/rox/archive/2006/07/11/57595.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>How to set iframe height 100%  or scrollable at out page?</title><link>http://www.blogjava.net/rox/archive/2006/04/18/41720.html</link><dc:creator>rox</dc:creator><author>rox</author><pubDate>Tue, 18 Apr 2006 11:28:00 GMT</pubDate><guid>http://www.blogjava.net/rox/archive/2006/04/18/41720.html</guid><wfw:comment>http://www.blogjava.net/rox/comments/41720.html</wfw:comment><comments>http://www.blogjava.net/rox/archive/2006/04/18/41720.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/rox/comments/commentRss/41720.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rox/services/trackbacks/41720.html</trackback:ping><description><![CDATA[Searching "iframe height 100" in 谷歌！<br />1、<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">iframe </span><span style="color: rgb(255, 0, 0);">height</span><span style="color: rgb(0, 0, 255);">="100%"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"> </span></div><font color="#ff0000">no work</font><br /><br />2、<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">iframe </span><span style="color: rgb(255, 0, 0);">stlye</span><span style="color: rgb(0, 0, 255);">="height: 100%;"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"> </span></div><font color="#ff0000">no work</font><br /><br />3、CSS<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);">1</span> <span style="color: rgb(0, 0, 0);">/*** html file ***/<br /></span><span style="color: rgb(0, 128, 128);">2</span> <span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">3</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">p </span><span style="color: rgb(255, 0, 0);">class</span><span style="color: rgb(0, 0, 255);">="forum2"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">4</span> <span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">iframe </span><span style="color: rgb(255, 0, 0);">src</span><span style="color: rgb(0, 0, 255);">="http://mydomain.com/phpbb"</span><span style="color: rgb(255, 0, 0);"> title</span><span style="color: rgb(0, 0, 255);">="Forum"</span><span style="color: rgb(255, 0, 0);"> scrolling</span><span style="color: rgb(0, 0, 255);">="auto"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">5</span> <span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">iframe</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">6</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">p</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);">** css file **</span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(128, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 2</span> <span style="color: rgb(128, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 3</span> <span style="color: rgb(128, 0, 0);">..forum2 </span><span style="color: rgb(0, 0, 0);">{</span><span style="color: rgb(255, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 4</span> <span style="color: rgb(255, 0, 0);">    height</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 255);"> 900px</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(255, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 5</span> <span style="color: rgb(255, 0, 0);">    width</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 255);"> 100%</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(255, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 6</span> <span style="color: rgb(255, 0, 0);"></span><span style="color: rgb(0, 0, 0);">}</span><span style="color: rgb(128, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 7</span> <span style="color: rgb(128, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 8</span> <span style="color: rgb(128, 0, 0);">IFRAME </span><span style="color: rgb(0, 0, 0);">{</span><span style="color: rgb(255, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 9</span> <span style="color: rgb(255, 0, 0);">    min-height</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 255);"> 900px</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(255, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">10</span> <span style="color: rgb(255, 0, 0);">    height</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 255);"> 100%</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(255, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">11</span> <span style="color: rgb(255, 0, 0);">    width</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 255);"> 100%</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(255, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">12</span> <span style="color: rgb(255, 0, 0);"></span><span style="color: rgb(0, 0, 0);">}</span></div><br /><br />4、JavaScript<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);"> 1</span> <span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">script language</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">JavaScript</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 2</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);">&lt;!--</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 3</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> resize_iframe()<br /></span><span style="color: rgb(0, 128, 128);"> 4</span> <span style="color: rgb(0, 0, 0);">{<br /></span><span style="color: rgb(0, 128, 128);"> 5</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">resize the iframe according to the size of the</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 6</span> <span style="color: rgb(0, 128, 0);"></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 7</span> <span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">window (all these should be on the same line)</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 8</span> <span style="color: rgb(0, 128, 0);"></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);"> 9</span> <span style="color: rgb(0, 0, 0);">  document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">glu</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).height</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">10</span> <span style="color: rgb(0, 0, 0);">    document.body.offsetHeight</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">11</span> <span style="color: rgb(0, 0, 0);">    document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">glu</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).offsetTop</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">26</span><span style="color: rgb(0, 0, 0);">;<br /></span><span style="color: rgb(0, 128, 128);">12</span> <span style="color: rgb(0, 0, 0);">}<br /></span><span style="color: rgb(0, 128, 128);">13</span> <span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">14</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> this will resize the iframe every</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 128, 128);">15</span> <span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);"> time you change the size of the window.</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 128, 128);">16</span> <span style="color: rgb(0, 128, 0);"></span><span style="color: rgb(0, 0, 0);">window.onresize</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">resize_iframe; <br /></span><span style="color: rgb(0, 128, 128);">17</span> <span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">18</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">Instead of using this you can use: </span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 128, 128);">19</span> <span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">    &lt;BODY onresize="resize_iframe()"&gt;</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 128, 128);">20</span> <span style="color: rgb(0, 128, 0);"></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">21</span> <span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">22</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">--&gt;</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 128, 128);">23</span> <span style="color: rgb(0, 128, 0);"></span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">script</span><span style="color: rgb(0, 0, 0);">&gt;</span></div><br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 128);">1</span> <span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">iframe id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'glu' width</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">100</span><span style="color: rgb(0, 0, 0);">%</span><span style="color: rgb(0, 0, 0);"> onload</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'resize_iframe()'</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 128, 128);">2</span> <span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">iframe</span><span style="color: rgb(0, 0, 0);">&gt;</span></div><br /><br />5、<a href="http://blog.tagzine.com/article.asp?id=116">用CSS构建iframe效果的四种方法</a><br /><br />6、<a href="http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5">W3C关于iframe的描述</a><br /><img src ="http://www.blogjava.net/rox/aggbug/41720.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rox/" target="_blank">rox</a> 2006-04-18 19:28 <a href="http://www.blogjava.net/rox/archive/2006/04/18/41720.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>有意思,原来可以这样用.</title><link>http://www.blogjava.net/rox/archive/2006/02/17/31279.html</link><dc:creator>rox</dc:creator><author>rox</author><pubDate>Fri, 17 Feb 2006 09:39:00 GMT</pubDate><guid>http://www.blogjava.net/rox/archive/2006/02/17/31279.html</guid><wfw:comment>http://www.blogjava.net/rox/comments/31279.html</wfw:comment><comments>http://www.blogjava.net/rox/archive/2006/02/17/31279.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/rox/comments/commentRss/31279.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rox/services/trackbacks/31279.html</trackback:ping><description><![CDATA[好像IE下可以，Firefox不行。<br>&lt;input type="text" name="test" onclick="test.innerText='hello'"&gt;<br><br>
<input name="test" id="test" onclick="test.innerText='hello'" type="text"><img src ="http://www.blogjava.net/rox/aggbug/31279.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rox/" target="_blank">rox</a> 2006-02-17 17:39 <a href="http://www.blogjava.net/rox/archive/2006/02/17/31279.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>