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

2008-02-23 06:10:53来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折


  


  <HTML>

  <HEAD><title>漂亮的下拉框</title>

  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">

  <SCRIPT>

  // ViaSelect Environment Constants

  var SS_ENV = new Object();

  SS_ENV.IE_Version = new Number(((window.navigator.appVersion.split('; ')).split(' ')));

  SS_ENV.CR = new Object();

  SS_ENV.CR.ReverseBackground = '#E2519C';

  SS_ENV.CR.ReverseText = 'white';

  SS_ENV.CR.Border = '#D55C9A';

  SS_ENV.CR.BorderActive = '#FF6CB7';

  SS_ENV.ImgPrefix = 'http://www.viafriend.com/images';

  SS_ENV.DefaultHeight = 20;

  SS_ENV.ButtonWidth = 13;

  SS_ENV.OptionsDivStyle = ''

   ' display:none;'

   ' z-index:10;'

   ' position:absolute;'

   ' border:1 solid ' SS_ENV.CR.Border ';'

   ' background-color:white;'

   ' scrollbar-face-color:#D4D0C8;'

   ' scrollbar-shadow-color:white;'

   ' scrollbar-highlight-color:#F6F5F4;'

   ' scrollbar-3dlight-color:white'

   ' scrollbar-darkshadow-color:#86837E;'

   ' scrollbar-track-color:#F6F5F4;'

   ' scrollbar-arrow-color:#86837E;';

  SS_ENV.OptionNobrStyle = ''

   ' font-size:12px;'

   ' font-family:奔覆;';

  // SaySelect Variables

  var SS_VAR = new Object();

  SS_VAR.DivDummy = document.createElement("DIV");

  SS_VAR.SelectList = new Array();

  SS_VAR.bEventAttached = false;

  var SS_CreatedElements = new Object();

  function unloadObjects()

  {

  try {

   if (SS_VAR && SS_VAR.SelectList)

   {

   for (key in SS_VAR.SelectList)

   {

  if (SS_VAR.SelectList[key])

  {

  try {

   SS_VAR.SelectList[key].select.setAttribute('SS', 0);

  } catch (e) {};

  delete SS_VAR.SelectList[key];

  }

   }

   }

  } catch (e) {};

  }

  attachEvent("onunload", unloadObjects);

  function SS_create (srcHTML, ListMax, bAutoDetect)

  {

  // property

  this.ssID = SS_VAR.SelectList.length;

  this.bOriginalSelect = (bAutoDetect && SS_ENV.IE_Version < 5.5);

  this.select = SS_createElement(srcHTML);

  this.selectedIndex = this.select.selectedIndex;

  this.options = this.select.options;

  this.width = parseInt(this.select.style.width);

  this.height = (this.select.style.height) ? parseInt(this.select.style.height) : SS_ENV.DefaultHeight;

  this.OptionHeight = this.height - 4;

  this.bListDown = (ListMax && '-'==ListMax.toString().substr(0, 1)) ? false : true;

  this.ListMax = (!isNaN(parseInt(ListMax))) ? Math.abs(ListMax) : 100;

  this.Table;

  this.TitleDiv;

  this.TitleTable;

  this.TitleWrapper;

  this.OptionsDiv;

  this.OptionsWrapper;

  this.OptionsTable;

  this.bFocused = false;

  this.bExpanded = false;

  this.bReverse = false;

  // private method

  this.isThisEventToBeCanceled = SS_isThisEventToBeCanceled;

  this.toggleTitle = SS_toggleTitle;

  this.syncSelectedIndex = SS_syncSelectedIndex;

  this.toggleOptions = SS_toggleOptions;

  this.turnOnOption = SS_turnOnOption;

  this.turnOffOption = SS_turnOffOption;

  this.handleMousewheel = SS_handleMousewheel;

  this.handleOverTitle = SS_handleOverTitle;

  this.handleOutTitle = SS_handleOutTitle;

  this.handleOverOption = SS_handleOverOption;

  this.createTable = SS_createTable;

  this.createTitleDiv = SS_createTitleDiv;

  this.createOptionsDiv = SS_createOptionsDiv;

  this.createOptionTr = SS_createOptionTr;

  this.adjustOptionsDiv = SS_adjustOptionsDiv;

  this.syncOptions = SS_syncOptions;

  this.pressOption = SS_pressOption;

  this.moveOption = SS_moveOption;

  this.releaseOption = SS_releaseOption;

  this.pressTitle = SS_pressTitle;

  this.releaseTitle = SS_releaseTitle;

  // public method

  this.display = SS_display;

  this.insertOption = SS_insertOption;

  this.deleteOption = SS_deleteOption;

  this.changeOption = SS_changeOption;

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇: DreamweaverMX创造网页鼠标样式

下一篇: 更加便捷实用!巧妙复制主页内容另一妙法