手机站
网通分站
电信主站
密 码:
用户名:
当前位置 : 主页>网页制作>Dreamweaver>列表

去掉了灰色倒三角的漂亮下拉列表

来源:互联网 作者:west263.com 时间:2008-02-23
西部数码-全国虚拟主机10强!40余项虚拟主机管理功能,全国领先!双线多线虚拟主机南北访问畅通无阻!免费赠送企业邮局,.CN域名,自助建站480元起,免费试用7天,满意再付款! P4主机租用799元/月.月付免压金!


  this.OptionsDiv.style.left = left;

  this.TitleWrapper.style.top = 0;

  this.TitleWrapper.style.left = 0;

  }

  function SS_syncOptions ()

  {

  if (this.bOriginalSelect) return;

  for (var i=0; i < this.options.length; i ) {

   this.OptionsTable.cells(i).setAttribute('index', i);

   if (this.OptionsTable.cells(i).childNodes(0).innerText != this.options[i].innerText)

   this.OptionsTable.cells(i).childNodes(0).innerText = this.options[i].innerText;

  }

  }

  function SS_pressTitle (event)

  {

  SS_cancelEvent(event);

  this.srcElementOfLastMousedown = event.srcElement;

  this.toggleOptions();

  }

  function SS_releaseTitle (event)

  {

  SS_cancelEvent(event);

  if (this.isThisEventToBeCanceled(event)) return;

  this.srcElementOfLastMousedown = null;

  }

  function SS_pressOption (event)

  {

  SS_cancelEvent(event);

  this.srcElementOfLastMousedown = event.srcElement;

  }

  function SS_moveOption (event)

  {

  SS_cancelEvent(event);

  if (this.isThisEventToBeCanceled(event)) return;

  if (!(event.offsetX >= 0 && event.offsetX <= this.OptionsTable.offsetWidth)) return;

  this.handleOverOption(Math.floor(event.offsetY / this.OptionHeight));

  }

  function SS_releaseOption (event)

  {

  SS_cancelEvent(event);

  if (this.isThisEventToBeCanceled(event)) return;

  this.srcElementOfLastMousedown = null;

  if (event.offsetX >= 0 && event.offsetX <= this.OptionsTable.offsetWidth) {

   this.toggleOptions(false);

   this.select.selectedIndex = Math.floor(event.offsetY / this.OptionHeight);

  }

  }

  function SS_createTable ()

  {

  this.Table = SS_createElement(""

   "<table border=0 cellpadding=0 cellspacing=0 style='table-layout:fixed; cursor:default'>"

   "<tr><td></td></tr>"

   "</table>"

  );

  if (!isNaN(this.width))

   this.Table.style.width = this.width;

  this.Table.style.height = this.height;

  if (!this.bOriginalSelect) {

   this.createTitleDiv();

   this.createOptionsDiv();

   this.Table.cells(0).appendChild(this.TitleDiv);

   this.Table.cells(0).appendChild(this.OptionsDiv);

  }

  else {

   this.Table.cells(0).appendChild(this.select);

  }

  }

  function SS_createTitleDiv ()

  {

  this.TitleDiv = SS_createElement(""

   "<div style='position:relative; top:0; left:0;'>"

   " <table border=0 cellpadding=0 cellspacing=1"

   " height=" this.height

   " bgcolor=white"

   " style='table-layout:fixed; border:1 solid " SS_ENV.CR.Border ";'"

   " onmouseover='SS_VAR.SelectList[" this.ssID "].adjustOptionsDiv()'"

   " >"

   " <tr>"

   " <td><nobr style='text-oveflow:hidden;" SS_ENV.OptionNobrStyle "'></nobr></td>"

   " <td width=" SS_ENV.ButtonWidth " align=center style='word-wrap:normal'></td>"

   " <td style='display:none' width=" SS_ENV.ButtonWidth " align=center style='word-wrap:normal'></td>"

   " <td style='display:none'></td>"

   " </tr>"

   " </table>"

   "</div>"

  );

  this.TitleTable = this.TitleDiv.childNodes(0);

  this.TitleTable.cells(0).childNodes(0).innerText = this.options[this.selectedIndex].innerText;

  this.TitleTable.cells(1).innerHTML = "<img src="/Files/BeyondPic/chinazcj/2005-11/20/05112015561126430.gif" border=0 align=absmiddle>";

  this.TitleTable.cells(2).innerHTML = "<img src="/Files/BeyondPic/chinazcj/2005-11/20/05112015561169934.gif" border=0 align=absmiddle>";

  this.TitleTable.cells(3).appendChild(this.select);

  this.TitleWrapper = document.createElement(""

   "<img src="/Files/BeyondPic/chinazcj/2005-11/20/05112015561259287.gif""

   " style='position:absolute; top:0; left:0; z-index:2; width:100%; height:" this.height ";'"

   " onmouseover='SS_VAR.SelectList[" this.ssID "].handleOverTitle()'"

   " onmouseout='SS_VAR.SelectList[" this.ssID "].handleOutTitle(); SS_VAR.SelectList[" this.ssID "].releaseTitle(window.event);'"

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!