Jake,

Have you tried the second option, I've never seen a variable assigned with
<<Var format...

Till We Meet Again...

Clifford W. Hansen
Operations Support Developer
Aspivia (Pty) Ltd.

+27 (0) 11 259-1150 (Switchboard)
+27 (0) 11 259-1019 (Fax)
+27 (0) 83 761-0240 (Mobile)
[EMAIL PROTECTED] (EMail)

Registered Linux user number 343424 on http://counter.li.org/

"We have seen strange things today!" Luke 5:26

This message contains information intended for the perusal, and/or use (if
so stated), of the stated addressee(s) only. The information is confidential
and privileged. If you are not an intended recipient, do not peruse, use,
disseminate, distribute, copy or in any manner rely upon the information
contained in this message (directly or indirectly). The sender and/or the
entity represented by the sender shall not be held accountable in the event
that this prohibition is disregarded.

If you receive this message in error, notify the sender immediately by
e-mail, fax or telephone and return and/or destroy the original message.

The views or representations contained in this message, whether express or
implied, are those of the sender only, unless that sender expressly states
them to be the views or representations of an entity or person, who shall be
named by the sender and who the sender shall state to represent. No
liability shall otherwise attach to any other entity or person.


-----Original Message-----
From: Jake McHenry [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 18, 2004 8:56 AM
To: Clifford W. Hansen
Subject: Re: [PHP] Javascript Mouseover Help

In my post, EndFormat was on it's own line. Outlook express probably screwed
it up.

and I'm not seeing where you added a closing ? The javascript worked fine,
thats not the problem, it's just somehow not being executed.

Jake


----- Original Message -----
From: "Clifford W. Hansen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 18, 2004 1:45 AM
Subject: RE: [PHP] Javascript Mouseover Help


> Jake,
>
> Personally I don't use the <<EndHTML things...
>
> Try using something like this:
> [code]
> $tableheaderformat = <<<EndFormat
> id="JMTS" bgcolor="#ABCED6" onmouseover="if(document.layers) {
> document.layers['JMTS'].bgColor='#EEEEEE' } else { if(document.all) {
> document.all['JMTS'].
> style.background='#EEEEEE' } else { if(this.style) {
> this.style.background='#EEEEEE' } } }" onmouseout="if(document.layers) {
> document.layers['JMTS'].bgColor= '#ABCED6' } else { if(document.all) {
> document.all['JMTS'].style.background='#ABCED6' } else { if(this.style) {
> this.style.background='#ABCED6' } } }"
> EndFormat;
> [/code]
>
> EndFormat; was not on a line of it's own...
> Also there was no closing " on the second last line "'#ABCED6' } } }"
>
> Or
>
> [code]
> $tableheaderformat = "
> id=\"JMTS\" bgcolor=\"#ABCED6\" onmouseover=\"if(document.layers) {
> document.layers['JMTS'].bgColor='#EEEEEE' } else { if(document.all) {
> document.all['JMTS'].
> style.background='#EEEEEE' } else { if(this.style) {
> this.style.background='#EEEEEE' } } }\" onmouseout=\"if(document.layers) {
> document.layers['JMTS'].bgColor= '#ABCED6' } else { if(document.all) {
> document.all['JMTS'].style.background='#ABCED6' } else { if(this.style) {
> this.style.background='#ABCED6' } } }\";
> [/code]
>
> Just escape the " with \
>
> Hope this helps...
>
> Till We Meet Again...
>
> Clifford W. Hansen
> Operations Support Developer
> Aspivia (Pty) Ltd.
>
> +27 (0) 11 259-1150 (Switchboard)
> +27 (0) 11 259-1019 (Fax)
> +27 (0) 83 761-0240 (Mobile)
> [EMAIL PROTECTED] (EMail)
>
> Registered Linux user number 343424 on http://counter.li.org/
>
> "We have seen strange things today!" Luke 5:26
>
> This message contains information intended for the perusal, and/or use (if
> so stated), of the stated addressee(s) only. The information is
confidential
> and privileged. If you are not an intended recipient, do not peruse, use,
> disseminate, distribute, copy or in any manner rely upon the information
> contained in this message (directly or indirectly). The sender and/or the
> entity represented by the sender shall not be held accountable in the
event
> that this prohibition is disregarded.
>
> If you receive this message in error, notify the sender immediately by
> e-mail, fax or telephone and return and/or destroy the original message.
>
> The views or representations contained in this message, whether express or
> implied, are those of the sender only, unless that sender expressly states
> them to be the views or representations of an entity or person, who shall
be
> named by the sender and who the sender shall state to represent. No
> liability shall otherwise attach to any other entity or person.
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to