wongerlt Posted November 19, 2016 Share Posted November 19, 2016 Hello, I have one problem, sometime in dialog not show full text. Example: html: "<br>If you close this window, click <font color=\"LEVEL\">Start button</font><br>" Start button it show all time, but sometime "If you close this window, click" not show like it be invisible color. Where can be problem? Quote Link to comment Share on other sites More sharing options...
0 Versus Posted November 20, 2016 Share Posted November 20, 2016 This line itself should work, if you want help, please show us the entire code. Quote Link to comment Share on other sites More sharing options...
0 wongerlt Posted November 21, 2016 Author Share Posted November 21, 2016 NpcHtmlMessage html = new NpcHtmlMessage(0); String htmlas = "<html><body><table width=\"300\"><tr><td align=\"center\"><font color=\"FF9900\">Check for Bots</font><img src=\"L2UI.SquareWhite\" width=\"300\" height=\"1\"><br></td></tr><tr><td align=\"center\">" + "<img src=\"Crest.crest_" + client.getServerId() + "_" + (id+idx) + "\" width=256 height=64><br>" + "<edit width=180 var=\"code\"><br>" + "<button action=\"bypass -h pinas $code\" value=\"Submit Code\" width=75 height=21 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\">" + "<br><br>If you close this window, click <font color=\"LEVEL\">Start button</font><br>" + "<a action=\"bypass -h pinas refresh\"><font color=\"9CC300\">Refresh Code</font></a><br>" + "</td></tr></table></center></body></html>"; html.setHtml(htmlas); client.sendPacket(html); Quote Link to comment Share on other sites More sharing options...
0 Rootware Posted November 21, 2016 Share Posted November 21, 2016 Don't build the full HTML code in java. Save HTML page as template and after replace dynamic data inside template. Quote Link to comment Share on other sites More sharing options...
0 wongerlt Posted November 22, 2016 Author Share Posted November 22, 2016 you say there is problem? and not full text at welcome dialog when enter to world ,it saved in html file, so where can be problem? Quote Link to comment Share on other sites More sharing options...
0 wongerlt Posted November 22, 2016 Author Share Posted November 22, 2016 some time show full sometime not full Quote Link to comment Share on other sites More sharing options...
0 Versus Posted November 22, 2016 Share Posted November 22, 2016 I don't understand the reason you have to use only one <td> for such a big text. Try to use more and i'm pretty sure your problems will stop. Quote Link to comment Share on other sites More sharing options...
Question
wongerlt
Hello,
I have one problem, sometime in dialog not show full text. Example:
html:
"<br>If you close this window, click <font color=\"LEVEL\">Start button</font><br>"
Start button it show all time, but sometime "If you close this window, click" not show like it be invisible color.
Where can be problem?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.