自动网站生成系统:怎么把用户提交的文字添加到图片上。老大们帮帮忙

张群区块链
业界专家认证
2004-06-10 11:28:00
我是这样想的,用户提交了自己的公司名称之后,把公司名称添加到logo图片上,这个能不能实现。使用组件dll可以实现,但是虚拟主机都不支持注册自己的组件,这该怎么办?
...全文
254 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
张群区块链 2004-06-14
  • 打赏
  • 举报
回复
谢谢大家,真是集思广益出效益啊!我统一给分意思意思
QQgenie 2004-06-12
  • 打赏
  • 举报
回复
用flash表现力不错,就是字体不能随意设.用背景的确简单,要防文字超长.
webdevelop 2004-06-11
  • 打赏
  • 举报
回复
现在有远程注册DLL的方法

<!--利用ASP远程注册DLL的方法-->

<% Response.Buffer = True %>
<% Server.ScriptTimeout = 500
Dim frmFolderPath, frmFilePath

frmFolderPath = Request.Form("frmFolderPath")
frmFilePath = Request.Form("frmDllPath")
frmMethod = Request.Form("frmMethod")
btnREG = Request.Form("btnREG")
%>

<HTML>
<HEAD>
<TITLE>Regsvr32.asp</TITLE>
<STYLE TYPE="TEXT/CSS">
.Legend{FONT-FAMILY:veranda;FONT-SIZE:14px;FONT-WEIGHT:bold;COLOR:blue}
.FS{FONT-FAMILY:veranda;FONT-SIZE:12px;BORDER:4px green;MARGIN-LEFT:2px;MARGIN-RIGHT:2px}
TD{MARGIN-LEFT:6px;MARGIN-RIGHT:6px;PADDING-LEFT:12px;PADDING-RIGHT:12px}
</STYLE>
</HEAD>

<BODY>
<FORM NAME="regForm" METHOD="POST">
<TABLE BORDER=0 CELLSPACING=6 CELLPADDING=6 MARGINWIDTH=6>
<TR>
<TD VALIGN=TOP><FIELDSET ID=FS1 NAME=FS1 CLASS=FS>
<LEGEND CLASS=Legend>Regsvr Functions</LEGEND>
Insert Path to DLL Directory<BR>
<INPUT TYPE=TEXT NAME=frmFolderPath VALUE="<%=frmFolderPath%>"><BR>
<INPUT TYPE=SUBMIT NAME=btnFileList VALUE="Build File List"><BR>
<%IF Request.Form("btnFileList") <> "" OR btnREG <> "" Then
Set RegisterFiles = New clsRegister
RegisterFiles.EchoB("<B>Select File</B>")
Call RegisterFiles.init(frmFolderPath)
RegisterFiles.EchoB("<BR><INPUT TYPE=SUBMIT NAME=btnREG VALUE=" & Chr(34) & "REG/UNREG" & Chr(34) & ">")
IF Request.Form("btnREG") <> "" Then
Call RegisterFiles.Register(frmFilePath, frmMethod)
End IF
Set RegisterFiles = Nothing
End IF
%>
</FIELDSET>
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>

<%
Class clsRegister
Private m_oFS
Public Property Let oFS(objOFS)
m_oFS = objOFS
End Property
Public Property Get oFS()
Set oFS = Server.CreateObject("Scripting.FileSystemObject")
End Property
Sub init(strRoot) 'Root to Search (c:, d:, e:)
Dim oDrive, oRootDir
IF oFS.FolderExists(strRoot) Then
IF Len(strRoot) < 3 Then 'Must Be a Drive
Set oDrive = oFS.GetDrive(strRoot)
Set oRootDir = oDrive.RootFolder
Else
Set oRootDir = oFS.GetFolder(strRoot)
End IF
Else
EchoB("<B>Folder ( " & strRoot & " ) Not Found.")
Exit Sub
End IF
setRoot = oRootDir
Echo("<SELECT NAME=" & Chr(34) & "frmDllPath" & Chr(34) & ">")
Call getAllDlls(oRootDir)
EchoB("</SELECT>")
BuildOptions
End Sub
Sub getAllDlls(oParentFolder)
Dim oSubFolders, oFile, oFiles
Set oSubFolders = oParentFolder.SubFolders
Set opFiles = oParentFolder.Files
For Each oFile in opFiles
IF Right(lCase(oFile.Name),4)=".dll" OR Right(lCase(oFile.Name),4) =".ocx" Then
Echo("<OPTION VALUE=" & Chr(34) & oFile.Path & Chr(34) & ">" & oFile.Name & "</Option>")
End IF
Next
On Error Resume Next
For Each oFolder In oSubFolders 'Iterate All Folders in Drive
Set oFiles = oFolder.Files
For Each oFile in oFiles
IF Right(lCase(oFile.Name),4) = ".dll" OR Right(lCase(oFile.Name),4) = ".ocx" Then
Echo("<OPTION VALUE=" & Chr(34) & oFile.Path & Chr(34) & ">" & oFile.Name & "</Option>")
End IF
Next
Call getAllDlls(oFolder)
Next
On Error GoTo 0
End Sub
Sub Register(strFilePath, regMethod)
Dim theFile, strFile, oShell, exitcode
Set theFile = oFS.GetFile(strFilePath)
strFile = theFile.Path
Set oShell = CreateObject ("WScript.Shell")
IF regMethod = "REG" Then 'Register
oShell.Run "c:\WINNT\system32\regsvr32.exe /s " & strFile, 0, False
exitcode = oShell.Run("c:\WINNT\system32\regsvr32.exe /s " & strFile, 0, False)
EchoB("regsvr32.exe exitcode = " & exitcode)
Else 'unRegister
oShell.Run "c:\WINNT\system32\regsvr32.exe /u/s " & strFile, 0, False
exitcode = oShell.Run("c:\WINNT\system32\regsvr32.exe /u/s " & strFile, 0, False)
EchoB("regsvr32.exe exitcode = " & exitcode)
End IF
Cleanup oShell
End Sub
Sub BuildOptions
EchoB("Register: <INPUT TYPE=RADIO NAME=frmMethod VALUE=REG CHECKED>")
EchoB("unRegister: <INPUT TYPE=RADIO NAME=frmMethod VALUE=UNREG>")
End Sub
Function Echo(str)
Echo = Response.Write(str & vbCrLf)
End Function
Function EchoB(str)
EchoB = Response.Write(str & "<BR>" & vbCrLf)
End Function
Sub Cleanup(obj)
If isObject(obj) Then
Set obj = Nothing
End IF
End Sub
Sub Class_Terminate()
Cleanup oFS
End Sub
End Class
%>
ylxxy8888 2004-06-11
  • 打赏
  • 举报
回复
很简单,套了access
ylxxy8888 2004-06-11
  • 打赏
  • 举报
回复
<tr>
<td width="100%" valign="top" height="34" style="font-family: 宋体; font-size:20pt; line-height: 20pt; letter-spacing: 1pt">
<p align="center">
<font style='width=100%; position: relative; filter: glow(color=#000000, strength=4); font-size:18pt; ' color="#FFFFFF" face="隶书"><%=rs("qymc")%></font></td>
</tr>
这是我的~ 直接贴了过来~ 偶觉得还可以!~不错~
alsa2004 2004-06-11
  • 打赏
  • 举报
回复
seaonce(雨花)
建议很好的.
本来许多站都是这么做的.你可以看一下例如sohu的黄页.也是这样的.
LonelyStark 2004-06-10
  • 打赏
  • 举报
回复
http://community.csdn.net/Expert/topic/3076/3076138.xml?temp=.8436396
跟偶的问题差不多啊
呵呵
ygghost 2004-06-10
  • 打赏
  • 举报
回复
用flash做logo的话,可以不用组件实现,因为flash本身可以读取文本文件的内容。你只要动态改变文本文件就可以了
ttt2 2004-06-10
  • 打赏
  • 举报
回复
应该没别的办法,只能用dll组件
seaonce 2004-06-10
  • 打赏
  • 举报
回复
老大,教你个特菜的方法

把LOGO设为北景图
cxy_ll 2004-06-10
  • 打赏
  • 举报
回复
大名顶顶的GD库听说过吗?下一个研究一下吧
潜水的鱼 2004-06-10
  • 打赏
  • 举报
回复
楼上,有 了给我一份

MSN:qiozi@msn.com

先谢~
张群区块链 2004-06-10
  • 打赏
  • 举报
回复
ygghost(刘华强)兄的建议不错,能给我一些有关资料吗?

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧