Jump to content

mboehler3

Members
  • Content Count

    304
  • Joined

  • Last visited

Everything posted by mboehler3

  1. So in my javascript, would I have something like this:if(document.quotesform1.getElementById("CurrentPlan").checked ==false){ message = message+"Please select a Current plan.\n"; } ?That doesn't work when I hit submit on the form.
  2. Ok I've set my two ID's to be different. I still don't know how to check it in the javascript. Any suggestions?
  3. I've given the radio buttons an ID, here is the code:Yes <input type="radio" id="CurrentPlan" name="CurrentPlan" value="Yes"> No <input type="radio" id="CurrentPlan" name="CurrentPlan" value="No"> I'm not familiar with the getElementById, how do I write it out so that it checks if it was selected?
  4. Hi, I have a form that has input boxes for users to type their information, and dropdown menus for users to select an option. I am trying to also use a radio button, where the question is a Yes or No answer, and the user clicks on either yes or no. I want to use javascript to be able to ensure that a button has been checked, but I don't know what to use. For example, the "First Name" input box has this JS to check whether or not information has been entered: if(document.quotesform1.FirstName.value.length ==0){ message = message+"Please enter a First Name.\n"; } The dropdown menu has this JS to check whether or not an option has been chosen: if(document.quotesform1.InterestedIn.selectedIndex == 0){ message = message+"Please enter your Interest.\n"; } Where "0" is the value given to the first option ("Select one")How can I use the same JS to check whether or not a radio button has been selected?Thank you very much, any help is greatly appreciated.
  5. Hi, I am trying to create a form that just asks for the users email. After they enter their email and press submit, I would like for an email on my side to automatically be sent to that email address that was entered.An example I found online is here: http://javascript.internet.com/forms/submit-once.html, if you scroll down towards the bottom of the page and see the short form that says "We'll send this script to you!" This is exactly what I am trying to accomplish.Are there any sources online that can point me in the right direction? Or can someone lend me some help?I'm not even sure if this is the right section to post this in; if not, where should it go? Thank you for any help you can provide.
  6. My page is here: http://fliers.greenbranders.com/images/matt/In the header, I want "Mike Smith Homepage" to have like 20 pixels of top padding and 300 pixels of left padding. In my CSS, when I add padding-top:20px and padding-left:300px to my "header" class, the blue box extends 20px on the top and 300px to the right. I just want to position the text inside. Can someone please help me out?
  7. Yes, at the top of the form I have this code:<script language="JavaScript" src="/surechoice/resell_check.js" type="text/javascript"></script><form action="#thankyou" method="post" name="referaclient" onSubmit="return checkrefervalues();"><input type="hidden" name="sendemail" value="rac"> The problem is, I'm not really familiar with JS... I've enrolled in a course on web scripting this semester but so far I've only had one class. I don't know how to do any of what you described. I was hoping this issue I'm having would be a quick fix... not so sure of that now.
  8. Right, the form submits when it shouldn't. When I hit submit with blank information, it takes me to the thank you page but lists this error above the form: "Error - Please check the phone number and try again."I should add that this ASP logic is included in the HTML:<% 'declare vars for sending email Dim bReturn, dtSendDate Dim sMailSubject, sMailBody, sMailFromAddress, sMailFromName, sMailToAddress, sMailToName dim sendemail,emailbodytext,refererror sendemail = "" sendemail = Request.Form("sendemail") refererror = "" Function IllegalChars(sInput) Dim sBadChars, iCounter IllegalChars=False sBadChars=array("drop", "--", "insert", "delete", "xp_", "#", "%","(", ")", "/", "\", ":", ";", "<", ">", "=", "[", "]", "?", "`", "|") For iCounter = 0 to uBound(sBadChars) If Instr(sInput,sBadChars(iCounter))>0 Then IllegalChars=True End If Next End function If sendemail = "rac" Then dim str_name, str_phone, str_email, ephonelen, str_companyname str_name = Request.Form("name") str_phone = Request.Form("areacode") & Request.Form("exchange") & Request.Form("phonenumber") ephonelen = Len(str_phone) str_email = Request.Form("email") str_companyname = Request.Form("companyname") if (str_name = "") or (str_email = "") or (str_companyname = "") then refererror = "missinginfo" end if if (str_phone = "") or (IsNumeric(str_phone) = false) or (ephonelen <> 10) then refererror = "phonenumber" end if If IllegalChars(str_name)=True OR IllegalChars(str_phone)=True OR IllegalChars(str_email)=True Then refererror = "dataintegrity" End If if refererror = "" then emailbodytext = "name | phonenumber | email | companyname | " & Request.Form("name") & " |" & Request.Form("areacode") & Request.Form("exchange") & Request.Form("phonenumber") & " |" & Request.Form("email") & " |" & Request.Form("companyname") dtSendDate = Now() sMailSubject = "Resell a Client - Accountant Reseller Information Request" sMailBody = emailbodytext sMailFromAddress = "doug@sure.com" sMailFromName = "Doug" sMailToAddress = "cps@sure.com" sMailToName = "Frank Zesty" bReturn = oCustServ.SendMessage("----", 99, sMailFromAddress, sMailFromName, sMailToAddress, sMailToName, sMailBody, sMailSubject, dtSendDate) '============= CHECK FOR ERROR ================== if bReturn = False then bReturn = SetErrorInfo (1, "----", 0) '=========== END CHECK FOR ERROR ================ End If End If %> And this logic is in the HTML as well: <%if sendemail = "rac" and refererror <> "" Then If refererror = "phonenumber" then Response.Write ("<p class='inputboxheaders error'><strong>Error - Please check the phone number and try again.</strong>") end if If refererror = "missinginfo" then Response.Write ("<p class='inputboxheaders error'><strong>Error - You are missing information, please answer all of the questions below so that we may better serve you.</strong>") end if If refererror = "dataintegrity" then Response.Write ("<p class='inputboxheaders error'><strong>Error - There was a problem with some of your answers, please try again.</strong>") end if end If%> Does this help any?
  9. Well, I am testing it by hitting the submit button without entering any information in the form fields. On the working form, a JavaScript window will pop up and say "hey, you need to enter this, this and this". But with the new JS, I hit submit with no information and it takes me to the thank-you page I have set up when a user submits their information. I'm not sure what you mean in your second question... do you mean taking the code where it is and moving it around the existing code? I have tried moving it to the top and bottom of the JS, and get the same error result.
  10. I want to add Google Tracking code to my JavaScript, and when I add the code it breaks. Here's what the original JS looks like: function checkrefervalues(){ message=""; if (document.referaclient.companyname.value.length ==0){ message = message+"Please enter your Company Name.\n"; } if(document.referaclient.name.value.length ==0){ message = message+"Please enter your Name.\n"; } if (document.referaclient.email.value.length ==0){ message = message+"Please enter your Email Address.\n"; } else { checkemail(document.referaclient.email.value) } if(document.referaclient.areacode.value.length != 3 || document.referaclient.exchange.value.length != 3 || document.referaclient.phonenumber.value.length != 4){ if(IsNumeric(document.referaclient.areacode.value) != 1 || IsNumeric(document.referaclient.exchange.value) != 1 || IsNumeric(document.referaclient.phonenumber.value) != 1){ message = message+"Please enter a Numeric Phone Number.\n"; } else { message = message+"Please enter a Phone Number.\n";} } else{ if(IsNumeric(document.referaclient.areacode.value) != 1 || IsNumeric(document.referaclient.exchange.value) != 1 || IsNumeric(document.referaclient.phonenumber.value) != 1){ message = message+"Please enter a Numeric Phone Number.\n"; } } if(document.referaclient.exchange.value == 555){ message = message+"Please enter a Valid Phone Number.\n"; } if (document.referaclient.terms.checked ==false){ message = message+"Please agree to the Terms & Conditions.\n"; } if (message.length > 0){ alert(message); return false; } return true; } function checkemail(str){ var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i if (filter.test(str)) testresults=true else{ message = message + "Email address seems incorrect (check @ and .'s)\n" return false; } } function IsNumeric(sText) { var ValidChars = "0123456789"; var IsNumber=true; var Char; for (i = 0; i < sText.length && IsNumber == true; i++) { Char = sText.charAt(i); if (ValidChars.indexOf(Char) == -1) { IsNumber = false; } } return IsNumber; } var isNN = (navigator.appName.indexOf("Netscape")!=-1); function autoTab(input,len, e) { var keyCode = (isNN) ? e.which : e.keyCode; var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46]; if(input.value.length >= len && !containsElement(filter,keyCode)) { input.value = input.value.slice(0, len); input.form[(getIndex(input)+1) % input.form.length].focus(); } function containsElement(arr, ele) { var found = false, index = 0; while(!found && index < arr.length) if(arr[index] == ele) found = true; else index++; return found; } function getIndex(input) { var index = -1, i = 0, found = false; while (i < input.form.length && index == -1) if (input.form[i] == input)index = i; else i++; return index; } return true; } And my new code simply replaces: if (message.length > 0){ alert(message); return false; } return true;} with: if (message.length > 0){ alert(message); return false; }pageTracker._trackEvent('Accountant Forms', 'Referral’); return true;} Can someone help me out as to what the problem is? Any help is very appreciated! Thanks.
  11. You're correct - I had to add wmode="transparent" to the embed tag, and that solved it.thanks!
  12. I have a nav menu that uses dropdowns... here's an image of how the drop-down works:But there are pages of my website that have an embedded video on them, and the video is directly underneath a dropdown menu. The problem is, the dropdown menu goes behind the video, like this:To me, this screams out z-index, but I've tried applying a negative z-index to the video and a positive z-index to the <ul> in the nav menu, and it didn't solve my problem.Here is the code for the nav menu: <div id="navmenu" class="navmenu960"><ul id="menunav"><li><a href="/product/payroll/" title="Payroll" class="payroll" ><strong>Payroll</strong></a> <ul> <li class="top"><div class="navpaddingtop"><a href="/product/payroll/" title="Online Payroll Advantage" >Online Payroll Advantage</a></div></li> <li><a href="/product/payroll/what-you-get.asp" class="bckgroundarrow" title="Payroll Features" ><div class="navpadding">Payroll Features</div></a> <ul> <li class="top"><div class="flyoutpaddingtop"><a href="/product/payroll/iphone-app.asp" title="iPhone® Payroll App" >iPhone<sup><small>®</sup></small> Payroll App</a></div></li> <li><a href="/product/payroll/software-integration.asp" class="bckground" title="Accounting Integration" ><div class="flyoutpadding">Accounting Integration</div></a></li> <li><a href="/product/payroll/1-clickpayroll.asp" class="bckground" title="1-Click Technology" ><div class="flyoutpadding">1-Click™ Technology</div></a></li> <li><a href="/product/payroll/mobile-applications.asp" class="bckground" title="Mobile Applications" ><div class="flyoutpadding">Mobile Ready</div></a></li> <li class="bottom"><div class="flyoutpaddingbottom"><a href="/product/payroll/what-you-get.asp" title="All Our Features" >View All Our Features</a></div></li> </ul> </li> <li><a href="/quote/instant_price_quote.asp" class="bckground" title="Payroll Pricing" ><div class="navpadding">Payroll Pricing</div></a></li> <li><a href="/product/payroll/payroll-services.asp" class="bckground" title="Payroll Services" ><div class="navpadding">Compare Payroll Services</div></a></li> <li><a href="/guidedtour/" class="bckground" title="SurePayroll Guided Tour" ><div class="navpadding">SurePayroll Guided Tour</div></a></li> <li class="bottom"><div class="navpaddingbottom"><a href="/enroll/CreateAccount.asp?" title="New Payroll Enrollment" >New Payroll Enrollment</a></div></li> </ul></li><li><a href="/product/" title="Products & Services" ><strong>Products & Services</strong></a> <ul> <li class="top"><div class="navpaddingtop"><a href="/product/payroll/" title="Payroll">Payroll</a></div></li> <li class="bottom"><div class="navpaddingbottom"><a href="/product/" title="Integrated Services" >Integrated Services</a></div></li> </ul></li><li><a href="/surechoice/accountant_access.asp" title="Accountant Center" ><strong>Accountant Center</strong></a></li><li><a href="/spsite/resources/" title="Small Business Resources" ><strong>Small Business Resources</strong></a></li><li><a href="/scorecard/" title="SurePayroll Scorecard" ><strong>SurePayroll Scorecard</strong></a></li><li class="aboutus"><a href="/spsite/company/" title="About Us" class="aboutus"><strong>About Us</strong></a> <ul> <li class="top"><div class="navpaddingtop"><a href="/spsite/company/meet-the-team.asp" title="Meet Our Team">Meet Our Team</a></div></li> <li><a href="/spsite/press/" title="Media Center" class="bckground"><div class="navpadding">Media Center</div></a></li> <li><a href="/businesspartners/" title="Partner Programs" class="bckground"><div class="navpadding">Partner Programs</div></a></li> <li><a href="/securitycenter/bcrhware/" title="Security and Privacy" class="bckground"><div class="navpadding">Security</div></a></li> <li class="bottom"><div class="navpaddingbottom"><a href="/contactus/" title="Contact Us" >Contact Us</a></div></li> </ul></li></ul></div> The code for the video is a simple <embed> call out.Can somebody please help me fix this problem? Any help is greatly appreciated, thanks!
  13. Hi, I am trying to create a stage header using tables and CSS. My problem is that in IE6 and IE7, there is a small amount of white space above the bottom shadow, which you can't see in IE8 or FireFox. Here is what my code looks like: <div style="z-index:5;position:absolute;padding-left:20px;padding-top:20px;"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><img src="/images/960/global/stage-front-lt.gif" /></td> <td><div style="background-color:#000; width:550px; height: 145px; border-bottom: solid 1px #ccc; border-top: solid 1px #ccc;"></div></td> <td><img src="/images/960/global/stage-prods-services.jpg" /></td> </tr> </table> </div> <table cellpadding="0" cellspacing="0" border="0" style="z-index:-5;"> <tr> <td> <div class="stage-back"> </div> </td> <td> <img src="/images/960/global/stage-shadow-rt.gif" /> </td> </tr> <tr> <td colspan="2"><img src="/images/960/global/stage-shadow-bt.gif" /></td> </tr> </table> And the CSS: .stage-back {background-color:#f9f9f8; height: 185px; width: 948px; border: solid 1px #ccc;} And here is the image in IE8, with no white space:And here it is in IE6, with the white space:Is there any CSS I can add to my stylesheet to remove this white space in IE6 and IE7?Thanks for any help you can provide.
  14. Hi, I am referencing code I found on this page here: http://www.position-relative.com/tutorials...ss_bg_image.phpI have created a link on my background image. Click here for the page I am referring to.The linked part is where you see "Click here to see product screenshots", which I have made linkable through CSS. However, in IE7, the "text" is not clickable. It works in IE6, on Macs, and in every other browser. By looking at the code, does anyone see something I am missing? Or a better way to accomplish this?Thanks for any help anyone can provide me.
  15. I changed the DOCTYPE to a strict DTD and the problem still occurs
  16. I'm using<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> The inputWrap isn't defined anywhere on my style sheet, I just thought I should reference it in this post so you will see it has no styles to it
  17. Hi, here is what my problem looks like:As you can see, when I input a lot of text, the input box gets pushed over to the left, and the text is displayed on the background color. This only happens in IE6 and IE7, as far as I can tell...Here is the form code: <script language="JavaScript" src="/quote/960/payroll_check.js" type="text/javascript"></script> <form class="fpq" action="/quote/instant_price_quote.asp" method="POST" id="quotesform1" name="quotesform1" onSubmit="return checkquotevalues();"> <input name="ReferralCode" type="hidden"> <table cellpadding="0" cellspacing="0" border="0" width="120"> <tr> <td> <div id="inputWrap"><input class="tb-condensed bold color727272 fontsize10" type="text" size="30" maxlength="50" id="FirstName" name="FirstName" value="First Name" tabindex="1" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'First Name':this.value;" /></div> </td> <td> <div id="inputWrap"><input class="tb-condensed bold color727272 fontsize10" type="text" size="30" maxlength="50" id="LastName" name="LastName" value="Last Name" tabindex="2" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Last Name':this.value;" /></div> </td> </tr> <tr> <td> <div id="inputWrap"><input class="tb-condensed bold color727272 fontsize10" type="text" size="30" maxlength="50" id="Email" name="Email" value="Email" tabindex="3" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Email':this.value;" /></div> </td> <td> <div id="inputWrap"><input class="tb-condensed bold color727272 fontsize10" type="text" size="30" maxlength="50" id="NumberOfEmployees" name="NumberOfEmployees" value="# of Employees" tabindex="4" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'# of Employees':this.value;" /></div> </td> </tr> <tr> <td colspan="2" valign="middle"> Phone # <span id="inputWrap" class="lpadding33"> <input class="tb-condensedSm bold color727272 fontsize10" type="text" size="3" maxlength="3" id="text2" name="phone1" value="" tabindex="5" /> <input class="tb-condensedSm bold color727272 fontsize10" type="text" size="3" maxlength="3" id="text1" name="phone2" value="" tabindex="6" /> <input class="tb-condensedMe bold color727272 fontsize10"type="text" size="4" maxlength="4" id="text3" name="phone3" value="" tabindex="7" /> </span> </td> </tr> <tr> <td colspan="2"> What's Your Payroll Frequency? <div id="inputWrap"> <select name="PayrollFrequency" tabindex="8" style="width:240px;" /> <option value='0'>Select one</option> <option value="W">Weekly</option> <option value="BW">Bi-Weekly</option> <option value="S">Semi-Monthly</option> <option value="M">Monthly</option> </select></div> </p> </td> </tr> <tr> <td colspan="2"> What's Your Current Payroll Method? <div id="inputWrap" style="padding-bottom:5px;"> <select name='PayrollMethod' tabindex="9" style="width:240px;" /> <option value='0'>Select one</option> <option value='New Business'>New Business</option> <option value='In House'>In House</option> <option value='Not Currently Processing'>Not Currently Processing</option> <option value='Accountant'>Accountant/Bookkeeper</option> <option value='Payroll Service'>Payroll Service</option> <option value='PEO/Leasing Company'>PEO/Leasing Company</option> <option value='Other'>Other</option> </select></div> </p> </td> </tr> <tr> <td colspan="2"> <a target="_blank" href="https://www.scanalert.com/RatingVerify?ref="><img width="115" height="30" border="0" src="//images.scanalert.com/meter/32.gif" alt="HACKER SAFE certified sites prevent over 99.9% of hacker crime." oncontextmenu="alert('Copying Prohibited by Law - HACKER SAFE is a Trademark of ScanAlert'); return false;"></a> <input type="image" src="/images/960/payroll/payroll-submit.gif" tabindex="10" alt="Get Instant Quote" id="submit2" name="submit2" /> </td> </tr> </table> <input type="hidden" name="ContactRegarding" value="Q"> <input type="hidden" name="SaveData" value="True"> <input type="hidden" name="ReferralCode" value="<% =fm_refcode%>"> </form> Are here are the styles: .tb-condensed {border:0; background: transparent url(/images/v1_1/surechoice/condensed-tb.gif) no-repeat; height: 27px; width: 94px; padding-top:7px; padding-right:20px; padding-left: 10px}.tb-condensedSm {border:0; background: transparent url(/images/v1_1/surechoice/condensed-tbSm.gif) no-repeat top left; height: 27px; width: 40px; padding-top:7px; padding-left:5px;}.tb-condensedMe {border:0; background: transparent url(/images/v1_1/surechoice/condensed-tbMe.gif) no-repeat top left; height: 27px; width: 60px; padding-top:7px; padding-left:5px;}#inputWrap {} Thanks for any help.
  18. Hi I am trying to get my form to recognize when no input has been entered. Currently on the form, I have an autoclear function, which gives each input a value. On two of the inputs, the Phone and Email, I am receiving an error message for an incorrect value and for nothing being entered. Here's a screenshot of the error:Here is the HTML for the form: <table cellpadding="0" cellspacing="0" border="0"> <tr> <td colspan="2"> <div id="inputWrap"><input class="tb-condensed bold color727272 fontsize10" type="text" size="30" maxlength="50" id="employees" name="employees" value="# of Employees" tabindex="2" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'# of Employees':this.value;" /></div> </td> </tr> <tr> <td> <div id="inputWrap"><input class="tb-condensed bold color727272 fontsize10" type="text" size="30" maxlength="50" id="firstname" name="firstname" value="First Name" tabindex="2" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'First Name':this.value;" /></div> </td> <td> <div id="inputWrap"><input class="tb-condensed bold color727272 fontsize10" type="text" size="30" maxlength="50" id="lastname" name="lastname" value="Last Name" tabindex="2" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Last Name':this.value;" /></div> </td> </tr> <tr> <td> <div id="inputWrap"><input class="tb-condensed bold color727272 fontsize10" type="text" size="30" maxlength="50" id="email" name="email" value="Email" tabindex="2" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Email':this.value;" /></div> </td> <td> <div id="inputWrap"><input class="tb-condensed bold color727272 fontsize10" type="text" size="30" maxlength="50" id="phone" name="phone" value="Phone Number" tabindex="2" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Phone Number':this.value;" /></div> </td> </tr> <tr> <td colspan="2"> What's Your Payroll Frequency? <div id="inputWrap" style="padding-bottom:5px;"> <select name="PayrollFrequency" tabindex="9" /> <option value='0'>Select one</option> <option value="W">Weekly</option> <option value="BW">Bi-Weekly</option> <option value="S">Semi-Monthly</option> <option value="M">Monthly</option> </select></div> </p> </td> </tr> <tr> <td colspan="2"> What's Your Current Payroll Method? <div id="inputWrap" style="padding-bottom:10px;"> <select name='PayrollMethod' tabindex="10" /> <option value='0'>Select one</option> <option value='New Business'>New Business</option> <option value='In House'>In House</option> <option value='Not Currently Processing'>Not Currently Processing</option> <option value='Accountant'>Accountant/Bookkeeper</option> <option value='Payroll Service'>Payroll Service</option> <option value='PEO/Leasing Company'>PEO/Leasing Company</option> <option value='Other'>Other</option> </select></div> </p> </td> </tr> <tr> <td colspan="2"> <input type="image" src="/images/960/payroll/payroll-submit.gif" tabindex="11" alt="Get Instant Quote" id="submit2" name="submit2" /> </td> </tr> </table> And here's my JS: function checkquotevalues(){ message=""; if(document.quotesform1.employees.value =='# of Employees'){ message = message+"Please enter a # of Employees.\n"; } else { if(document.quotesform1.employees.value.length != 4){ if(IsNumeric(document.quotesform1.employees.value) != 1){ message = message+"Please enter a Numeric # of Employees.\n"; } } else { message = message+"Please enter a # of Employees.\n";} } if(document.quotesform1.firstname.value.length ==0){ message = message+"Please enter a First Name.\n"; } if(document.quotesform1.firstname.value =='First Name'){ message = message+"Please enter a First Name.\n"; } if(document.quotesform1.lastname.value.length ==0){ message = message+"Please enter a Last Name.\n"; } if(document.quotesform1.lastname.value =='Last Name'){ message = message+"Please enter a Last Name.\n"; } if (document.quotesform1.email.value =='Email'){ message = message+"Please enter your Email Address.\n"; } if (document.quotesform1.email.value.length ==0){ message = message+"Please enter your Email Address.\n"; } else { checkemail(document.quotesform1.email.value) } if(document.quotesform1.phone.value =='Phone Number'){ message = message+"Please enter a Phone Number.\n"; } if(document.quotesform1.phone.value.length != 10){ if(IsNumeric(document.quotesform1.phone.value) != 1){ message = message+"Please enter a Numeric Phone Number.\n"; } else { message = message+"Please enter a Phone Number.\n";} } else{ if(IsNumeric(document.quotesform1.phone.value) != 1){ message = message+"Please enter a Numeric Phone Number.\n"; } } if(document.quotesform1.PayrollFrequency.selectedIndex == 0){ message = message+"Please enter a Payroll Frequency.\n"; } if(document.quotesform1.PayrollMethod.selectedIndex == 0){ message = message+"Please enter a Payroll Method.\n"; } if (message.length > 0){ alert(message); return false; } return true; } function checkemail(str){ var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i if (filter.test(str)) testresults=true else{ message = message + "Email address seems incorrect (check @ and .'s)\n" return false; } } function IsNumeric(sText) { var ValidChars = "0123456789"; var IsNumber=true; var Char; for (i = 0; i < sText.length && IsNumber == true; i++) { Char = sText.charAt(i); if (ValidChars.indexOf(Char) == -1) { IsNumber = false; } } return IsNumber; }
  19. Nm, found a script here:http://perishablepress.com/press/2008/07/2...e-inputs-focus/
  20. Hi, my page here: https://www.surpayroll.com/surechoice/accountant_access.asp?. For the Log In part at the top, I have a script in there that makes the input value disappear upon being clicked on. I want to make it so that the value will reappear if you do not enter any text. I've seen this done on sites before but couldnt find one as an example. But how the page is currently, once you click in the input box, the value will disappear completely. Is there a script that will return the value if the user does not enter any text?
  21. Here is a link to the website
  22. I have styled my navigation menu with rollover links that give a dropdown menu on my page here. If you look in any browser besides IE6, such as IE7, IE8, FireFox, Chrome, etc., the rollovers look how they should: the green button on the "off" state is replaced entirely by a white color, and the text color changes from white to green.However, if you look in IE6, when you rollover the top button, only part of the text is given the rollover state.And if you rollover the middle buttons, they are completely white and you cannot see the 1px gray border on the left and right.Is this a problem I can solve by tweaking my CSS, or will I have to rewrite my code in order for IE6 to play nice? Thank you for your help.
  23. Hi, I am wondering why the input button for my dropdown list looks very different between Firefox and Internet Explorer. My page is here: www.surepayroll.com/spsite/resources/articles/, and if you look in Firefox, the input button doesn't have a border and is shaded a light tan color. In Internet Explorer the button looks like your typical input button. Where is the styling for this, and how can I get the button in FF to look like the one in IE?
×
×
  • Create New...