当前位置:首页 > 设计在线 > 网页设计 > Dreamweaver > 去掉了灰色倒三角的漂亮下拉列表

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

点击次数:22 次 发布日期:2008-11-27 17:01:04 作者:源代码网
源代码网推荐

<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("; "))[1].split(" "))[1]);
源代码网推荐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;

 // initiate
源代码网推荐 this.createTable();
源代码网推荐 this.select.setAttribute("SS", this);
源代码网推荐 if (!this.bOriginalSelect)
源代码网推荐  this.select.onpropertychange = SS_handlePropertychange;
源代码网推荐 SS_VAR.SelectList[this.ssID] = this;
源代码网推荐}
源代码网推荐function SS_display ()
源代码网推荐{
源代码网推荐 document.write("<div id=SS_TempDiv></div> ");
源代码网推荐 document.all.SS_TempDiv.appendChild(this.Table);
源代码网推荐 document.all.SS_TempDiv.removeNode();
源代码网推荐}
源代码网推荐function SS_write (srcHTML, ListMax, bAutoDetect)
源代码网推荐{
源代码网推荐 var oSS = new SS_create(srcHTML, ListMax, bAutoDetect);
源代码网推荐 oSS.display();
源代码网推荐 return oSS;
源代码网推荐}
源代码网推荐function SS_insertOption (value, innerText, idx)
源代码网推荐{
源代码网推荐 var NewOption = document.createElement("OPTION");
源代码网推荐 SS_CreatedElements[SS_CreatedElements.length] = NewOption;
源代码网推荐 this.options.add(NewOption, idx);
源代码网推荐 NewOption.innerText = innerText;
源代码网推荐 NewOption.value = value;

 if (!this.bOriginalSelect)
源代码网推荐  this.createOptionTr(idx);
源代码网推荐 this.syncOptions();
源代码网推荐 this.adjustOptionsDiv();
源代码网推荐 this.syncSelectedIndex();
源代码网推荐}
源代码网推荐function SS_deleteOption (idx)
源代码网推荐{
源代码网推荐 this.options.remove(idx);
源代码网推荐 if (!this.bOriginalSelect)
源代码网推荐  this.OptionsTable.deleteRow(idx);
源代码网推荐 this.syncOptions();
源代码网推荐 this.adjustOptionsDiv();
源代码网推荐 this.syncSelectedIndex();
源代码网推荐}
源代码网推荐function SS_changeOption (idx, value, innerText)
源代码网推荐{
源代码网推荐 this.options[idx].value = value;
源代码网推荐 this.options[idx].innerText = innerText;
源代码网推荐 this.syncOptions();
源代码网推荐 this.syncSelectedIndex();
源代码网推荐}

function SS_cancelEvent (event)
源代码网推荐{
源代码网推荐 event.cancelBubble = true;
源代码网推荐 event.returnValue = false;
源代码网推荐}
源代码网推荐function SS_isThisEventToBeCanceled (event)
源代码网推荐{
源代码网推荐 if ("object" == typeof(event)) {
源代码网推荐  switch (event.type) {
源代码网推荐   case "mousedown":
源代码网推荐    if (!(event.button & 1)) return true;
源代码网推荐    break;
源代码网推荐   case "mouseup":
源代码网推荐    if (!(event.button & 1)) return true;
源代码网推荐    if (SS_ENV.IE_Version >= 5.5 && event.srcElement != this.srcElementOfLastMousedown && this.srcElementOfLastMousedown != null) {
源代码网推荐     this.srcElementOfLastMousedown = null;
源代码网推荐     return true;
源代码网推荐    }
源代码网推荐    break;
源代码网推荐   case "mouseout":
源代码网推荐    if (!(SS_ENV.IE_Version < 5.5 && event.srcElement == this.srcElementOfLastMousedown))
源代码网推荐     return true;
源代码网推荐    break;
源代码网推荐   case "mousemove":
源代码网推荐    if (SS_ENV.IE_Version >= 5.5 && event.srcElement != this.srcElementOfLastMousedown && this.srcElementOfLastMousedown != null)
源代码网推荐     return true;
源代码网推荐    break;
源代码网推荐  }
源代码网推荐 }
源代码网推荐 return false;
源代码网推荐}
源代码网推荐function SS_createElement (html)
源代码网推荐{
源代码网推荐 SS_VAR.DivDummy.insertAdjacentHTML("afterBegin", html);
源代码网推荐 var oEl = SS_VAR.DivDummy.children(0);
源代码网推荐 while (SS_VAR.DivDummy.children.length > 0) {
源代码网推荐  SS_VAR.DivDummy.removeChild(SS_VAR.DivDummy.children(0));
源代码网推荐 }
源代码网推荐 return oEl;
源代码网推荐}
源代码网推荐function SS_blurExcept (except)
源代码网推荐{
源代码网推荐 SS_cancelEvent(window.event);

 except = ("number"==typeof(except)) ? except : -1;

 var bHasToDetachEvent = true;
源代码网推荐 for (var i=0; i < SS_VAR.SelectList.length; i++) {
源代码网推荐  if (-1==except && SS_VAR.SelectList[i].bFocused && SS_VAR.SelectList[i].bExpanded) {
源代码网推荐   SS_VAR.SelectList[i].toggleOptions(false, true);
源代码网推荐   SS_VAR.SelectList[i].toggleTitle(true);
源代码网推荐   bHasToDetachEvent = false;
源代码网推荐  }
源代码网推荐  else if (i!=except) {
源代码网推荐   if (SS_VAR.SelectList[i].bExpanded)
源代码网推荐    SS_VAR.SelectList[i].toggleOptions(false, true);
源代码网推荐   if (SS_VAR.SelectList[i].bReverse)
源代码网推荐    SS_VAR.SelectList[i].toggleTitle(false);
源代码网推荐   SS_VAR.SelectList[i].bFocused = false;
源代码网推荐  }
源代码网推荐 }

 if (SS_VAR.bEventAttached && bHasToDetachEvent) {
源代码网推荐  document.detachEvent("onmousedown", SS_blurExcept);
源代码网推荐  document.detachEvent("ondblclick", SS_blurExcept);
源代码网推荐  SS_VAR.bEventAttached = false;
源代码网推荐 }
源代码网推荐}
源代码网推荐function SS_syncSelectedIndex ()
源代码网推荐{
源代码网推荐 this.selectedIndex = this.select.selectedIndex;

 if (this.bOriginalSelect) return;

 if (this.TitleTable.cells(0).childNodes(0).innerText != this.options[this.selectedIndex].innerText)
源代码网推荐  this.TitleTable.cells(0).childNodes(0).innerText = this.options[this.selectedIndex].innerText;
源代码网推荐 if (this.bExpanded)
源代码网推荐  this.toggleOptions(false);
源代码网推荐}
源代码网推荐function SS_toggleTitle (bReverse)
源代码网推荐{
源代码网推荐 this.bReverse = ("undefined"!=typeof(bReverse)) ? bReverse: (!this.bReverse);
源代码网推荐 this.TitleTable.cells(0).style.backgroundColor = this.bReverse ? SS_ENV.CR.ReverseBackground : "";
源代码网推荐 this.TitleTable.cells(0).style.color = this.bReverse ? SS_ENV.CR.ReverseText : "";
源代码网推荐}
源代码网推荐function SS_toggleOptions (bExpanded, bStrict)
源代码网推荐{
源代码网推荐 if (!bStrict && !this.bFocused) {
源代码网推荐  SS_blurExcept(this.ssID);
源代码网推荐 }
源代码网推荐 this.bExpanded = ("undefined"!=typeof(bExpanded)) ? bExpanded: (!this.bExpanded);
源代码网推荐 if (this.bExpanded) {
源代码网推荐  this.adjustOptionsDiv();
源代码网推荐  this.OptionsDiv.style.display = "block";
源代码网推荐  if (!bStrict) {
源代码网推荐   this.toggleTitle(false);
源代码网推荐   this.handleOverOption(this.selectedIndex);
源代码网推荐  }
源代码网推荐  this.handleOutTitle();
源代码网推荐 }
源代码网推荐 else {
源代码网推荐  this.OptionsDiv.style.display = "none";
源代码网推荐  if (!bStrict) {
源代码网推荐   this.toggleTitle(true);
源代码网推荐  }
源代码网推荐 }
源代码网推荐 if (!bStrict) {
源代码网推荐  this.bFocused = true;

  if (!SS_VAR.bEventAttached) {
源代码网推荐   document.attachEvent("onmousedown", SS_blurExcept);
源代码网推荐   document.attachEvent("ondblclick", SS_blurExcept);
源代码网推荐   SS_VAR.bEventAttached = true;
源代码网推荐  }
源代码网推荐 }
源代码网推荐}
源代码网推荐function SS_handlePropertychange ()
源代码网推荐{
源代码网推荐 if ("propertychange"==window.event.type && "selectedIndex"==window.event.propertyName) {
源代码网推荐  var oSS = window.event.srcElement.SS;
源代码网推荐  oSS.syncSelectedIndex();

  if (null != oSS.select.onchange)
源代码网推荐   oSS.select.onchange();
源代码网推荐 }
源代码网推荐}
源代码网推荐function SS_handleMousewheel (event)
源代码网推荐{
源代码网推荐 var idx = this.selectedIndex;
源代码网推荐 if ("mousewheel"==event.type && this.bFocused && this.bReverse) {
源代码网推荐  for (var i=0; i < event.wheelDelta; i += 120)
源代码网推荐   idx--;
源代码网推荐  for (var i=0; i > event.wheelDelta; i -= 120)
源代码网推荐   idx++;
源代码网推荐 }
源代码网推荐 idx = Math.max(idx, 0);
源代码网推荐 idx = Math.min(idx, this.options.length - 1);
源代码网推荐 this.select.selectedIndex = idx;
源代码网推荐}
源代码网推荐function SS_handleOverTitle ()
源代码网推荐{
源代码网推荐 if (this.bExpanded)
源代码网推荐  return;

 this.TitleTable.style.borderColor = SS_ENV.CR.BorderActive;
源代码网推荐 this.TitleTable.cells(1).style.display = "none";
源代码网推荐 this.TitleTable.cells(2).style.display = "block";
源代码网推荐}
源代码网推荐function SS_handleOutTitle ()
源代码网推荐{
源代码网推荐 this.TitleTable.style.borderColor = SS_ENV.CR.Border;
源代码网推荐 this.TitleTable.cells(2).style.display = "none";
源代码网推荐 this.TitleTable.cells(1).style.display = "block";
源代码网推荐}
源代码网推荐function SS_handleOverOption (idx)
源代码网推荐{
源代码网推荐 for (var i=0; i < this.options.length; i++) {
源代码网推荐  if (i==idx)
源代码网推荐   this.turnOnOption(i);
源代码网推荐  else
源代码网推荐   this.turnOffOption(i);
源代码网推荐 }
源代码网推荐}
源代码网推荐function SS_turnOnOption (idx)
源代码网推荐{
源代码网推荐 this.OptionsTable.cells(idx).style.color = SS_ENV.CR.ReverseText;
源代码网推荐 this.OptionsTable.cells(idx).style.backgroundColor = SS_ENV.CR.ReverseBackground;
源代码网推荐}
源代码网推荐function SS_turnOffOption (idx)
源代码网推荐{
源代码网推荐 this.OptionsTable.cells(idx).style.color = "";
源代码网推荐 this.OptionsTable.cells(idx).style.backgroundColor = "";
源代码网推荐}
源代码网推荐function SS_adjustOptionsDiv ()
源代码网推荐{
源代码网推荐 if (this.bOriginalSelect) return;

 this.OptionsDiv.style.width = this.width;
源代码网推荐 this.OptionsDiv.style.height = Math.min(this.options.length, this.ListMax) * this.OptionHeight + 2;
源代码网推荐 this.OptionsWrapper.style.height = this.options.length * this.OptionHeight;
源代码网推荐 this.OptionsDiv.style.overflowY = (this.options.length > this.ListMax) ? "scroll" : "";

 var top = this.Table.offsetTop;
源代码网推荐 var left = this.Table.offsetLeft;
源代码网推荐 for (var El = this.Table.offsetParent; "BODY"!=El.tagName && "absolute"!=El.style.position && "relative"!=El.style.position; El = El.offsetParent) {
源代码网推荐  if ("TABLE" != El.tagName) {
源代码网推荐   top += El.clientTop;
源代码网推荐   left += El.clientLeft;
源代码网推荐  }
源代码网推荐  top += El.offsetTop;
源代码网推荐  left += El.offsetLeft;
源代码网推荐 }
源代码网推荐 this.OptionsDiv.style.top = (this.bListDown) ? (top + this.height) : (top - parseInt(this.OptionsDiv.style.height));
源代码网推荐 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=""+SS_ENV.ImgPrefix+"/btn_down.gif" border=0 align=absmiddle>";
源代码网推荐 this.TitleTable.cells(2).innerHTML = "<img src=""+SS_ENV.ImgPrefix+"/btn_down_s.gif" border=0 align=absmiddle>";
源代码网推荐 this.TitleTable.cells(3).appendChild(this.select);
源代码网推荐 this.TitleWrapper = document.createElement(""
源代码网推荐  + "<img src=""+SS_ENV.ImgPrefix+"/img_blank.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);""
源代码网推荐  + " onmousedown="SS_VAR.SelectList["+this.ssID+"].pressTitle(window.event)""
源代码网推荐  + " ondblclick="SS_VAR.SelectList["+this.ssID+"].pressTitle(window.event); SS_VAR.SelectList["+this.ssID+"].releaseTitle(window.event);""
源代码网推荐  + " onmouseup="SS_VAR.SelectList["+this.ssID+"].releaseTitle(window.event)""
源代码网推荐  + " onmousewheel="SS_VAR.SelectList["+this.ssID+"].handleMousewheel(window.event)""
源代码网推荐  + " ondragstart="SS_cancelEvent(window.event)""
源代码网推荐  + ">"
源代码网推荐 );
源代码网推荐 SS_CreatedElements[SS_CreatedElements.length] = this.TitleWrapper;
源代码网推荐 this.TitleDiv.appendChild(this.TitleWrapper);
源代码网推荐}
源代码网推荐function SS_createOptionsDiv ()
源代码网推荐{
源代码网推荐 this.OptionsDiv = SS_createElement(""
源代码网推荐  + "<div style=""+SS_ENV.OptionsDivStyle+"""
源代码网推荐  + " onscroll="SS_VAR.SelectList["+this.ssID+"].moveOption(window.event)""
源代码网推荐  + " onmousedown="SS_cancelEvent(window.event)""
源代码网推荐  + ">"
源代码网推荐  + " <table border=0 cellpadding=0 cellspacing=0 width=100% style="table-layout:fixed">"
源代码网推荐  + " </table>"
源代码网推荐  + "</div>"
源代码网推荐 );
源代码网推荐 this.OptionsTable = this.OptionsDiv.childNodes(0);
源代码网推荐 for (var i=0; i < this.options.length; i++) {
源代码网推荐  this.createOptionTr(i);
源代码网推荐 }
源代码网推荐 this.syncOptions();
源代码网推荐 this.OptionsWrapper = document.createElement(""
源代码网推荐  + "<img src=""+SS_ENV.ImgPrefix+"/img_blank.gif""
源代码网推荐  + " style="position:absolute; top:0; left:0; width:100%;""
源代码网推荐  + " onmousedown="SS_VAR.SelectList["+this.ssID+"].pressOption(window.event)""
源代码网推荐  + " onmousemove="SS_VAR.SelectList["+this.ssID+"].moveOption(window.event)""
源代码网推荐  + " onmouseup="SS_VAR.SelectList["+this.ssID+"].releaseOption(window.event)""
源代码网推荐  + " onmouseout="SS_VAR.SelectList["+this.ssID+"].releaseOption(window.event)""
源代码网推荐  + " ondragstart="SS_cancelEvent(window.event)""
源代码网推荐  + ">"
源代码网推荐 );
源代码网推荐 SS_CreatedElements[SS_CreatedElements.length] = this.OptionsWrapper;
源代码网推荐 this.OptionsDiv.appendChild(this.OptionsWrapper);
源代码网推荐}
源代码网推荐function SS_createOptionTr (idx)
源代码网推荐{
源代码网推荐 idx = ("undefined"!=typeof(idx)) ? idx : this.options.length - 1;
源代码网推荐 var OptionTr = this.OptionsTable.insertRow(-1);
源代码网推荐 var OptionTd = document.createElement("<td height="+this.OptionHeight+"></td>");
源代码网推荐 SS_CreatedElements[SS_CreatedElements.length] = this.OptionsTd;
源代码网推荐 OptionTd.appendChild(document.createElement("<nobr style=""+SS_ENV.OptionNobrStyle+""></nobr>"));
源代码网推荐 OptionTr.appendChild(OptionTd);
源代码网推荐}
源代码网推荐</script>
源代码网推荐</head>
源代码网推荐<body><script>SS_write("<select style="width:60;height:18px;font-size:12px" name=star> "
源代码网推荐   +" <option value="" selected>不限</option> "
源代码网推荐+"<option value="水瓶座">水瓶座</option>"
源代码网推荐+"<option value="双鱼座">双鱼座</option>"
源代码网推荐+"<option value="白羊座">白羊座</option>"
源代码网推荐+"<option value="金牛座">金牛座</option>"
源代码网推荐+"<option value="双子座">双子座</option>"
源代码网推荐+"<option value="巨蟹座">巨蟹座</option>"
源代码网推荐+"<option value="狮子座">狮子座</option>"
源代码网推荐+"<option value="处女座">处女座</option>"
源代码网推荐+"<option value="天秤座">天秤座</option>"
源代码网推荐+"<option value="天蝎座">天蝎座</option>"
源代码网推荐+"<option value="射手座">射手座</option>"
源代码网推荐+"<option value="摩羯座">摩羯座</option>"
源代码网推荐   +"</select> ");
源代码网推荐</script><br>
源代码网推荐<script>SS_write("<select name="province" style="width:60;height:18px;font-size:12px"> "
源代码网推荐+"<option value="" selected>都行</option> "
源代码网推荐+"<option value="北京">北京</option>"
源代码网推荐+"<option value="上海">上海</option>"
源代码网推荐+"<option value="天津">天津</option>"
源代码网推荐+"<option value="重庆">重庆</option>"
源代码网推荐+"<option value="安徽">安徽</option>"
源代码网推荐+"<option value="福建">福建</option>"
源代码网推荐+"<option value="甘肃">甘肃</option>"
源代码网推荐+"<option value="广东">广东</option>"
源代码网推荐+"<option value="广西">广西</option>"
源代码网推荐+"<option value="贵州">贵州</option>"
源代码网推荐+"<option value="海南">海南</option>"
源代码网推荐+"<option value="河北">河北</option>"
源代码网推荐+"<option value="黑龙江">黑龙江</option>"
源代码网推荐+"<option value="河南">河南</option>"
源代码网推荐+"<option value="湖北">湖北</option>"
源代码网推荐+"<option value="湖南">湖南</option>"
源代码网推荐+"<option value="内蒙古">内蒙古</option>"
源代码网推荐+"<option value="江苏">江苏</option>"
源代码网推荐+"<option value="江西">江西</option>"
源代码网推荐+"<option value="吉林">吉林</option>"
源代码网推荐+"<option value="辽宁">辽宁</option>"
源代码网推荐+"<option value="宁夏">宁夏</option>"
源代码网推荐+"<option value="青海">青海</option>"
源代码网推荐+"<option value="山西">山西</option>"
源代码网推荐+"<option value="陕西">陕西</option>"
源代码网推荐+"<option value="山东">山东</option>"
源代码网推荐+"<option value="四川">四川</option>"
源代码网推荐+"<option value="江西">江西</option>"
源代码网推荐+"<option value="西藏">西藏</option>"
源代码网推荐+"<option value="新疆">新疆</option>"
源代码网推荐+"<option value="云南">云南</option>"
源代码网推荐+"<option value="浙江">浙江</option>"
源代码网推荐+"<option value="其它">其它</option>"
源代码网推荐   +"</select> ",8); </script>
源代码网推荐</body>
源代码网推荐</html>


源代码网供稿.
网友评论 (0)
会员中心
设计在线
本站推荐
设计在线之精华