Objects and functions of JS client database

zhaozj2021-02-08  256

Author: small wonton _ struggle Issue Date: December 29, 2000 Sometimes you want to use the client database on the page, but for compatibility with the first version of the browser does not support xml technology, so this made up of some js function of dml hope Interested friends discuss Function trform () {this.trrc = new array (); qrc = new array (); // Result this.currentrc = 1; // Current record pointer this.lastrc = 0; / / Last Record this.rclength = arguments.length; // field number this.trrc [0] = new array (); // field name for (i = 0; i this.lastrc) this.currentrc = this.lastrc; this.showrc ();} function showTHIS () {this. Seek ("all", "all") this.showrc ();} function showprevious () {this.seek ("all", "all"); if (- this.currentrc == 0) this.currentrc = 1; this.showrc ();} function preload () {if ("Do you need to load the picture into memory, this can improve the smoothness of the browsing. If your network speed is slow, it is recommended not to carry Into ',' Ming Dark Routing ')) {status =' picture loading in '; var imageindex = new array (); var n = 0; for (i = 0; i <

THIS.RCLENGTH; I ) {IF (this.trrc [0] [i] .indexof ("image")! = - 1) ImageIndex [N ] = i;} for (i = 1; i <= this.lastrc ; i ) {VAR preimage = new image (); preimage.src = this.trrc [i] [ii]; status = '.'}}} status = '; return true; } function item2index (item) {VAL = -1 for (i = 0; I

) {This.QRC [TEMP-1] [i] = this.trrc [k] [showitems [i]];}}}} returnim this.qrc;} [copyright belongs to this article and Ozo network Reprinted, please indicate the author and the source]

转载请注明原文地址:https://www.9cbs.com/read-2969.html

New Post(0)