快捷搜索:  as  2018  FtCWSyGV  С˵  test  xxx  Ψһ  w3viyKQx

希尔顿娱乐游戏平台网址_去掉了灰色倒三角的漂亮下拉列表



运行代码框

漂亮的下拉框

// 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;'

+ ' positi希尔顿娱乐游戏平台网址on: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 && 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 && 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; ievent.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; ithis.ListMax) ? 'scroll' : '';

var top = this.Table.of希尔顿娱乐游戏平台网址fsetTop;

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 = 0 && event.offsetX = 0 && event.offsetX "

+ "

"

+ ""

);

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(""

+ "

"

+ " "

+ "

"

+ "

"

+ "

"

+ "

"

+ "

"

+ " "

+ " "

+ "

"

);

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

this.TitleTable.cells(0).childNodes(0).innerText = this.options[th希尔顿娱乐游戏平台网址is.selectedIndex].innerText;

this.TitleTable.cells(1).innerHTML = "";

this.TitleTable.cells(2).innerHTML = "";

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

this.TitleWrapper = document.createElement(""

+ ""

);

SS_CreatedElements[SS_CreatedElements.length] = this.TitleWrapper;

this.TitleDiv.appendChi希尔顿娱乐游戏平台网址ld(this.TitleWrapper);

}

function SS_createOptionsDiv ()

{

this.OptionsDiv = SS_createElement(""

+ "

+ " onscroll='SS_VAR.SelectList["+this.ssID+"].moveOption(window.event)'"

+ " onmousedown='SS_cancelEvent(window.event)'"

+ ">"

+ " "

+ " "

+ "

"

);

this.OptionsTable = this.OptionsDiv.childNodes(0);

for (var i=0; i ");

SS_CreatedElements[SS_CreatedElements.length] = this.OptionsTd;

OptionTd.appendChild(document.createElement(""));

OptionTr.appendChild(OptionTd);

}

[Ctrl+A 整个选择 提示:你可先改动部分代码,再按运行]

您可能还会对下面的文章感兴趣: