Description: Space must support: AspJpeg components. Now the space is basically supported.
index.asp file
<!--#include file= "config.asp"-->
<!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/ Xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title> configuration is as follows </title>
<style type= "Text/css Tutorial" >
Body, TD, TH {
font-size:12px;
}
</style>
<script language= "Web Effects" >
function GetWindow (url,width,height) {
Centering on the screen
window.open (URL, ', ' width= ' +width+ ', height= ' +height+ ', top= ' + (screen.height-height)/2+ ', left= ' + ( Screen.width-width)/2);
The following is centered on the page
window.open (URL, ', ' width= ' +width+ ', height= ' +height+ ', top= ' + (document.body.offsetheight-height)/2+ ', left= ' + ( Document.body.offsetwidth-width)/2);
window.open (URL, ', ' width= ' +width+ ', height= ' +height+ ', top=250,left= ' +document.body.offsetwidth/3);
}
</script>
<body>
<%
Action = Trim (Request ("action"))
Select Case Action
Case "List"
Call list ()
Case "Saveconfig"
Call Saveconfig ()
Case Else
Call list ()
End Select
Sub List ()
%>
<table width= "100%" border= "0" cellpadding= "5" cellspacing= "1" bgcolor= "#cccccc" >
<tr>
<TD colspan= "2" align= "center" bgcolor= "#ffffff" > only did a simple operation to change the parameters in the config.asp file </td>
</tr>
<tr>
<TD colspan= "2" align= "left" bgcolor= "#ebebeb" ><strong> upload image watermark Settings </strong></td>
</tr>
<tr>
<TD align= "Right" bgcolor= "#ffffff" > Watermark component </td>
<TD bgcolor= "#ffffff" ><input name= "AspJpeg" type= "Radio" value= "0" <%if isobjinstalled ("Persits.jpeg") Then%>checked<%end if%>>
Aspjpeg</td>
</tr>
<tr>
<TD align= "Right" bgcolor= "#ffffff" > Watermark type </td>
<TD bgcolor= "#ffffff" ><input type= "Radio" name= "Jpegtype" value= "0" <%if jpegtype=0 then%>checked<% End If%>>
Turn off the watermark function
<%if isobjinstalled ("Persits.jpeg") then%>
<input type= "Radio" name= "Jpegtype" value= "1", <%if jpegtype=1 then%>checked<%end if%>>
Text watermark
<input type= "Radio" name= "Jpegtype" value= "2", <%if jpegtype=2 then%>checked<%end if%>>
Picture watermark
<%else%>
<span class= "Red" > Note: You have not installed the Watermark component, you cannot enable the watermark function. </span>
<%end if%></td>
</tr>
<tr>
<TD align= "Right" bgcolor= "#ffffff" > Watermark location </td>
<TD bgcolor= "#ffffff" ><input type= "Radio" name= "jpeglocation" value= "0" <%if jpeglocation=0 then%> Checked<%end if%>>
Top left
<input type= "Radio" name= "Jpeglocation" value= "1", <%if jpeglocation=1 then%>checked<%end if%>>
Top Right
<input type= "Radio" name= "Jpeglocation" value= "2", <%if jpeglocation=2 then%>checked<%end if%>>
Lower left
<input type= "Radio" name= "Jpeglocation" value= "3", <%if jpeglocation=3 then%>checked<%end if%>>
Lower right
<input type= "Radio" name= "Jpeglocation" value= "4", <%if jpeglocation=4 then%>checked<%end if%>>
Center </td>
</tr>
<tr>
<TD align= "Right" bgcolor= "#ffffff" > Watermark text </td>
<TD bgcolor= "#ffffff" ><input name= "Jpegtxt" type= "text" id= "Jpegtxt" value= "<%=jpegtxt%>" size= "20" >
Font
<input name= "Jpegsize" type= "text" id= "jpegsize" value= "<%=jpegsize%>" size= "6" >
Size
<input name= "Jpegfont" type= "text" id= "Jpegfont" value= "<%=jpegfont%>" size= "4" >
Px
Color
#
<input name= "Jpegcolor" type= "text" id= "Jpegcolor" value= "<%=jpegcolor%>" size= "8" ></td>
</tr>
<tr>
<TD align= "Right" bgcolor= "#ffffff" > Watermark picture </td>
<TD bgcolor= "#ffffff" ><input name= "Jpegpic" type= "text" id= "Jpegpic" value= "<%=jpegpic%>" size= "50" ></td>
</tr>
</table>
<HR size= "1" >
Examples are as follows:
<form name= "MyForm" >
Original picture: <input name= "OPIc" type= "text" id= "OPIc" size= "a" ><br/>
Watermark Picture: <input name= "S_opic" type= "text" id= "S_opic" size= "the" ><br/>
Upload Picture: <input type= "button" Name= "Button4" onclick= "GetWindow (' upload.asp?ouploadtype=oaspjpeg&formname= Myform&forminput=opic ', 350,60); "value=" Upload Picture "class= button" >
</form>
<%
End Sub
%>
</body>