当前位置:软件学习 > Dreamweaver >>

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

<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);
 补充:网页制作,Dreamweaver

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,