cat 发表于 2008-12-3 09:53:10

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

<FIELDSET style="COLOR: #808080" align=center><P><LEGEND align=center></LEGEND>&lt;HTML&gt;<BR>&lt;HEAD&gt;&lt;title&gt;漂亮的下拉框&lt;/title&gt;<BR>&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312"&gt;<BR>&lt;SCRIPT&gt;<BR>// ViaSelect Environment Constants<BR>var SS_ENV = new Object();<BR>SS_ENV.IE_Version = new Number(((window.navigator.appVersion.split('; ')).split(' ')));<BR>SS_ENV.CR = new Object();<BR>SS_ENV.CR.ReverseBackground = '#E2519C';<BR>SS_ENV.CR.ReverseText = 'white';<BR>SS_ENV.CR.Border = '#D55C9A';<BR>SS_ENV.CR.BorderActive = '#FF6CB7';<BR>SS_ENV.ImgPrefix = 'http://www.viafriend.com/images';<BR>SS_ENV.DefaultHeight = 20;<BR>SS_ENV.ButtonWidth = 13;<BR>SS_ENV.OptionsDivStyle = ''<BR>   ' display:none;'<BR>   ' z-index:10;'<BR>   ' position:absolute;'<BR>   ' border:1 solid 'SS_ENV.CR.Border ';'<BR>   ' background-color:white;'<BR>   ' scrollbar-face-color:#D4D0C8;'<BR>   ' scrollbar-shadow-color:white;'<BR>   ' scrollbar-highlight-color:#F6F5F4;'<BR>   ' scrollbar-3dlight-color:white'<BR>   ' scrollbar-darkshadow-color:#86837E;'<BR>   ' scrollbar-track-color:#F6F5F4;'<BR>   ' scrollbar-arrow-color:#86837E;';<BR>SS_ENV.OptionNobrStyle = ''<BR>   ' font-size:12px;'<BR>   ' font-family:奔覆;';<BR>// SaySelect Variables<BR>var SS_VAR = new Object();<BR>SS_VAR.DivDummy = document.createElement("DIV");<BR>SS_VAR.SelectList = new Array();<BR>SS_VAR.bEventAttached = false;</P><P>var SS_CreatedElements = new Object();</P><P>function unloadObjects()<BR>{<BR> try {<BR>if (SS_VAR &amp;&amp; SS_VAR.SelectList)<BR>{<BR>   for (key in SS_VAR.SelectList)<BR>   {<BR>if (SS_VAR.SelectList)<BR>{<BR> try {<BR>SS_VAR.SelectList.select.setAttribute('SS', 0);<BR> } catch (e) {};<BR> delete SS_VAR.SelectList;<BR>}<BR>   }<BR>}<BR> } catch (e) {};<BR>}</P><P>attachEvent("onunload", unloadObjects);</P><P>function SS_create (srcHTML, ListMax, bAutoDetect)<BR>{<BR> // property<BR> this.ssID = SS_VAR.SelectList.length;<BR> this.bOriginalSelect = (bAutoDetect &amp;&amp; SS_ENV.IE_Version &lt; 5.5);<BR> this.select = SS_createElement(srcHTML);<BR> this.selectedIndex = this.select.selectedIndex;<BR> this.options = this.select.options;<BR> this.width = parseInt(this.select.style.width);<BR> this.height = (this.select.style.height) ? parseInt(this.select.style.height) : SS_ENV.DefaultHeight;<BR> this.OptionHeight = this.height - 4;<BR> this.bListDown = (ListMax &amp;&amp; '-'==ListMax.toString().substr(0, 1)) ? false : true;<BR> this.ListMax = (!isNaN(parseInt(ListMax))) ? Math.abs(ListMax) : 100;</P><P> this.Table;<BR> this.TitleDiv;<BR> this.TitleTable;<BR> this.TitleWrapper;<BR> this.OptionsDiv;<BR> this.OptionsWrapper;<BR> this.OptionsTable;<BR> this.bFocused = false;<BR> this.bExpanded = false;<BR> this.bReverse = false;</P><P> // private method<BR> this.isThisEventToBeCanceled = SS_isThisEventToBeCanceled;<BR> this.toggleTitle = SS_toggleTitle;<BR> this.syncSelectedIndex = SS_syncSelectedIndex;<BR> this.toggleOptions = SS_toggleOptions;<BR> this.turnOnOption = SS_turnOnOption;<BR> this.turnOffOption = SS_turnOffOption;<BR> this.handleMousewheel = SS_handleMousewheel;<BR> this.handleOverTitle = SS_handleOverTitle;<BR> this.handleOutTitle = SS_handleOutTitle;<BR> this.handleOverOption = SS_handleOverOption;<BR> this.createTable = SS_createTable;<BR> this.createTitleDiv = SS_createTitleDiv;<BR> this.createOptionsDiv = SS_createOptionsDiv;<BR> this.createOptionTr = SS_createOptionTr;<BR> this.adjustOptionsDiv = SS_adjustOptionsDiv;<BR> this.syncOptions = SS_syncOptions;<BR> this.pressOption = SS_pressOption;<BR> this.moveOption = SS_moveOption;<BR> this.releaseOption = SS_releaseOption;<BR> this.pressTitle = SS_pressTitle;<BR> this.rel
页: [1]
查看完整版本: 去掉了灰色倒三角的漂亮下拉列表