Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
moz-text-overflow.js
Package: code_and_note_of_COM.rar [view]
Upload User: weisheen
Upload Date: 2022-07-09
Package Size: 19390k
Code Size: 2k
Category:
ActiveX-DCOM-ATL
Development Platform:
Visual C++
-
- function initMozTextOverflow(obj)
- {
- function re_render()
- {
- doMozTextOverflow(obj);
- }
- setTimeout(re_render,0);
- }
- function doMozTextOverflow(obj)
- {
- function _overflow(e)
- {
- var el = e.currentTarget;
- el.className="_textOverflow";
- }
- function _underflow(e)
- {
- var el = e.currentTarget;
- el.className="_textUnderflow";
- }
- obj.className="_textUnderflow";
- obj.addEventListener("overflow", _overflow, false);
- obj.addEventListener("underflow", _underflow, false);
- obj.ins = document.createElement("ins");
- obj.ins.innerHTML="…";
- obj.appendChild(obj.ins);
- /*
- obj.onmousedown = function(e)
- {
- this.selectStartX = e.clientX - document.getBoxObjectFor(this).x;
- }
- obj.onmouseup = function(e)
- {
- this.selectStartX = null;
- }
- obj.onmousemove = function(e)
- {
- if(this.selectStartX!=null )
- {
- var mx = e.clientX - this.selectStartX;
- var ex = this.offsetWidth - this.selectStartX;
- if( ( ex - mx) < (this.ins.offsetWidth+3) )
- {
- if(this.className!="_textUnderflow")
- {
- this.className="_textUnderflow";
- this.scrollLeft=0;
- var box = document.createElement("input");
- box.setAttribute("type","text");
- box.value=1111
- this.appendChild(box);
- box.select();
- this.removeChild(box);
- this.focus();
- }
- }
- else
- {
- if(this.className!="_textOverflow")
- {
- this.className="_textOverflow"
- }
- }
- return false;
- }
- };
- */
- }