Upload image and Watermark function (1/7)

Source: Internet
Author: User

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>
&LT;TD colspan= "2" align= "center" bgcolor= "#ffffff" > only did a simple operation to change the parameters in the config.asp file </td>
</tr>
<tr>
&LT;TD colspan= "2" align= "left" bgcolor= "#ebebeb" ><strong> upload image watermark Settings </strong></td>
</tr>
<tr>
&LT;TD align= "Right" bgcolor= "#ffffff" > Watermark component </td>
&LT;TD bgcolor= "#ffffff" ><input name= "AspJpeg" type= "Radio" value= "0" <%if isobjinstalled ("Persits.jpeg") Then%>checked<%end if%>>
Aspjpeg</td>
</tr>
<tr>
&LT;TD align= "Right" bgcolor= "#ffffff" > Watermark type </td>
&LT;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>
&LT;TD align= "Right" bgcolor= "#ffffff" > Watermark location </td>
&LT;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>
&LT;TD align= "Right" bgcolor= "#ffffff" > Watermark text </td>
&LT;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>
&LT;TD align= "Right" bgcolor= "#ffffff" > Watermark picture </td>
&LT;TD bgcolor= "#ffffff" ><input name= "Jpegpic" type= "text" id= "Jpegpic" value= "<%=jpegpic%>" size= "50" ></td>
</tr>
</table>
&LT;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>

home 1 2 3 4 5 6 7 last

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.