去掉了灰色倒三角的漂亮下拉列表(6)_Dreamweaver教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

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>\n"

来源:网上收集//所属分类:Dreamweaver教程/更新时间:2005-05-04
相关Dreamweaver教程