Welcome to TalkGraphics.com
Results 1 to 3 of 3
  1. #1

    Default Text Colour in an Email Script

    Not strictly related to XWD, but I'm using it on a draft website made with XWD...

    I would be grateful if the HTML experts could advise how I can colour the Off/Over/Visited text in this script (the background colour is the colour of my webpage):

    I found I can colour the text with the colour controls on the Webpage Properties>Website dialogue, but thought there might be an "individual" way of doing it.

    <div style="text-align:center; background-color:#06be3">
    <h2>
    <script language="JavaScript"><!--
    var name = "info";
    var domain = "iflewformma.com";
    document.write('<a href="mailto:' + name + '@' + domain + '">');
    document.write(name + '@' + domain + '</a>');
    // --></script>
    </h2>
    </div>

    Thanks, Al

  2. #2
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,740

    Default Re: Text Colour in an Email Script

    Using XWDP:

    Utilities > Web Properties > Link (tab) - type the desired address mailto:donkey@face.com
    Ensure Use Common Website Colours is ticked.

    Click the Website (tab) and play around with the colours to your hearts content.

    Click image for larger version. 

Name:	HP1.jpg 
Views:	58 
Size:	64.2 KB 
ID:	126947 Click image for larger version. 

Name:	HP2.jpg 
Views:	59 
Size:	63.1 KB 
ID:	126948

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,747

    Info Re: Text Colour in an Email Script

    Al, it is a case of building up the contents of the new page with more document.writes:
    Code:
    document.write ("style>\r/* unvisited link */\ra:link {\r  color: red;\r}\r\r");
    document.write ("/* visited link */\ra:visited {\r  color: green;\r}\r\r");
    document.write ("/* mouse over link */\ra:hover {\r  color: hotpink;\r}\r\r");
    document.write ("/* selected link */\ra:active {\r  color: blue;\r}\r");\r</script>");
    would be the structure but there there lots of validation pitfalls so i may have it wrong.

    The \r is supposed to be a CRLF but it might be \a or \n or any mix.
    Other non-alphabet characters may need to be "escaped": <, > and /.

    This should be enough to get you on track.

    Look the the HTML source and progress step-by-step.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •