echo "
$id." ".$sendtime." × |
style='float:left'>
".$Picker."
/span> .$id.",".$hits.")''>[Bless you] Blessings:".$hits." QQ:".$QQ."
";
When the left mouse button is pressed, Apply mouse time onmousedown to trigger the Move() function
Copy code
The code is as follows:
var Layer='';
document.onmouseup=moveEnd;
document.onmousemove=moveStart;
var b;
var c;
function Move(Object, event){ //Mobile DIV wish note
Layer=Object.id;
if(document.all){
document.getElementById(Layer).setCapture();
b=event.x -document.getElementById(Layer).style.pixelLeft; //Set the left border
c=event.y-document.getElementById(Layer).style.pixelTop; //Set the right border
}else if(window .captureEvents){
window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);
b=event.layerX; //Return the abscissa coordinate of the time object relative to the body
c=event.layerY; / /Return the ordinate of the time object relative to the body
}
/**When the mouse clicks on the note, the note will be placed on **/
document.getElementById(Layer).style.zIndex=iLayerMaxNum;
iLayerMaxNum=iLayerMaxNum+1;
/********************************/
}
document.all is an array variable composed of all tags in the document, including all elements in the document object. This array can Access all elements in the document.
Syntax:
document.all[i]
document.all[name]
document.all.tags[tagname]
Description:
all[] is a multifunctional array-like object that provides access to all HTML elements in the document. The all[] array originated from IE4 and has been adopted by many other browsers
all[] has been used by the standard getElementById() method and getElementByTagName() method of the Document interface and the getElementByName() method of the Document object. replace. The elements contained in
all[] preserve their original order, and if you know their exact numeric position in the array, you can extract them directly from the array. However, it is more common to use the all[] array to access elements based on their HTML attribute name or id. If the element has the specified name, you will get an array of elements sharing the same name.
document.all can determine whether the browser is IE
Copy the code The code is as follows:
if(document.all ){
alert("is IE!");
}
window.captureEvents()
window.captureEvents(event1 | event2 | eventN)
captureEvents( ) method captures all event types that occur. If multiple events occur, they are separated by | vertical bars; the main events of the captureEvents() method are as follows:
Event.ABORT
Event.BLUR
Event.CHANGE
Event.CLICK
Event.DBLCLICK
Event.DRAGDROP
Event.ERROR
Event.FOCUS
Event.KEYDOWN
Event.KEYPRESS
Event.KEYUP
Event.LOAD
Event.MOUSEDOWN
Event.MOUSEMOVE
Event.MOUSEOUT
Event.MOUSEOVER
Event.MOUSEUP
Event.MOVE
Event.RESET
Event .RESIZE
Event.SELECT
Event.SUBMIT
Event.UNLOAD
Sample code:
Copy code The code is as follows:
Using window.captureEvents
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31