xman51
06-21-2005, 10:05 PM
Hello All,
Does anyone know how to echo with line returns?
Here is my code:
echo "<script language='JavaScript'>" .
"var isInternetExplorer = navigator.appName.indexOf('Microsoft') != -1;" .
"function Testbutton_DoFSCommand(command, args) {" .
"var TestbuttonObj = isInternetExplorer ? document.all.Testbutton : document.Testbutton;" .
"alert('Command: ' + command + ' Args: ' + args)" .
"}" .
"}" .
"if (navigator.appName && navigator.appName.indexOf('Microsoft') != -1 && navigator.userAgent.indexOf('Windows') != -1 &&
navigator.userAgent.indexOf('Windows 3.1') == -1) {" .
"document.write('<script language=\"VBScript\"\>\n');" .
"document.write('On Error Resume Next\n');" .
"document.write('Sub Testbutton_FSCommand(ByVal command, ByVal args)\n');" .
"document.write(' Call Testbutton_DoFSCommand(command, args)\n');" .
"document.write('End Sub\n');" .
"document.write('</script\>\n');" .
"}" .
"</script>"
I want it to echo a line return at every [color=Red][/ " . color] at the end of each line.
Thanks in advance,
Xman51
Does anyone know how to echo with line returns?
Here is my code:
echo "<script language='JavaScript'>" .
"var isInternetExplorer = navigator.appName.indexOf('Microsoft') != -1;" .
"function Testbutton_DoFSCommand(command, args) {" .
"var TestbuttonObj = isInternetExplorer ? document.all.Testbutton : document.Testbutton;" .
"alert('Command: ' + command + ' Args: ' + args)" .
"}" .
"}" .
"if (navigator.appName && navigator.appName.indexOf('Microsoft') != -1 && navigator.userAgent.indexOf('Windows') != -1 &&
navigator.userAgent.indexOf('Windows 3.1') == -1) {" .
"document.write('<script language=\"VBScript\"\>\n');" .
"document.write('On Error Resume Next\n');" .
"document.write('Sub Testbutton_FSCommand(ByVal command, ByVal args)\n');" .
"document.write(' Call Testbutton_DoFSCommand(command, args)\n');" .
"document.write('End Sub\n');" .
"document.write('</script\>\n');" .
"}" .
"</script>"
I want it to echo a line return at every [color=Red][/ " . color] at the end of each line.
Thanks in advance,
Xman51