OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Why does HTML writer change the JavaScript code I paste in

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
zhu
Newbie
Newbie


Joined: 29 Jul 2005
Posts: 1

PostPosted: Fri Jul 29, 2005 4:45 pm    Post subject: Why does HTML writer change the JavaScript code I paste in Reply with quote

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
View user's profile Send private message
8daysaweek.co.uk
Super User
Super User


Joined: 29 Nov 2003
Posts: 2130
Location: UK

PostPosted: Sun Jul 31, 2005 9:16 am    Post subject: Re: Why does HTML writer change the JavaScript code I paste Reply with quote

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 Smile,
_________________
James
www.8daysaweek.co.uk - A User-Focused OOo site
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group