| View previous topic :: View next topic |
| Author |
Message |
zhu Newbie

Joined: 29 Jul 2005 Posts: 1
|
Posted: Fri Jul 29, 2005 4:45 pm Post subject: Why does HTML writer change the JavaScript code I paste in |
|
|
I am using Openoffice 2.0 Beta and Openoffice 1.1.3 Chinese for Html editing.
I need to paste following Javascript code into the HTML page I have:
*******************into the Head section***************************
<SCRIPT language=JavaScript src="menu.js"></SCRIPT>
<SCRIPT language=JavaScript src="menu_items.js"></SCRIPT>
<SCRIPT language=JavaScript src="menu_tpl.js"></SCRIPT>
<LINK href="menu.css" rel=stylesheet>
**************************************************************************
*******************Into the Body section*******************************
<SCRIPT language=JavaScript>
new menu (MENU_ITEMS, MENU_TPL);
</SCRIPT>
*********************************************************************************
After I paste these two parts into a Html file under HTML view,
if I go back to Normal Design View and Change anything there and save the file,
this---<LINK href="menu.css" rel=stylesheet>---line of code will be removed .
What did I do wrong?
Thanks for your help. |
|
| Back to top |
|
 |
8daysaweek.co.uk Super User


Joined: 29 Nov 2003 Posts: 2130 Location: UK
|
Posted: Sun Jul 31, 2005 9:16 am Post subject: Re: Why does HTML writer change the JavaScript code I paste |
|
|
Hi zhu,
| zhu wrote: | | What did I do wrong? |
Probably nothing. OOo mangles HTML code. It has been discussed here before, try doing a search of the forms to see previous discussions.
You may like to try an alternative HTML editor like NVU, or Arachnophilia.
BFN , _________________ James
www.8daysaweek.co.uk - A User-Focused OOo site |
|
| Back to top |
|
 |
|