📄 preview.jsp
字号:
<%@ page pageEncoding="GB2312" contentType="text/html"
import="java.awt.image.*"
import="java.awt.*"
import="javax.imageio.*"
import="java.util.*"
import="javax.swing.*"
import="java.text.AttributedString"
import="java.awt.font.TextAttribute"
import="java.text.AttributedCharacterIterator"
import="java.io.*"
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ include file="/inc/config.jsp" %>
<fmt:requestEncoding value="gb2312" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=webname%>-效果图片预览-<%=weburl%></title>
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="780" border="0" cellspacing="0" style="margin-bottom:5px">
<tr>
<td width="370"><a href="/"><img src="images/logo.gif" alt="<%=webname%>" width="368" height="82" border="0"></a></td>
<td align="center"><script src="/ad/ad400.js"></script></td>
</tr>
</table>
<table width="780" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:1px">
<tr>
<td width="70" height="40"><img src="images/show_r2_c2.jpg" width="70" height="40"></td>
<td align="center" background="images/show_r2_c4.jpg"><a href="showlist.jsp"><img src="images/showimg.gif" width="59" height="15" border="0"></a></td>
<td width="59" align="center"><img src="images/show_r2_c6.jpg" width="59" height="40"></td>
<td align="center" background="images/show_r2_c4.jpg"><a href="background.jsp"><img src="images/bjimg.gif" width="74" height="15" border="0"></a></td>
<td width="59" align="center"><img src="images/show_r2_c6.jpg" width="59" height="40"></td>
<td align="center" background="images/show_r2_c4.jpg"><a href="up.jsp" target="_blank"><img src="images/diy.gif" width="83" height="15" border="0"></a></td>
<td width="59" align="center"><img src="images/show_r2_c6.jpg" width="59" height="40"></td>
<td align="center" background="images/show_r2_c4.jpg"><a href="help" target="_blank"><img src="images/help.gif" width="89" height="15" border="0"></a></td>
<td width="61"><img src="images/show_r2_c8.jpg" width="61" height="40"></td>
</tr>
</table>
<%
try{
String text = request.getParameter("texta");
if (text.equals("")){
text = "请输入文字";
}
if (text.length()>30){
text=text.substring(0,30);
}
String fontSize = request.getParameter("fontSizea");
String fonts = request.getParameter("fontsa");
String d_bgcolor = request.getParameter("d_bgcolora");//字体色
d_bgcolor = d_bgcolor.replace("#","");
String isb = request.getParameter("isba");//是否加粗
String isx = request.getParameter("isxa");//是否加粗
String jc = request.getParameter("jca");//消除锯齿
String xz = request.getParameter("xza");//加水印的X坐标
String yz = request.getParameter("yza");//加水印的Y坐标
String imgurl = request.getParameter("imgurl");//图像位置
String effects = request.getParameter("effectsa");//3D特效
String outline = request.getParameter("outlinea");//轮廓
String engrave = request.getParameter("engravea");//雕刻
String shadow = request.getParameter("shadowa");//阴影
String d_3dEffects = request.getParameter("d_3dEffectsa");
String d_3dEffects2 = request.getParameter("d_3dEffects2a");
d_3dEffects = d_3dEffects.replace("#","");
d_3dEffects2 = d_3dEffects2.replace("#","");
String d_outline = request.getParameter("d_outlinea");
d_outline = d_outline.replace("#","");
String d_engrave = request.getParameter("d_engravea");
d_engrave = d_engrave.replace("#","");
String d_shadow = request.getParameter("d_shadowa");
d_shadow = d_shadow.replace("#","");
%>
<table width="780" border="0" cellspacing="0" style="margin-bottom:5px">
<tr>
<td><script src="/ad/ad780.js"></script></td>
</tr>
</table>
<table width="780" border="0" cellpadding="5" cellspacing="2" class="p4" style="margin-bottom:5px">
<tr>
<td align="center"><B>效果图片预览</B></td>
</tr>
<tr>
<td align="center"><img src="images.jsp?text=<%=text%>&fontSize=<%=fontSize%>&fonts=<%=fonts%>&d_bgcolor=<%=d_bgcolor%>&isb=<%=isb%>&isx=<%=isx%>&jc=<%=jc%>&xz=<%=xz%>&yz=<%=yz%>&imgurl=<%=imgurl%>&effects=<%=effects%>&outline=<%=outline%>&engrave=<%=engrave%>&shadow=<%=shadow%>&d_3dEffects=<%=d_3dEffects%>&d_3dEffects2=<%=d_3dEffects2%>&d_outline=<%=d_outline%>&d_engrave=<%=d_engrave%>&d_shadow=<%=d_shadow%>" onload="if(this.width>700) {this.alt=this.title; this.width=700;}"></td>
</tr>
<tr>
<td><B>提示:</B><br> 如果你上传的是GIF图片,可能有时会看到的是黑的没有图,你可以按F5刷新看每一帧的效果,这里只是做预览,所以图片质量会差些,真正生成出来的图片会不一样的,你这里看到的只是静态的一帧的效果,只有你把四帧都设置完然后生成出动画图来才会有动画。</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<%
}catch(Exception e){
response.sendRedirect("error.jsp");
}
%>
<table width="780" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><jsp:include page="bottom.jsp" /></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -