Skip to Content

mangawriter.js

  1. function writeManga(text){
  2.         document.write('<span style="font-size:20px;  color: #000000; vertical-align: top; font-family: verdana; ">');
  3.         for (i=0;i<text.length;i++){
  4.                
  5.                 if (text.toUpperCase().charCodeAt(i) >= 65  && text.toUpperCase().charCodeAt(i) <= 90){
  6.                         code = text.toUpperCase().charCodeAt(i)-64;
  7.                         document.write("<img src='mangafontimages/font_capital_r1_c" + code + ".png' alt='"+text.toUpperCase().charAt(i)+"'>");
  8.                 }
  9.                 else document.write("&nbsp;" + text.toUpperCase().charAt(i));
  10.         }
  11.         document.write("</span>&nbsp;");
  12. }
  13.  
  14. function writeMangaLink(text, linkurl){
  15.         document.write("<span style='font-size:20px;  color: #000000; vertical-align: top; font-family: verdana;' > <a href='" + linkurl+"'>");
  16.         for (i=0;i<text.length;i++){
  17.                
  18.                 if (text.toUpperCase().charCodeAt(i) >= 65  && text.toUpperCase().charCodeAt(i) <= 90){
  19.                         code = text.toUpperCase().charCodeAt(i)-64;
  20.                         document.write("<img src='mangalinkfontimages/font_capital_r1_c" + code + ".png' alt='"+text.toUpperCase().charAt(i)+"' style='border-style: none'>");
  21.                 }
  22.                 else document.write("&nbsp;" + text.toUpperCase().charAt(i));
  23.         }
  24.         document.write("</a></span>&nbsp;");
  25. }