Jump to content

scorpion

Member
  • Posts

    45
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Melbourne, Australia
  • Interests
    Genetic Genealogy
    Classic Motorcycles
    Web Design

Contact Methods

  • Website
    http://www.irishtype3dna.org

scorpion's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. CoffeeCup has the facility to change the Initial DOCTYPE. Look in Tools > Preferences > General > Initial DOCTYPE. I had a play with CoffeeCup for awhile but returned to Notepad++. I do like the way I can upload from within Coffeecup - saved having to open Filezilla but it seemed to screw a few things up in background like changing single apostrophes to a form that required & # 1 8 0 ; to validate. I prefer to type ...don't... to don& # 1 8 0 ;t Gee I can't even type the code for the single apostrophe without it converting it! (Just remove the spaces to see what I mean!) Cheers
  2. I have played with your code and now have this which works and validates to XHTML:- <div id="mail"> <script type="text/javascript"> <!-- // protected email script emailE='info' emailE=(emailE + '@' + 'irishtype3dna.org?Subject=Information%20Request') document.write('<a href="mailto:' + emailE + ' ">' + '<img src="/images/envelope.jpg" alt="" width="61" height="31" border="0" /> Mail: Information Request</a>') //--> </script> <noscript> <p>Email address protected by JavaScript.<br/> Please enable JavaScript to contact me.</p> </noscript> </div> One happy camper!!! I wonder if it was the commenting out of the javascript code that allowed the full validation?
  3. Thanks Wickham. Initially I had 8 errors with XHTML validation but after using lower case for TYPE, both instances of NOSCRIPT and changing <br> to br/> your code passed muster! I will now have a play to see if I can include the Envelope image and I will be away. Cheers!
  4. Hmmm .. indeed! I tried the semicolons but the errors are still there. AND, I found the "" that the validator said were needed around the width="61" height="31" etc, actually caused the Envelope to disappear altogether! I am flying completely in the dark, and unless or until I can find a routine that I can 'lift', I will just stick to the HTML method as in my last post. Thanks anyway.
  5. Well I tried wrapping with a <p> ... </p> and with a <div> ... </div> but no joy. I had wanted to give some sort of protection against spammers harvesting email addresses, and the Javascript had worked fine in HTML Strict, but not, it seems in XHTML Transitional. For the moment at least, I have gone back to the usual HTML code with a corresponding id in the CSS for font and size of the text:- <div id="mail"> <p><a href='mailto:info@irishtype3dna.org?Subject=Information%20Request' target="_blank"> <img src="/images/envelope.jpg" alt="" width="61" height="31" border="0" /> Information Request</a></p> </div> This has validated to XHTML 1.0 Transitional. I will keep looking for a javascript routine that validates in XHTML. Cheers
  6. I wanted to use target="_blank" to have my external links open in a new tab. I found of course that this is only valid in XHTML so I have given all my webpages the following definition:- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> After wading through and correcting all the errors that W3C Validation picked up, I am left with 2 that appear in a Javascript routine that I use to allow a reader to send me an email. I am not versed in the intricacies of Javascript. Can I have some help please? The routine is:- <script type="text/javascript"> //-- Mail Variables - emailname = "info" emailserver = "irishtype3dna.org" emailsubject = "?Subject=Information Requested" // -- Show Envelope Here: document.write("<a href='mailto:" + emailname + "@" + emailserver + emailsubject + "' >"); document.write("<img src='images/envelope.jpg' width="61" height="31" border="0" alt="" />"); document.write("</a>"); // -- Show a Text Reference Here: document.write("<font face='Monotype Corsiva' color='008000' size="3" >"); document.write("<a href='mailto:" + emailname + "@" + emailserver + emailsubject + "' >"); document.write(" Mail: Information Requested"); document.write("</a>"); document.write("</font>"); </script> Errors are:- Line 399, Column 89: document type does not allow element "a" here …ite("<a href='mailto:" + emailname + "@" + emailserver + emailsubject + "' >"); Line 403, Column 73: document type does not allow element "font" here document.write("<font face='Monotype Corsiva' color='008000' size="3" >");
  7. Avatar is from a drawing in a 1980s Classic Bike mag:- "Classic Motorcycling Legends" #12, p11, an article called "When I was a Lad" of a group of Rockers. I ride a 1961 Triumph Bonneville (as depicted) that I restored in 1986. My other passion
  8. Doing some hunting around on other forums I found a reference to Adblock addon blocking frames. Sure enough, it was Adblock stopping the Amazon frames from displaying. Update to FF3.6.7 must have reset my options. Cheers ... happy man again!
  9. It wasn't working last night, or again when I logged on this morning, still not showing on my computer now. I am using Windows XP Sp3. Only change is FF updating to 3.6.7
  10. I have a webpage that uses frames (for amazon links) which has always displayed correctly. With the latest FF update to 3.6.7, the frames do not show. Still displays correctly in IE 6, 7 and 8 and page validates correctly. The frames were floated to the left of the text. Space is still there but no content. Any thoughts? Site is ww w.irish type3dna.org/Bo oks.php (remove spaces)
  11. The thread on Google Fonts excited me to try text-shading on my website which looked brilliant using FF browser. My excitement was short-lived when I opened IE and only plain text was displayed. Using IE Tester, 6, 7 and 8 showed just plain text. I see text-shading is only supported in CSS3 CSS Properties and presumably IE is only CSS2 or CSS2.1
  12. I am also using JustHost. I am getting 50 individual visitors per day, about 6Mb/day, and the cpanel stats are great as are the video tutorials. $A118 ($US106) for 2 years. If someone signs up after hitting the ad on my page ww w.irishtype 3dna.org (delete two spaces), I get $40. It would pay for the hosting!
  13. I tried removing the centering div and it now works fine, so I went back to the css hr.bar and commented out the margin: 0 auto; that you had suggested and this is the element that does the centering. So! all is now well. Thanks again, Dennis
  14. I think I have found an answer. I need to add a 'center' div. It can be before the bar or surrounding it ... both work. <div class="center"></div><hr class="bar"> or <div class="center"><hr class="bar"></div> It seems that there is a need to set up the centering and then the hr remembers it. I thought I tried this earlier, but at least it works now! Cheers, Dennis
  15. Wickham ... I am probably thick but this line is what I have as my 'bar' just above my copyright line at the bottom of the page. <hr class="bar"> And the css stylesheet still contains:- hr.bar { /** Blue Dividing Bar **/ width:200px; margin:0 auto; height:4px; color:#506F89; background-color:#506F89; border:none; } So I don't see what you have done except change the color of the 'bar'. In my IE8 browser, this 'bar' is still left justified. Could you explain what you have changed from my existing code? Surely the order of elements in the hr.bar code does not matter?
×
×
  • Create New...