Okay, here is an example of a segment of code I wrote (I will follow that with my specific question):
Expand|Select|Wrap|Line Numbers
- function w(tag) {
- this.t = tag; this.s = "<"+tag+">"; this.e = "</"+tag+">";
- this.c = function (con) { return this.s+con+this.e; }
- this.d = function (sty, con) { return "<"+this.t+" "+sty+">"+con+this.e; }
- this.i = function (src) { return "<"+this.t+" src='"+src+"'>"; }
- this.j = function (src, sty) { return "<"+this.t+" src='"+src+"' "+sty+">"; }
- }
- ul=new w("ul"); li=new w("li"); tr=new w("tr"); th=new w("th"); td=new w("td");
- p=new w("p"); table=new w("table"); img=new w("img");
Expand|Select|Wrap|Line Numbers
- ul=new w("ul"); li=new w("li"); tr=new w("tr"); th=new w("th"); td=new w("td");
- p=new w("p"); table=new w("table"); img=new w("img");
Expand|Select|Wrap|Line Numbers
- ul=new w(); li=new w(); tr=new w(); th=new w(); td=new w(); p=new w();
- table=new w(); img=new w();
Also, here's another example:
Expand|Select|Wrap|Line Numbers
- function example(name) {
- this.name=name;
- }
I look forward to your replies! Thank you in advance!
Peter A.