$(
function()
{
var Category = function ShowCategory()
{
if (this.CategoryConten == null)
{
var left = $($($("#search_product").parent()[0]).parent()[0]).css("left");
this.CategoryConten = document.createElement("div");
$(this.CategoryConten).attr("class", "categoryContent")
$(this.CategoryConten).css("left", (screen.width - 960) / 2 - 10);
$(this.CategoryConten).html(new Date().getMilliseconds());
document.documentElement.appendChild(this.CategoryConten);
return this.CategoryConten;
}
else
{
return this.CategoryConten;
}
}; $("#search_product").mouseover(function() { $(Category).css("display", "block"); });
$("#search_product").mouseout(function() { $(Category).css("display", "none"); });
}
);
鼠标移到search_product时可以显示Category
为什么鼠标移开search_product时不可以隐藏Category呢?
function()
{
var Category = function ShowCategory()
{
if (this.CategoryConten == null)
{
var left = $($($("#search_product").parent()[0]).parent()[0]).css("left");
this.CategoryConten = document.createElement("div");
$(this.CategoryConten).attr("class", "categoryContent")
$(this.CategoryConten).css("left", (screen.width - 960) / 2 - 10);
$(this.CategoryConten).html(new Date().getMilliseconds());
document.documentElement.appendChild(this.CategoryConten);
return this.CategoryConten;
}
else
{
return this.CategoryConten;
}
}; $("#search_product").mouseover(function() { $(Category).css("display", "block"); });
$("#search_product").mouseout(function() { $(Category).css("display", "none"); });
}
);
鼠标移到search_product时可以显示Category
为什么鼠标移开search_product时不可以隐藏Category呢?
var Category = function ShowCategory()