Function cword (pdivname, pword, pactionurl, paction, pcssclass ){
This. divname = pdivname;
This. Word = pword;
This. Action = paction;
This. actionurl = pactionurl;
This. cssclass = pcssclass;
Document. getelementbyid (this. divname). style. zindex = 10;
If (this. cssclass! = ""){
Document. getelementbyid (this. divname ). innerhtml = "<a href = \" "+ this. actionurl + "\" class = \ "" + this. cssclass + "\" onclick = \ "" + this. action + "\" target = _ blank> "+ this. word + "</a> ";
} Else {
Document. getelementbyid (this. divname ). innerhtml = "<a href = \" "+ this. actionurl + "\" onclick = \ "" + this. action + "\" target = _ blank> "+ this. word + "</a> ";
}
}
---------------------------------------------
You only need to use VaR c = new cword (pdivname, pword, pactionurl, paction, pcssclass );
Pdivname: = div name. The text link must be attached to a div.
Pword: = text link text
Pactionurl: = the pop-up link when you click a text link. It can be ""
Paction: = the action to be performed when you click a text link. The function name corresponding to JS can be ""
Pcssclass: = CSS name corresponding to the text link, which can be ""