You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/HtmlEditor/portraitSelect.js

137 lines
6.1 KiB
JavaScript

2 years ago
// img attr: name, alt, shortcut
var imagePath = "http://mimg.163.com/popo/";
var imageWidth = 19;
var imageHeight = 19;
var countPerRow = 14;
var sHTML = "";
var sHTMLHead = "";
function portrait(name, alt, shortcut)
{
this.name = name;
this.alt = alt;
this.shortcut = shortcut;
}
var imgArray = new Array();
imgArray[0] = new portrait("smile01.gif", "΢Ц", ":)");
imgArray[1] = new portrait("smile02.gif", "<22><><EFBFBD><EFBFBD>Ц", ":))");
imgArray[2] = new portrait("smile03.gif", "գ<><D5A3>" ,"");
imgArray[3] = new portrait("smile04.gif", "<22><><EFBFBD><EFBFBD>" ,"");
imgArray[4] = new portrait("smile05.gif", "<22><><EFBFBD><EFBFBD>Ц<EFBFBD><D0A6>" ,"");
imgArray[5] = new portrait("smile06.gif", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ц" ,"");
imgArray[6] = new portrait("smile07.gif", "<22><><EFBFBD><EFBFBD>" ,"");
imgArray[7] = new portrait("smile08.gif", "<22><><EFBFBD><EFBFBD>" ,"");
imgArray[8] = new portrait("smile09.gif", "<22><><EFBFBD><EFBFBD>" ,"");
imgArray[9] = new portrait("smile10.gif", "<22>ѹ<EFBFBD>" ,"");
imgArray[10] = new portrait("smile11.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[11] = new portrait("smile12.gif", <><CAA7>" , "");
imgArray[12] = new portrait("smile13.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[13] = new portrait("smile14.gif", "<22>ú<EFBFBD>Ц" , "");
imgArray[14] = new portrait("smile15.gif", "<22><>" , "");
imgArray[15] = new portrait("smile16.gif", "<22><EFBFBD><E7B5BD>" , "");
imgArray[16] = new portrait("smile17.gif", "<22><>" , "");
imgArray[17] = new portrait("smile18.gif", "<22><><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>" , "");
imgArray[18] = new portrait("smile19.gif", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" , "");
imgArray[19] = new portrait("smile20.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[20] = new portrait("smile21.gif", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" , "");
imgArray[21] = new portrait("smile22.gif", "<22><>" , "");
imgArray[22] = new portrait("smile23.gif", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" , "");
imgArray[23] = new portrait("smile24.gif", "<22><>˵" , "");
imgArray[24] = new portrait("smile25.gif", "<22><>" , "");
imgArray[25] = new portrait("smile26.gif", <><C9AB><EFBFBD><EFBFBD>" , "");
imgArray[26] = new portrait("smile27.gif", "<22><>ѵ" , "");
imgArray[27] = new portrait("smile28.gif", "<22>ɰ<EFBFBD>" , "");
imgArray[28] = new portrait("smile29.gif", "YEAH" , "");
imgArray[29] = new portrait("smile30.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[30] = new portrait("smile31.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[31] = new portrait("smile32.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[32] = new portrait("smile33.gif", "<22><>Ľ<EFBFBD><C4BD>" , "");
imgArray[33] = new portrait("smile34.gif", "<22><>" , "");
imgArray[34] = new portrait("smile35.gif", "<22>ڱǿ<DAB1>" , "");
imgArray[35] = new portrait("smile36.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[36] = new portrait("smile37.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[37] = new portrait("smile38.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[38] = new portrait("smile39.gif", "<22>ϴ<EFBFBD>" , "");
imgArray[39] = new portrait("smile40.gif", <><C7B7>" , "");
imgArray[40] = new portrait("smile41.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[41] = new portrait("smile42.gif", "<22><><EFBFBD><EFBFBD>æ" , "");
imgArray[42] = new portrait("smile43.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[43] = new portrait("smile44.gif", "͵͵Ц" , "");
imgArray[44] = new portrait("smile45.gif", "<22>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>" , "");
imgArray[45] = new portrait("smile46.gif", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>" , "");
imgArray[46] = new portrait("smile47.gif", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" , "");
imgArray[47] = new portrait("smile48.gif", "<22>ݰ<EFBFBD>" , "");
imgArray[48] = new portrait("49.gif", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" , "");
imgArray[49] = new portrait("50.gif", "<22><><EFBFBD><EFBFBD>Ů<EFBFBD><C5AE>" , "");
imgArray[50] = new portrait("51.gif", <><C3B5>" , "");
imgArray[51] = new portrait("52.gif", "<22>ð<EFBFBD><C3B0><EFBFBD>" , "");
imgArray[52] = new portrait("53.gif", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" , "");
imgArray[53] = new portrait("54.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[54] = new portrait("55.gif", "NO" , "");
imgArray[55] = new portrait("56.gif", "YES" , "");
imgArray[56] = new portrait("57.gif", "<22>ո<EFBFBD><D5B8><EFBFBD>" , "");
imgArray[57] = new portrait("58.gif", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" , "");
imgArray[58] = new portrait("59.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[59] = new portrait("60.gif", "CALL<4C><4C>" , "");
imgArray[60] = new portrait("61.gif", "<22><>Ѫ<EFBFBD>ĵ<EFBFBD>" , "");
imgArray[61] = new portrait("62.gif", <><D5A8>" , "");
imgArray[62] = new portrait("63.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[63] = new portrait("64.gif", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" , "");
imgArray[64] = new portrait("65.gif", "<22><>Ѫ<EFBFBD><D1AA><EFBFBD><EFBFBD>" , "");
imgArray[65] = new portrait("66.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[66] = new portrait("67.gif", "<22><>һ<EFBFBD><D2BB>" , "");
imgArray[67] = new portrait("68.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[68] = new portrait("69.gif", "<22><><EFBFBD>绰" , "");
imgArray[69] = new portrait("70.gif", "<22><>" , "");
imgArray[70] = new portrait("71.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[71] = new portrait("72.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[72] = new portrait("73.gif", "<22><>Ǯ" , "");
imgArray[73] = new portrait("74.gif", <><CCAB>" , "");
imgArray[74] = new portrait("75.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[75] = new portrait("76.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[76] = new portrait("77.gif", "Сè" , "");
imgArray[77] = new portrait("78.gif", "С<><D0A1>" , "");
imgArray[78] = new portrait("79.gif", "<22><>ͷ" , "");
imgArray[79] = new portrait("80.gif", "<22><>ˮ" , "");
imgArray[80] = new portrait("81.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[81] = new portrait("82.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[82] = new portrait("83.gif", "<22><><EFBFBD><EFBFBD>" , "");
imgArray[83] = new portrait("84.gif", <><D4BC>" , "");
function drawSpace()
{
sHTML +='</tr><tr align="left" bgcolor="#f8f8f8" class="unnamed1">';
}
function drawPortrat( index )
{
if (index<0 || index>imgArray.length) return;
var portratContent ='<img src="' + imagePath + imgArray[index].name + '" ' +
'alt="' + imgArray[index].alt + '" ' +
'width="' + imageWidth + '" ' +
'height="' + imageHeight + '" >';
sHTML +='<td align="center">';
sHTML +=portratContent;
sHTML +='</td>';
}
function drawPortratsHead()
{
sHTMLHead = "";
sHTMLHead +='<td colspan="' + countPerRow + '" align="center"> <strong><3E><><EFBFBD><EFBFBD></strong></td>';
return sHTMLHead;
}
function drawPortrats()
{
var i = 0;
sHTML = "";
for (i=0; i<imgArray.length; i++) {
if (i>0 && i%countPerRow==0) drawSpace();
drawPortrat( i );
}
return sHTML;
}
function MouseClick( index )
{
window.returnValue = imagePath + imgArray[index].name;
window.close();
}