日期:2014-05-16 浏览次数:20354 次
$sc.prototype.creatSearchBox=function(searchBoxDiv,initnumber){
var textDiv=document.createElement("input");
textDiv.id=this.searchTextId;
textDiv.type="text";
textDiv.size="60";
textDiv.className="search-text";
searchBoxDiv.appendChild(textDiv);
var buttonDiv=document.createElement("div");
buttonDiv.id=this.searchButtonId;
buttonDiv.className="search-button";
searchBoxDiv.appendChild(buttonDiv);
$(buttonDiv).hover(
function(){$(this).addClass("search-button-hover");},
function(){$(this).removeClass("search-button-hover");}
);
}
$sc.prototype.creatSearchBox=function(searchBoxDiv,initnumber){
var optionDiv = document.createElement("option");
optionDiv.id =this.searchOptionId;
optionDiv.type = "option";
optionDiv.value = "北京市";
optionDiv.text = "北京市";
optionDiv.value = "上海市";
optionDiv.text = "上海市";
searchBoxDiv.appendChild(optionDiv);
var textDiv=document.createElement("input");
textDiv.id=this.searchTextId;
textDiv.type="text";
textDiv.size="60";
textDiv.className="search-text";
searchBoxDiv.appendChild(textDiv);
var buttonDiv=document.createElement("div");
buttonDiv.id=this.searchButtonId;
buttonDiv.className="search-button";
searchBoxDiv.appendChild(buttonDiv);
$(buttonDiv).hover(
function(){$(this).addClass("search-button-hover");},
function(){$(this).removeClass("search-button-hover");}
);
var sel=document.createElement('select');;
sel.options.add(new Option("北京市", "北京市"));
sel.options.add(new Option("上海市", "上海市"));
searchBoxDiv.appendChild(sel);
$sc.prototype.creatSearchBox=function(searchBoxDiv,initnumber){
var optionDiv = document.createElement("select");
optionDiv.id =this.searchOptionId;
optionDiv.options.add(new Option("北京市", "北京市"));
optionDiv.options.add(new Option("上海市", "上海市"));
searchBoxDiv.appendChild(optionDiv);
var textDiv=document.createElement("input");
textDiv.id=this.searchTextId;
textDiv.type="text";
textDiv.size="60";
textDiv.className="search-text";
searchBoxDiv.appendChild(textDiv);
var buttonDiv=document.createElement("div");
buttonDiv.id=this.searchButtonId;
buttonDiv.className="search-button";
searchBoxDiv.appendChild(buttonDiv);
$(buttonDiv).hover(