Jump to content

jsaint

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by jsaint

  1. Dear Sirs:While I absolutely love the concept of your "unspamable email addresses" there are errors in the script that will not validate via: http://validator.w3.org/Original script is located at:http://www.javascriptkit.com/script/script2/unspam.shtmlYou have your script represented as:<script language="JavaScript"><!--var name = "protected";var domain = "cdrsoft.com";document.write('<a href=\"mailto:' + name + '@' + domain + '\">');document.write(name + '@' + domain + '</a>');// --></script>Specifically the first line is incorrect as it reads: <script language="JavaScript"> and should read: <script type="text/javascript">As this is a Javascript, you forgot to add the "\" to the closing href tag ... it reads </a> and should read <\/a>.I have noticed this a lot in several of the free javascripts that have peaked our interest, but it may be that since these are "older" javascripts, this was the original format. But they will not validate today.A corrected version that will validate is:<!-- Original script from CDRSoft.com --><script type="text/javascript"><!--var name = "protected";var domain = "cdrsoft.com";document.write('<a href=\"mailto:' + name + '@' + domain + '\">');document.write(name + '@' + domain + '<\/a>');// --></script><! -- Sample with "name of person" being linked to email address --><script type="text/javascript"><!-- Beginvar name = "protected";var domain = "cdrsoft.com";document.write('<a href=\"mailto:' + name + '@' + domain + '\">Protected CDRSoft<\/a>');// End --></script><! -- Sample with "email address" being linked to email address --><script type="text/javascript"><!-- Beginvar name = "protected";var domain = "cdrsoft.com";document.write('<a href=\"mailto:' + name + '@' + domain + '\">');document.write(name + '@' + domain + '<\/a>');// End--></script><! -- Sample with "gif or jpg thumbnail or icon" being linked to email address --><script type="text/javascript"><!-- Beginvar name = "protected";var domain = "cdrsoft.com";document.write('<a href=\"mailto:' + name + '@' + domain + '\"><img src="cdrsoft_icon.gif" border="0" width=100 height=50 alt="Corp Logo"><\/a>');// End --></script> We hope that this will assist anyone in the future with a validation problem for this script.Thank you./s/jsaint
  2. Thank Kaitco, that solved the problem completely and I can now get a full page Validation.Not sure who your information should be sent to at both the CSS Reference or HTML Reference, but it should be incorporated.Again many thanks.
  3. I am having the a problem getting the W3Validator or the HTML Validator to accept the below indicated type of table with a list and sub-list. I have not been able to find any HTML or CSS references that provide any sample of any kind of information that helps to resolve the Validation problem.Initially I got error msgs that said the <ul> code could not appear in the <td> section with out an Applet, Object, Map etc. Which by the way none of these references appear in the CSS References or in the HTML References.Such Validation error msgs are:---within the <td> tag without the <object> tag -----Error Line 387, column 20: document type does not allow element "UL" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag . <ul class="outside">or -- within the <td> and <object> tags but as a sub-list below an existing <ul> list ---Error Line 414, column 21: document type does not allow element "UL" here; assuming missing "LI" start-tag . <ul class="outside">YET, according to: http://www.w3schools.com/css/css_reference.asp ---- List and Marker reference the following is a perfectly good definition of a list:<html><head></head><body><table><tr><td><ul class="disc"> <li>Coffee</li> <li>Tea</li> <li>Coca Cola</li> <ul class="circle"> <li>Coffee</li> <li>Tea</li> <li>Coca Cola</li> </ul></ul></td></tr></table></body></html>I have searched high and low across the internet looking for a similar problem and have not found one. So I thought I would try here for help.So I added the <object> tag before the first <ul> tag, and that will generate a clean Validation approval. But if you have a sub-list as indicated below, I get the same error msg. I have truncated the web page below as it has not yet been finished to go to our website.FYI: I tried the Applet and Map tags, but they change the sub-list circles to disks and re-align the sub-list to the same as the primary list.How do I obtain a clean Validation of the web page and keep the <ul> list and sub-lists in separate <td> sections?Thank you.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html lang=en><head></head><body> <table border=0 width="100%" cellpadding=5> <tr> <td width="10%"> </td> <td width="40%" valign="top"><font size="2"> <object> <ul class="outside"> <li>Property Acquisition and Disposition</li> <li>Debt / Equity Sourcing and Placement</li> <li>Build-to-Suit and Design Build Services</li> <li>Joint Venture Structuring</li> </ul> </object> </font> </td> <td width="40%" valign=top><font size="2"> <object> <ul class="outside"> <li>Individual and Corporate Real Estate Portfolios</li> <ul class="outside"> <li>Asset Management</li> <li>Property Value Enhancement</li> <li>Property Management</li> <li>Financial and/or Property Expense Analysis</li> </ul> </ul> </object> </font> </td> <td width="10%" align=right valign=bottom><font size="1"> <a href=Scope.htm> Return to <br> Scope of Business</a> </font> <td> </tr></table></body></html>
×
×
  • Create New...