[网网秀]Javascript代码碎片四(导航{tx}) - 无边尘事皆忘却,只有雪花 ...
[网网秀]Javascript代码碎片四(导航{tx}) [原创 2010-03-20 18:35:52]   
 

4-1  折叠展开收缩效果的栏目分类导航

 

<table width="200" height="250" border="0" align="center" cellpadding="0" cellspacing="0">

    <tr>

       <td height="38">

       <img height="38" src="images/leftlist_head.jpg" width="200" /></td>

    </tr>

    <tr>

       <td align="center" valign="top" background="images/leftlist_bg.jpg">

       <script language="javascript" id="clientEventHandlersJS">

<!--

var number=8;

 

function LMYC() {

var lbmc;

//var treePic;

    for (i=1;i<=number;i++) {

        lbmc = eval('LM' + i);

        //treePic = eval('treePic'+i);

        //treePic.src = 'images/file.gif';

        lbmc.style.display = 'none';

    }

}

 

function ShowFLT(i) {

    lbmc = eval('LM' + i);

    //treePic = eval('treePic' + i)

    if (lbmc.style.display == 'none') {

        LMYC();

        //treePic.src = 'images/nofile.gif';

        lbmc.style.display = '';

    }

    else {

        //treePic.src = 'images/file.gif';

        lbmc.style.display = 'none';

    }

}

//-->

      </script>

       <table cellspacing="0" cellpadding="0" width="88%" border="0">

           <tr>

              <td style="PADDING-LEFT: 20px" background height="23">

              <img height="9" src="images/bit05.gif" width="8" align="absMiddle">

              <a onclick="javascript:ShowFLT(1)" href="javascript:void(null)">

              文管产品</a> </td>

           </tr>

           <tr id="LM1" style="DISPLAY: none">

              <td>

              <table cellspacing="0" cellpadding="0" width="{bfb}" border="0">

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="文件夹" href="http://www.jscode.cn" target="_parent">

                     文件夹</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="资料册" href="http://www.jscode.cn" target="_parent">

                     资料册</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="档案盒" href="http://www.jscode.cn" target="_parent">

                     档案盒</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="文件盒" href="http://www.jscode.cn" target="_parent">

                     文件盒</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="文件柜" href="http://www.jscode.cn" target="_parent">

                     文件柜</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="公文包" href="http://www.jscode.cn" target="_parent">

                     公文包</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

              </table>

              </td>

           </tr>

           <tr>

              <td style="PADDING-LEFT: 20px" background height="23">

              <img height="9" src="images/bit05.gif" width="8" align="absMiddle">

              <a onclick="javascript:ShowFLT(2)" href="javascript:void(null)">

              桌面文具</a> </td>

           </tr>

           <tr id="LM2" style="DISPLAY: none">

              <td>

              <table cellspacing="0" cellpadding="0" width="{bfb}" border="0">

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="削笔机" href="http://www.jscode.cn" target="_parent">

                     削笔机</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="订书机" href="http://www.jscode.cn" target="_parent">

                     订书机</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

              </table>

              </td>

           </tr>

           <tr>

              <td style="PADDING-LEFT: 20px" background height="23">

              <img height="9" src="images/bit05.gif" width="8" align="absMiddle">

              <a onclick="javascript:ShowFLT(3)" href="javascript:void(null)">

              商用机器</a> </td>

           </tr>

           <tr id="LM3" style="DISPLAY: none">

              <td>

              <table cellspacing="0" cellpadding="0" width="{bfb}" border="0">

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="碎纸机" href="http://www.jscode.cn" target="_parent">

                     碎纸机</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="切纸刀" href="http://www.jscode.cn" target="_parent">

                     切纸刀</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

              </table>

              </td>

           </tr>

           <tr>

              <td style="PADDING-LEFT: 20px" background height="23">

              <img height="9" src="images/bit05.gif" width="8" align="absMiddle">

              <a onclick="javascript:ShowFLT(4)" href="javascript:void(null)">

              书写工具</a> </td>

           </tr>

           <tr id="LM4">

              <td>

              <table cellspacing="0" cellpadding="0" width="{bfb}" border="0">

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="中性笔" href="http://www.jscode.cn" target="_parent">

                     中性笔</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="圆珠笔" href="http://www.jscode.cn" target="_parent">

                     圆珠笔</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="记号笔" href="http://www.jscode.cn" target="_parent">

                     记号笔</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="白板笔" href="http://www.jscode.cn" target="_parent">

                     白板笔</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

              </table>

              </td>

           </tr>

           <tr>

              <td style="PADDING-LEFT: 20px" background height="23">

              <img height="9" src="images/bit05.gif" width="8" align="absMiddle">

              <a onclick="javascript:ShowFLT(5)" href="javascript:void(null)">

              纸制品</a> </td>

           </tr>

           <tr id="LM5" style="DISPLAY: none">

              <td>

              <table cellspacing="0" cellpadding="0" width="{bfb}" border="0">

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="传真纸" href="http://jscode.cn" target="_parent">

                     传真纸</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="复印纸" href="http://www.jscode.cn" target="_parent">

                     复印纸</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="复写纸" href="http://www.jscode.cn" target="_parent">

                     复写纸</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="便条纸" href="http://www.jscode.cn" target="_parent">

                     便条纸</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="百事贴" href="http://www.jscode.cn" target="_parent">

                     百事贴</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="皮面笔记本" href="http://www.jscode.cn" target="_parent">

                     皮面笔记本</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

              </table>

              </td>

           </tr>

           <tr>

              <td style="PADDING-LEFT: 20px" background height="23">

              <img height="9" src="images/bit05.gif" width="8" align="absMiddle">

              <a onclick="javascript:ShowFLT(6)" href="javascript:void(null)">

              办公电子</a> </td>

           </tr>

           <tr id="LM6" style="DISPLAY: none">

              <td>

              <table cellspacing="0" cellpadding="0" width="{bfb}" border="0">

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="计算器" href="http://www.jscode.cn" target="_parent">

                     计算器</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

              </table>

              </td>

           </tr>

           <tr>

              <td style="PADDING-LEFT: 20px" background height="23">

              <img height="9" src="images/bit05.gif" width="8" align="absMiddle">

              <a onclick="javascript:ShowFLT(7)" href="javascript:void(null)">

              IT周边产品</a> </td>

           </tr>

           <tr id="LM7" style="DISPLAY: none">

              <td>

              <table cellspacing="0" cellpadding="0" width="{bfb}" border="0">

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="阅读架" href="http://www.jscode.cn" target="_parent">

                     阅读架</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="CD保护" href="http://www.jscode.cn" target="_parent">

                     CD保护</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                      <a title="光盘盒" href="http://www.jscode.cn" target="_parent">

                     光盘盒</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

              </table>

              </td>

           </tr>

           <tr>

              <td style="PADDING-LEFT: 20px" background height="23">

               <img height="9" src="images/bit05.gif" width="8" align="absMiddle">

              <a onclick="javascript:ShowFLT(8)" href="javascript:void(null)">

              办公生活用品</a> </td>

           </tr>

           <tr id="LM8" style="DISPLAY: none">

              <td>

              <table cellspacing="0" cellpadding="0" width="{bfb}" border="0">

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="清洁桶" href="http://www.jscode.cn" target="_parent">

                     清洁桶</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="白板" href="http://www.jscode.cn" target="_parent">

                     白板</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="网状文具" href="http://www.jscode.cn" target="_parent">

                     网状文具</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="封箱器" href="http://www.jscode.cn" target="_parent">

                     封箱器</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

                  <tr>

                     <td style="PADDING-LEFT: 40px" height="23">

                     <img height="7" src="images/bit06.gif" width="8" align="absMiddle">

                     <a title="购物袋" href="http://www.jscode.cn" target="_parent">

                     购物袋</a> </td>

                  </tr>

                  <tr>

                     <td background height="3"></td>

                  </tr>

              </table>

              </td>

           </tr>

       </table>

       </td>

    </tr>

    <tr>

       <td height="17">

       <img height="17" src="images/leftlist_bottom.jpg" width="200" /></td>

    </tr>

</table>

 

 

4-2  腾讯QQ网页在线客服,隐藏在网页一侧的隐现效果

 

<script language="JavaScript1.2">

 

function move(x, y) {

if (document.all) {

object1.style.pixelLeft += x;

object1.style.pixelTop  += y;}

else

if (document.layers) {

document.object1.left += x;

document.object1.top  += y;

}};

 

function position() {

document.object1.left += -200;

document.object1.top  += 0;

document.object1.visibility = "show"

};

 

function makeStatic() {

if (document.all) {object1.style.pixelTop=document.body.scrollTop+100}

else {eval('document.object1.top=eval(window.pageYOffset+20)');}

setTimeout("makeStatic()",0);}

 

</script>

<!-- 左隐藏菜单结束 -->

<!-- 左隐藏菜单BIG -->

<layer class="NS" onmouseover="move(580,0)" onmouseout="move(-580, 0)" top="20" visibility="hide" name="object1" left="0">

    <script language="JavaScript1.2">

if (document.all)

document.write('<DIV ID="object1" style="Position : Absolute ;Left : -125px ;Top : 20px ;Width : 0px ;Z-Index : 20">')

</script>

<table onmouseover="move(120,0)" onmouseout="move(-120, 0)" cellspacing="1" cellpadding="2" border="0">

       <tr>

           <td><table cellspacing="0" cellpadding="0" width="118" align="center" border="0">

              <tr>

                  <td>&nbsp;</td>

              </tr>

              <tr>

                  <td>

                  <table cellspacing="0" cellpadding="0" width="118" align="left" border="0">

                     <tr>

                         <td background="images/servicepic_02.jpg">

                         <img height="25" alt="" src="images/servicepic_02.jpg" width="14" border="0" name="servicepic_02"></td>

                         <td align="middle" width="89" bgcolor="#f8f6f7" height="25">

                         <a target="blank" href="tencent://message/?uin=615050000&Site=网页{tx}观止&Menu=yes"></a></td>

                         <td background="images/servicepic_04.jpg">&nbsp;</td>

                    </tr>

                  </table>

                  </td>

              </tr>

              <tr>

                  <td>&nbsp;</td>

             </tr>

              <tr>

                  <td>

                  <table cellspacing="0" cellpadding="0" width="118" align="left" border="0">

                     <tr>

                         <td background="images/servicepic_06.jpg">&nbsp;</td>

                         <td align="middle" width="89" bgcolor="#f8f6f7" height="24">&nbsp;</td>

                       <td background="images/servicepic_08.jpg">&nbsp;</td>

                    </tr>

                     <tr>

                         <td background="images/servicepic_06.jpg"> </td>

                         <td align="middle" bgcolor="#f8f6f7" height="35">&nbsp;</td>

                       <td background="images/servicepic_08.jpg"> </td>

                     </tr>

                  </table>

                  </td>

              </tr>

              <tr>

                  <td>&nbsp;</td>

              </tr>

           </table>

           </td>

           <td valign="top" align="middle" width="12" rowspan="100">&nbsp;</td>

       </tr>

       <script language="JavaScript1.2">

<!--

if (document.all||document.layers)

makeStatic();

 

if (document.layers) {

window.onload=position;

}

 

var sitems=new Array();

var sitemlinks=new Array();

 

function hl(n) {

n.className='hl'}

function n(h) {

h.className='n'}

//--></script>

    </table>

    <script language="JavaScript1.2">

if (document.all)

document.write('<\/DIV>')

</script>

</layer>

<a target="blank" href="tencent://message/?uin=615050000&Site=网页{tx}观止&Menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=1:615050000:10" alt="点击这里给我发消息"></a>

<!-- 左隐藏菜单END -->

 

 

4-3 左右交叉合并导航效果

 

<script>

 

<!-- Beginning of JavaScript -

 

// Edit your messages. You can add as many messages a you like.

 

var message = new Array()

 

message[0]="欢迎光临国内{zd0}的新闻站点---新浪网!"

 

message[1]="欢迎光临国内{zd0}的综合性站点---网易!"

 

message[2]="欢迎光临国内{zd0}的搜索引擎站点---搜狐!"

 

message[3]="欢迎光临国内{zd0}的游戏站点---第九城市!"

 

 

 

// The links of your messages. Be sure that you configure as many links as messages.

 

// If don't want to link your messages write '#' instead of an URL (see last sample).

 

var messageurl = new Array()

 

messageurl[0]="http://../www.sina.com.cn/default.htm"

 

messageurl[1]="http://../www.163.com/default.htm"

 

messageurl[2]="http://../www.sohu.com/default.htm"

 

messageurl[3]="http://../www.the9.com/default.htm"

 

var messagetarget=new Array()

 

messagetarget[0]="_blank"

 

messagetarget[1]="_blank"

 

messagetarget[2]="_blank"

 

messagetarget[3]="_blank"

 

// The width of your textbox (pixels).

 

// Be sure that 'textwidth' is slightly bigger than the 'width' configured inside the stylesheet

 

var textwidth=260

 

 

 

// The height of your textbox (pixels)

 

// Be sure that 'textheight' is slightly bigger than the 'height' configured inside the stylesheet

 

var textheight=75

 

 

 

// Final horizontal position of the textbox: distance to the left margin of the window (pixels)

 

// IMPORTANT:

 

// if you want to center the textbox in the middle of the browser-window then write -1.

 

// If you want to place the textbox on an absolute position

 

// then write the number (for instance 223).

 

var x_finalpos=-1

 

 

 

// Final vertical position of the textbox: distance to the top margin of the window

 

var y_finalpos=20

 

 

 

// Total number of textslices

 

var textslices=10

 

 

 

// Standstill of textbox (seconds)

 

var pausetext=5

 

 

 

// Speed of horizontal gliding

 

var step=10

 

var pause=40

 

 

 

// Do not edit the variables below this line

 

var x_rightspans=0

 

var x_leftspans=0

 

var marginright

 

var marginleft

 

var height_slice=Math.floor(textheight/textslices)

 

var cliptop=0

 

var clipbottom=cliptop+height_slice

 

var clipleft=0

 

var clipright=textwidth

 

var spannummer=0

 

var spannrbefore=0

 

var i_message=0

 

pausetext=pausetext*1000

 

 

 

function initiate() {

 

if (document.all) {

 

if (x_finalpos==-1) {

 

x_finalpos=Math.floor(document.body.clientWidth/2)-Math.floor(textwidth/2)

 

}

 

changemessage()

 

}

 

}

 

 

 

function changemessage() {

 

for (i=0;i<=textslices-1;i++) {

 

var thisspan=eval("span"+i)

 

thisspan.innerHTML="<a href='"+messageurl[i_message]+"' target='blank'>"+message[i_message]+"</a>"

 

}

 

gostartposition()

 

}

 

 

 

function gostartposition() {

 

for (i=0;i<=textslices-1;i+=2) {

 

var thisspan=eval("document.all.span"+i+".style")

 

thisspan.posLeft=marginright

 

}

 

for (i=1;i<=textslices-1;i+=2) {

 

var thisspan=eval("document.all.span"+i+".style")

 

thisspan.posLeft=marginleft

 

}

 

moveslices_IE()

 

}

 

 

 

 

 

function moveslices_IE() {

 

if (x_rightspans==0 || x_leftspans==0) {

 

if (x_rightspans==0) {

 

for (i=0;i<=textslices-1;i+=2) {

 

var thisspan=eval("document.all.span"+i+".style")

 

thisspan.posLeft-=step

 

}

 

if (thisspan.posLeft<=x_finalpos) {

 

x_rightspans=1

 

for (i=0;i<=textslices-1;i+=2) {

 

var thisspan=eval("document.all.span"+i+".style")

 

thisspan.posLeft=x_finalpos

 

}

 

}

 

}

 

if (x_leftspans==0) {

 

for (i=1;i<=textslices-1;i+=2) {

 

var thisspan=eval("document.all.span"+i+".style")

 

thisspan.posLeft+=step

 

}

 

if (thisspan.posLeft>=x_finalpos) {

 

x_leftspans=1

 

for (i=1;i<=textslices-1;i+=2) {

 

var thisspan=eval("document.all.span"+i+".style")

 

thisspan.posLeft=x_finalpos

 

}

 

}

 

}

 

var timer=setTimeout("moveslices_IE()",pause)

 

}

 

else {

 

clearTimeout(timer)

 

x_rightspans=0

 

x_leftspans=0

 

i_message++

 

if (i_message > message.length-1) {

 

i_message=0

 

}

 

var timer=setTimeout("changemessage()",pausetext)

 

}

 

}

 

 

 

// - End of JavaScript - -->

 

</script>

 

<style>

 

A {

 

color : red;

 

text-decoration : none

 

}

 

A:hover {

 

color : white;

 

text-decoration : none

 

}

 

.textbox {

 

font-size : 18;

 

font-family : Verdana;

 

font-style : normal;

 

color : red;

 

border-width : 4;

 

text-align : center;

 

background-color : blue;

 

border-style : solid;

 

padding : 5;

 

height : 65;

 

width : 250;

 

overflow : clip;

 

font-weight : bold;

 

}

 

</style>

 

<script>

 

<!-- Beginning of JavaScript -

 

// Do not edit this script-block

 

if (document.all) {

 

for (i=0;i<=textslices-1;i+=2) {

 

marginright=document.body.clientWidth+50

 

document.write("<span class='textbox' id='span"+i+"' style='position:absolute;visibility:visible; left:"+marginright+"px;top:"+y_finalpos+"px;clip:rect("+cliptop+"px "+clipright+"px "+clipbottom+"px "+clipleft+"px)'>")

 

document.write("</span>")

 

cliptop+=2*height_slice

 

clipbottom+=2*height_slice

 

}

 

cliptop=height_slice

 

clipbottom=2*height_slice

 

for (i=1;i<=textslices-1;i+=2) {

 

marginleft=-textwidth-50

 

document.write("<span class='textbox' id='span"+i+"' style='position:absolute;visibility:visible; left:"+marginleft+"px;top:"+y_finalpos+"px;clip:rect("+cliptop+"px "+clipright+"px "+clipbottom+"px "+clipleft+"px)'>")

 

document.write("</span>")

 

cliptop+=2*height_slice

 

clipbottom+=2*height_slice

 

}

 

}

 

// - End of JavaScript - -->

 

</script>

 

<div style="position: absolute; top: -25; left: 9; width: 717; height: 19">

 

</div>

 

郑重声明:资讯 【[网网秀]Javascript代码碎片四(导航{tx}) - 无边尘事皆忘却,只有雪花 ...】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【在线投诉】,我们审核后将会尽快处理。
—— 相关资讯 ——