<html> <head> <script language="JavaScript"> L0=new Array( ' ### ', '# #', '# #', '# #', ' ### ') L1=new Array( ' ## ', ' # ', ' # ', ' # ', ' ### ') L2=new Array( ' ### ', '# #', ' # ', ' # ', '#####') L3=new Array( ' ### ', '# #', ' # ', '# #', ' ###') L4=new Array( ' ###', ' # #', '#####', ' #', ' #') L5=new Array( ' #### ', '# ', '#### ', ' #', '#### ') L6=new Array( ' # ', ' # ', ' ### ', '# #', ' ### ') L7=new Array( '#####', ' # ', ' # ', ' # ', '# ') L8=new Array( ' ### ', '# #', ' ### ', '# #', ' ### ') L9=new Array( ' ### ', '# #', ' ### ', ' # ', ' # ') LA=new Array( ' ### ', '# #', '#####', '# #', '# #') LB=new Array( '#### ', '# #', '#### ', '# #', '#### ') LC=new Array( ' ### ', '# ', '# ', '# ', ' ### ') LD=new Array( '#### ', '# #', '# #', '# #', '#### ') LE=new Array( '#####', '# ', '#### ', '# ', '#####') LF=new Array( '#####', '# ', '#### ', '# ', '# ') LG=new Array( ' ### ', '# ', '# ###', '# #', ' ### ') LH=new Array( '# #', '# #', '#####', '# #', '# #') LI=new Array( ' ### ', ' # ', ' # ', ' # ', ' ### ') LJ=new Array( ' ####', ' #', ' #', '# #', ' ### ') LK=new Array( '# # ', '# # ', '### ', '# # ', '# #') LL=new Array( '# ', '# ', '# ', '# ', '#####') LM=new Array( '## ##', '# # #', '# #', '# #', '# #') LN=new Array( '# #', '## #', '# # #', '# ##', '# #') LO=new Array( ' ### ', '# #', '# #', '# #', ' ### ') LP=new Array( '#### ', '# #', '#### ', '# ', '# ') LQ=new Array( ' ### ', '# #', '# # #', '# ##', ' ### ') LR=new Array( '#### ', '# #', '#### ', '# # ', '# #') LS=new Array( ' ####', '# ', ' ### ', ' #', '#### ') LT=new Array( '#####', ' # ', ' # ', ' # ', ' # ') LU=new Array( '# #', '# #', '# #', '# #', ' ### ') LV=new Array( '# #', '# #', '# #', ' # # ', ' # ') LW=new Array( '# #', '# #', '# #', '# # #', '## ##') LX=new Array( '# #', ' # # ', ' # ', ' # # ', '# # ') LY=new Array( '# #', ' # # ', ' # ', ' # ', '# ') LZ=new Array( '#####', ' # ', ' # ', ' # ', '#####') La=new Array( ' ', ' ', ' ####', '# ##', '### #') Lb=new Array( '# ', '# ', '#### ', '# #', '#### ') Lc=new Array( ' ', ' ', ' ####', '# ', ' ####') Ld=new Array( ' #', ' #', ' ####', '# #', ' ####') LSpace=new Array( ' ', ' ', ' ', ' ', ' ') LDash=new Array( ' ', ' ', ' ### ', ' ', ' ') LPeriod=new Array( ' ', ' ', ' ', ' ', ' # ') LQuestion=new Array( ' ### ', '# #', ' # ', ' ', ' # ') LStar=new Array( '# # #', ' ### ', '#####', ' ### ', '# # #') LAt=new Array( ' ### ', '# # #', '# ###', '# ', ' ####') LForSlash=new Array( ' #', ' # ', ' # ', ' # ', '# ') LBackSlash=new Array( '# ', ' # ', ' # ', ' # ', ' #') LColon=new Array( ' ', ' ', ' # ', ' ', ' # ') </script> <script language="JavaScript"> <!-- letterCol = '#0099FF' borderCol = '#0066FF' pic = '' topPos = 150 word = '' Lheight = 0 Lwidth = 0 var Ltop,Lleft,Lcnt,Ocnt,Ltemp1,Ltemp2,wordLen,tmpStr,tmpStr2,tmpStr3,outPt function fontIt(word,letterCol,borderCol,Lheight,Lwidth,pic) { Ltop = 0 Lleft = 0 Lcnt = 0 Ocnt = 0 Ltemp1 = 0 Ltemp2 = 0 wordLen = 0 tmpStr = '' tmpStr2 = '' tmpStr3 = '' outPt = '' for(a=0;a<word.length;a++) { Lcnt ++ tmpStr = word.charAt(a) if(tmpStr==' '){tmpStr='Space'} if(tmpStr=='-'){tmpStr='Dash'} if(tmpStr=='.'){tmpStr='Period'} if(tmpStr=='?'){tmpStr='Question'} if(tmpStr=='*'){tmpStr='Star'} if(tmpStr=='@'){tmpStr='At'} if(tmpStr=='\\'){tmpStr='BackSlash'} if(tmpStr=='/'){tmpStr='ForSlash'} if(tmpStr==':'){tmpStr='Colon'} for(b=0;b<5;b++) { c=eval('L'+tmpStr)[b] tmpStr3='' Ltemp2 = Lleft for(d=0;d<c.length;d++) { tmpStr2 = c.charAt(d) if(tmpStr2!='#') { } else { Ocnt++ tmpStr2='\n<img src="'+pic+'" id="obj'+Ocnt+'" style="position:absolute;top:'+Ltemp1+';left:'+Ltemp2+';height:'+Lheight+';width:'+Lwidth+';font-family:verdana;font-size:0;">' } Ltemp2 += Lwidth-5 tmpStr3+=tmpStr2 } Ltemp1+=Lheight-6 outPt+=tmpStr3 } Lleft += (Lwidth*6) wordLen = Lleft Ltemp1 = Ltop } return outPt;Ocnt;wordLen } function go() { pic=new Image;pic.src='upload/2004-09/6_108.gif' pic=pic.src Lheight=msg_h.value Lwidth=msg_w.value word=msg_text.value.toUpperCase() if(msg_pic.value!=''){pic=msg_pic.value} word_holder.innerHTML = fontIt(word,letterCol,borderCol,Lheight,Lwidth,pic) word_holder.style.top = topPos word_holder.style.left = (document.body.offsetWidth/2)-(wordLen/2) } //--> </script> </head> <body onload="go()"> <span id="word_holder" style="position:absolute;top:;left:;"></span> <center> <font size="6" face="ms sans serif"><u>Pic Text</u></font> <br><br><br> <font size="2" face="ms sans serif"> <ul> <li>Easy to configure </ul> </font> <br><br><br><br><br><br><br><br> <table> <tr> <td class="text">Height:</td><td><input type="text" id="msg_h" value="15" class="textbox" size="4"></td> <td class="text">Width:</td><td><input type="text" id="msg_w" value="15" class="textbox" size="4"></td> </tr> <tr> <td class="text">Text:</td><td colspan="3"><input type="text" id="msg_text" value="PIC TEXT" class="textbox"></td> </tr> <tr> <td class="text">Pic:</td><td colspan="3"><input type="file" id="msg_pic" value="" class="textbox"></td> </tr> <tr> <td colspan="4" align="center"><hr class="text"></td> </tr> <tr> <td colspan="4" align="center"><button class="textbox" onclick="go();this.blur()">Go</button></td> </tr> </table> </body> </html> [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]