|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
I have to change a bunch of regular non graphic buttons (for various functions, all on asp pages) to graphic buttons.
I don't know that much about asp but I can see and understand what it is doing if I look at the code. Here's an example: ---------------------- bRun = True If gbUseSSL And gbUseSSLOnLogin Then If UCase(Trim(Request.ServerVariables("HTTPS"))) <> "ON" Then bRun = False Response.Write "<form method=""post"" name=""NextForm"" action=""" & gsSSLURL & "XUDLogin.asp"">" Response.Write "<input type=""hidden"" name=""UserName"" value=""" & Server.HTMLEncode(sLoginName) & """>" Response.Write "<input type=""hidden"" name=""Password"" value=""" & Server.HTMLEncode(sLoginPassword) & """>" Response.Write "<input type=""hidden"" name=""ReturnTo"" value=""" & Server.HTMLEncode(sReturnTo) & """>" Response.Write "<input type=""submit"" style=""visibility:hidden;"">" Response.Write "</form>" Response.Write vbCrLf & vbCrLf & "<script language=""JavaScript"">" & vbCrLf & "<!--" & vbCrLf Response.Write " document.NextForm.submit(); " & vbCrLf Response.Write "// -->" & vbCrLf & "</script>" & vbCrLf End If End If If bRun Then OpenDBConn Select Case sCMD Case "SHOWLOGIN": DoPageHeader TableHead ShowLogin TableFoot DoPageFooter Case "CHECKLOGIN": CheckLogin Case "LOGOUT": Logout Case Else DoPageHeader TableHead ShowLogin TableFoot DoPageFooter End Select CloseDBConn End If 'End bRun Set objErr = Nothing Sub ShowLogin Response.Write "<FORM METHOD=""POST"" NAME=""LoginForm"" ACTION=""XUDLogin.asp"">" Response.Write "<INPUT TYPE=""HIDDEN"" NAME=""CMD"" VALUE=""CHECKLOGIN"">" Response.Write "<INPUT TYPE=""HIDDEN"" NAME=""ReturnTo"" VALUE=""" & sReturnTo & """>" Response.Write "<TR><TD VALIGN=""TOP"" COLSPAN=""2"">" ShowHTMLFile "XUDHtmlTxt/XUDLogin.htm" Response.Write "</TD></TR>" Response.Write "<TR><TD VALIGN=""TOP"" COLSPAN=""2"">" & gsFormTextOpen & gsLoginInfoLogin & gsFormTextClose & "</TD></TR>" Response.Write "<TR>" Response.Write "<TD VALIGN=""TOP"" COLSPAN=""2"">" Response.Write "<TABLE BORDER=""0"" CELLPADDING=""1"" CELLSPACING=""0"" WIDTH=""100%"" BGCOLOR=""" & gsRegularBoxColor & """>" Response.Write "<TR><TD>" Response.Write "<TABLE BORDER=""0"" CELLPADDING=""3"" CELLSPACING=""0"" WIDTH=""100%"" BGCOLOR=""" & gsPageBGColor & """>" Response.Write "<TR>" Response.Write "<TD WIDTH=""30%"">" & gsFormTextOpen & OutMatch(True, objErr.Exists("USERNAME"), GLS_LoginErrorUserName, GLS_LoginUserName) & gsFormTextClose & "</TD>" Response.Write "<TD><INPUT TYPE=""TEXT"" NAME=""UserName"" VALUE=""" & sLoginName & """ SIZE=""20"" MAXLENGTH=""20""></TD>" Response.Write "</TR>" Response.Write "<TR>" Response.Write "<TD>" & gsFormTextOpen & OutMatch(True, objErr.Exists("PASSWORD"), GLS_LoginErrorPassword, GLS_LoginPassword) & gsFormTextClose & "</TD>" Response.Write "<TD><INPUT TYPE=""PASSWORD"" NAME=""Password"" VALUE=""" & sLoginPassword & """ SIZE=""20"" MAXLENGTH=""60""></TD>" Response.Write "</TR>" Response.Write "</TABLE>" Response.Write "</TD></TR>" Response.Write "</TABLE>" Response.Write "</TD>" Response.Write "</TR>" Response.Write "<TR><TD VALIGN=""TOP"" COLSPAN=""2""><INPUT TYPE=""SUBMIT"" VALUE=""" & GLS_TextLogin & """ class=""XcBtn""></TD></TR>" Response.Write "</FORM>" Response.Write "<TR><TD VALIGN=""TOP"" COLSPAN=""2"">" ShowHTMLFile "XUDHtmlTxt/XUDLoginPassword.htm" Response.Write "</TD></TR>" ------------------------- That was just a bit of the page (I included all "Response.Write" lines that have something to do with this login button. So does anyone know how I can have this page still function with a graphic button instead of the basic button? Any help / suggestions would be greatly appreciated! Thanks, Tony ![]() |
|
#2
|
||||
|
||||
|
did i overlook something...how is asp in play here?
using css to create a background for a normal submit button Code:
<input type="submit" value="" style="background : url('http://www.elluminate.com/images/partner_submit_button.gif'); width:68px; height:25px;">
input type image button....by default IS a submit button Code:
<input type="image" src="http://www.elluminate.com/images/partner_submit_button.gif" name="image" width="65" height="21"> submit button graphics see above code on a web page: click me
__________________
Please give respect to those that helped solve an issue by clicking on the reputation icon
|
|
#3
|
|||
|
|||
|
They are asp pages
Quote:
Thanks for your reply, I really appreciate it. As far as asp being in play here, it's not I guess, they are just asp pages that write the html pages that produce these various buttons. I don't know enough about all this (I am good with html, graphics, and cutting and pasting to alter html and asp code) but for some reason, I am having a very difficult time trying to replace these generated buttons within this program to graphic buttons. I guess what I was hoping for was for someone to tell me, ok, take this line and replace this part with this, type of thing. If I can do one of them, I can then go through and change all of them 1 at a time. Anyway, thanks again and just so it is out there, this is a classified ad site program, and I have done all the other customization and am down to this last thing. I am willing to pay someone to help me with this. I'm sure to you guys, this is a very simple little thing, I am just not "seeing" the solution myself. |
|
#4
|
||||
|
||||
|
Quote:
yes....it's an asp page but technically you do not need asp tags for the html...but...if wanting to change the submit button within asp....i gave the html...only difference are the quotes... Code:
<input type=""image"" src=""http://www.elluminate.com/images/partner_submit_button.gif"" name=""image"" width=""65"" height=""21""> if you need help and it's not too much...i'd help for free....it sounds like a simple resolution...send a message via forum or use the yahoo icon to PM else you can post in this programers for hire forum |
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Replace buttons with graphic buttons??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|