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 Attachment(s)
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.
Attachment 126947 Attachment 126948
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