奶头挺立呻吟高潮av全片,成人试看120秒体验区,性欧美极品v,A片高潮抽搐揉捏奶头视频

php語言

PHP應(yīng)用:用XSLT輕松實現(xiàn)樹形折疊導(dǎo)航欄

時間:2024-08-05 16:13:17 php語言 我要投稿
  • 相關(guān)推薦

PHP應(yīng)用:用XSLT輕松實現(xiàn)樹形折疊導(dǎo)航欄

  每一發(fā)奮努力的背后,必有加倍的賞賜。以下百分網(wǎng)小編整理的用XSLT輕松實現(xiàn)樹形折疊導(dǎo)航欄的知識,希望對大家有所幫助,更多信息請關(guān)注應(yīng)屆畢業(yè)生網(wǎng)!
  展開和折疊實在就是顯示或不顯示display:none or block)它與可見與不可見(visible or invisible)是有差別的, 前者不在頁面預(yù)留空間。 這個toggle函數(shù)完成兩個功效, 轉(zhuǎn)變TR本來的Hidden屬性, 使本來不顯示的顯示; 轉(zhuǎn)變IMG的src屬性, 更改圖片。
  toggle.js
  function toggle(id)
  {
  var thisRow = document.all.item(id);
  if (thisRow)
  {
  if (thisRow.getAttribute('Expanded') == 'yes')
  {
  thisRow.setAttribute('Expanded', 'no');
  thisRow.children(0).children(0).children(0).src = 'images/bs.gif';
  var allRows = document.all.tags('TR');
  for (var i=1; i < allRows.length; i )
  {
  var row = allRows[i];
  if (row.getAttribute('AncestorID') == id)
  {
  if (row.getAttribute('Expanded') == 'yes') {
  toggle(row.getAttribute('id'));
  }
  row.className = 'Navigator-Hidden';
  }
  }
  thisRow.className = 'Navigator';
  }
  else
  {
  thisRow.setAttribute('Expanded', 'yes');
  thisRow.children(0).children(0).children(0).src = 'images/bo.gif';
  var allRows = document.all.tags('TR');
  var depth = parseInt(thisRow.getAttribute('Depth'));
  for (var i=1; i < allRows.length; i )
  {
  var row = allRows[i];
  if (row.getAttribute('AncestorID') == id &&
  parseInt(row.getAttribute('Depth')) == depth 1 )
  {
  row.className = 'Navigator';
  }
  }
  }
  }
  }
  到此結(jié)束。
  誠然這個TOC的功效還是最基礎(chǔ)的, 例如我還未做內(nèi)容和目錄的同步,其中有的處所還可以修正, 對xml和xsl文件可以進(jìn)一步瘦身。 不過對一般用戶來講, 這已經(jīng)足夠了。

【PHP應(yīng)用:用XSLT輕松實現(xiàn)樹形折疊導(dǎo)航欄】相關(guān)文章:

PHP實現(xiàn)多線程的方法03-29

PHP中實現(xiàn)頁面跳轉(zhuǎn)12-06

php頁面緩存實現(xiàn)方法11-27

PHP中多態(tài)如何實現(xiàn)03-07

PHP頁面跳轉(zhuǎn)實現(xiàn)技巧12-06

php實現(xiàn)圖片縮放功能類03-31

PHP實現(xiàn)獲取域名的方法小結(jié)06-08

PHP頁面跳轉(zhuǎn)幾種實現(xiàn)技巧12-04

php實現(xiàn)Session存儲到Redis03-02

主站蜘蛛池模板: 怀集县| 兴义市| 白玉县| 军事| 繁峙县| 南雄市| 蓝田县| 顺平县| 琼海市| 广宗县| 峡江县| 西充县| 个旧市| 垣曲县| 正镶白旗| 商城县| 纳雍县| 昌都县| 阿图什市| 广饶县| 滕州市| 太仓市| 宣城市| 玉山县| 新干县| 迁安市| 连南| 金塔县| 柞水县| 桐梓县| 德保县| 新野县| 南昌县| 正镶白旗| 莲花县| 宁蒗| 普定县| 五常市| 石渠县| 辉南县| 萨嘎县|