Let me just briefly talk about the implementation process:
1. Find the link source, I am here is a string of li under the link
2. Processing style
3. When the mouse moves to load the site of the link source to the specified container, and toggle the style to let the Click event return FALSE, here should not click on the link source page
5.Over.
Script:
Copy Code code as follows:
{
Homenews
var tid = "#homeNews";//removetabbold
var lvtabs = $ (TID);
if (lvtabs!= null)
{
Lvtabs.find ("a"). each (the function () {$ (this). Click (function () {return false;}); $ (this). MouseOver (function () {
Removetabbold (TID); $ (this). AddClass ("bold");
$ (this). Parent (). addclass ("LVBG");
$ (' #HomeNewsList '). Load ($ (this). href ());
return false;})};
}
}
function Removetabbold (lvtabid)
{
$ (lvtabid). Find ("a"). each (function () {
$ (this). Removeclass ("bold");
$ (this). Parent (). Removeclass ("LVBG");
$ (this). Parent (). Parent (). Parent (). Removeclass ("LVP");});
}