Ajax this question I must mention personal: Plum blossom snow!!!!!
There is a saying, "Nothing, as long as the conscientious",
I want to say is: "JS no difficult, as long as the plum blossom."
To achieve the same function as IE favorites, you will be able to drag the same as IE favorites, and do not need to refresh
, in some stations I see users if a collection folder, the problem is coming, you have to wait for a half-day Ah!!
So I have to implement a drag on the page a tag, first of all my code in IE under the test is completely normal, but to the
Firefox under you dragged him ignore you ah, has been unable to find any reason, for advice in the plum Blossom boss, very simple to help you get it done,
Faint death, a look, the original is I did not correctly understand the cross-browser about the location of the JS code Ah!!
Faint death, but the actual one to do, the problem again to pull, in Firefox next drag, or not move Ah! He is such a stubborn, every way,
I have to try to change the label to be dragged into Div ah span ah, TD ah .... Oh, my god! is normal!
and changed to a, and can not, and change, so changed for a long time, I forgot to write a label of the HREF, God, a drag, unexpectedly drag
Pull!! This is the weird thing!! Oh, it seems lazy sometimes is good ah, so my a label has no href
attribute. There is a problem, is to save the user's cookies, I have been doing for about one months, the client has been unable to save the user
Cookies information too long, close the browser is gone, and then to ask for the N-person, wrote countless correct code, can not, and then I put the web.config inside the Why do you always torture me so long?
The following is the mouse drag code: There is a function I did not copy up, drag the time or in IE under the effect of good, because he can
Sets event captures for individual objects, and Firefox is not available.
var Beginmoving=false;
var ff=window.navigator.appname== "Netscape"? True:false;
Var ie4=document.all?true:false;
var dragclickx, Dragclicky;
Var beginopen=true;
Var sourceobj=null;
Var objectobj=null;
Var Sourceobjid;
Function Mousedowntomove (obj,e)
{
sourceobj=null;
Objectobj=null;
beginopen=true;
e=e| | window.event;
beginmoving=true;
sourceobj=obj;
sourceobj.style.zindex=1;
dragclicky = e.clienty;
Dragclickx = e.clientx;
if (ie4)
{
sourceobj.setcapture ()
}
if (ff)
{
document.captureevents ( Event.mousedown | Event.mousemove | Event.mouseup | Event.mouseover);
}
}
function Mousemovetomove (E)
{
beginopen= False
if (beginmoving!=true) return false;
if (sourceobj==null) return;
e=e| | window.event;
var x = E.clientx-dragclickx;
var y = e.clienty-dragclicky;
sourceobj.style.left = x+ "px";
sourceobj.style.top = y+ "px";
}
Function Mouseuptomove (e)
{
if (sourceobj==null) return;
if (ie4)
{
sourceobj.releasecapture ();
&NBSP}
sourceobj.style.zindex=0;
sourceobj.style.top=0;
sourceobj.style.left=0;
Beginmoving=false;
window.settimeout ("Insertswapnode ()", 20);
}
function Mouseovertomove (e)
{
if (sourceobj==null) return;
e=e| | window.event;
Objectobj = e.srcelement| | E.target;
}
Below is the advertising time (how now old wants to advertise-_-)
99 Favorites, your personal homepage, is entirely up to you!is a set of personalized navigation, online collection, online news reading site, you can configure your navigation page at will, you can add it to your favorites when browsing any page, you can read, configure your favorite news channels and drag your favorite news to your favorites for a permanent collection! You can browse, Search for someone else's shared favorites, similarly, you just hold down the mouse and drag to permanently add him to your online 99 favorites! This site all Ajax technology to achieve, you do not need a long wait, all operation instantaneous completion!
If you want to be able to click on any site to the right key point "collection to 99 Favorites" to the permanent collection of this page, please point to the top right corner of the "Download plugin", or click here to download the Regthis.rar file, in the pop-up dialog box "save", and then choose a place to store up, Unzip after downloading, then double-click to run Regthis.regfile, and then restart your IE browser, very simple, you later browse any page will be able to click on the page on the right key point "collection to 99 Favorites" can put this page permanent income of your "99 Favorite Folders."
This site every day to back up the data to ensure that your data will not be lost! IE favorites can only be used on a single computer, and if the system crashes, your favorites in IE favorites will disappear, but "99 Favorites" different, the data is stored on our server, and you can be in any as long as the Internet to use the computer! You are also able to import content from your IE favorites online into the 99 Favorites folder.
about your favorites:If you log in, the name of your favorite folder is listed under "My Favorites" on the left. where "root collection" means that you do not classify the collection, you click any favorites, then the favorites in this collection will be immediately displayed, you can also right-click a favorite folder, Make the changes you want to make in the pop-up right-click menu. You can also right-click on one of your favorites and make the changes you need in the pop-up menu. You can also drag your favorites directly to each other, or you can drag a collection from one folder to another.
about user navigation templates:First please login, then you can click "Preview Template", preview template you can preview the site has done a good navigation template, this will not change your navigation template, or "Insert template", insert template refers to the template you choose to insert in the template you already exist in front, or "Change the template", Changing a template means that you can use the template you choose to change the template you already have. If you only want to change a particular link within a template, click on the link to right-click on it, and then change the dialog box to what you need!
about your news channel:You will be able to see your subscribed news channel on the right after you log in. Click on them to show your favorite news, right click to add news channels, you can always drag your favorite news to your favorites in a collection, and everything is so simple. You can also add your news channels like this , point to the left of the RSS news channel below a category, in the pop-up panel if you see a news channel you like to click the right button, in the Pop-up right-click menu select "Set as my news channel" on it!
about searching and sharing favorites:You can search for a user's collection according to the user name, can also be in accordance with the title of the collection search, can also follow the collection of linked address search, in the results of the search you can arbitrarily drag your favorite collection to your favorites inside the permanent collection, for the shared collection can also be arbitrarily dragged to your favorites inside, All you have to do is log on!