Dan Smith <[EMAIL PROTECTED]> wrote:

> Howdy
>
> I want to be able to change the colour of my text hyperlinks in
> Director

You can find a behavior that lets you do this at...
>>         http://perso.planetb.fr/newton/linkstyle.dir
Attach Chris Walcott's "Hypertext - General" behavior from the Behavior
Library to the same sprite to get the links to react when you click on
them.

> Director is telling me that 'the string does not
> end correctly' - anyone have any tips?

When creating a string in Lingo, you need to use "&QUOTE&" instead of "
and "&RETURN&" instead of the carriage return character.  The following
is all one line of code: remove any carriage returns before testing.

set member("link").HTML =
"<html>"&RETURN&"<head>"&RETURN&"<title>Untitled</title>"&RETURN&"</head
>"&RETURN&"<body bgcolor="&QUOTE&"#FFFFFF"&QUOTE&">"&RETURN&"<font
size=4 color="&QUOTE&"#FF0000"&QUOTE&"><b><p
align="&QUOTE&"right"&QUOTE&"><a href="&QUOTE&"somewhereelse"&QUOTE&">go
somewhere else</a></font>"&RETURN&"</body>"&RETURN&"</html>"

Cheers,

James



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to