summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/swriter/01/04200000.xhp
blob: 9e9d11c3fe69efe0253efa85f74e6e74dd658afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="UTF-8"?>
<!--***********************************************************************
 *
 *  The Contents of this file are made available subject to the terms of
 *  either of the following licenses
 *
 *         - GNU Lesser General Public License Version 2.1
 *         - Sun Industry Standards Source License Version 1.1
 *
 *  Sun Microsystems Inc., October, 2000
 *
 *  GNU Lesser General Public License Version 2.1
 *  =============================================
 *  Copyright 2000 by Sun Microsystems, Inc.
 *  901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License version 2.1, as published by the Free Software Foundation.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *  MA  02111-1307  USA
 *
 *
 *  Sun Industry Standards Source License Version 1.1
 *  =================================================
 *  The contents of this file are subject to the Sun Industry Standards
 *  Source License Version 1.1 (the "License"); You may not use this file
 *  except in compliance with the License. You may obtain a copy of the
 *  License at http://www.openoffice.org/license.html.
 *
 *  Software provided under this License is provided on an "AS IS" basis,
 *  WITHOUT WARRUNTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
 *  WITHOUT LIMITATION, WARRUNTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 *  See the License for the specific provisions governing your rights and
 *  obligations concerning the Software.
 *
 *  The Initial Developer of the Original Code is: Sun Microsystems, Inc..
 *
 *  Copyright: 2000 by Sun Microsystems, Inc.
 *
 *  All Rights Reserved.
 *
 *  Contributor(s): _______________________________________
 *
 *
 ************************************************************************--><helpdocument version="1.0">
<meta>
<topic id="textswriter0104200000xml" indexer="include" status="PUBLISH">
<title xml-lang="en-US" id="tit">Insert Script</title>
<filename>/text/swriter/01/04200000.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
<lastedited date="2003-10-31T00:00:00">converted from old format - fpe</lastedited>
</history>
</meta>
<body>
  
  
  <bookmark branch="hid/SW:MODALDIALOG:DLG_JAVAEDIT" xml-lang="en-US" id="bm_id3083451"/><bookmark branch="hid/.uno:InsertScript" xml-lang="en-US" id="bm_id3146320"/><paragraph role="heading" level="1" id="hd_id3147402" l10n="U" xml-lang="en-US" oldref="1">Insert Script</paragraph>
  <paragraph l10n="U" role="paragraph" id="par_id3155620" xml-lang="en-US" oldref="2"><variable id="scripttext"><ahelp hid=".uno:InsertScript" visibility="visible">Inserts a script at the current cursor position in an HTML or text document.</ahelp></variable></paragraph>
  <paragraph role="paragraph" id="par_id3145828" l10n="E" xml-lang="en-US" oldref="" localize="false"><link href="text/swriter/00/00000404.xhp#einfscript" name=""><embedvar href="text/swriter/00/00000004.xhp#wie"/></link></paragraph>
  <paragraph xml-lang="en-US" oldref="4" l10n="U" role="paragraph" id="par_id3149880">An inserted script is indicated by a small green rectangle. If you do not see the rectangle, choose <emph>Tools - Options - HTML Document</emph> - <link href="text/shared/optionen/01040200.xhp" name="View"><emph>View</emph></link>, and select the <emph>Notes </emph>check box. To edit a script, double-click the green rectangle.</paragraph>
  <paragraph xml-lang="en-US" role="paragraph" id="par_id3150572" l10n="U" oldref="5">If your document contains more than one script, the <emph>Edit Script</emph> dialog contains previous and next buttons to jump from script to script.</paragraph>
  <bookmark branch="hid/SW:IMAGEBUTTON:DLG_JAVAEDIT:BTN_PREV" xml-lang="en-US" id="bm_id3149710"/><embed href="text/swriter/00/00000004.xhp#nopfli"/>
  <bookmark branch="hid/SW:IMAGEBUTTON:DLG_JAVAEDIT:BTN_NEXT" xml-lang="en-US" id="bm_id3150761"/><embed href="text/swriter/00/00000004.xhp#nopfre"/>
  <paragraph xml-lang="en-US" role="paragraph" id="par_id3151184" l10n="U" oldref="6">To specify if the script is printed at the end of the page or at the end of the document, choose <emph>File - Print - Options</emph>, and select the appropriate check box.</paragraph>
  <paragraph role="heading" level="2" id="hd_id3154644" l10n="U" xml-lang="en-US" oldref="7">Contents</paragraph>
  <bookmark branch="hid/SW:EDIT:DLG_JAVAEDIT:ED_TYPE" xml-lang="en-US" id="bm_id3151177"/><paragraph role="heading" level="3" id="hd_id3149294" l10n="U" xml-lang="en-US" oldref="9">Script Type</paragraph>
  <paragraph l10n="U" role="paragraph" id="par_id3145413" xml-lang="en-US" oldref="10"><ahelp hid="SW:EDIT:DLG_JAVAEDIT:ED_TYPE" visibility="visible">Enter the type of script that you want to insert.</ahelp> The script is identified in the HTML source code by the tag &lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;.</paragraph>
  <bookmark branch="hid/SW:RADIOBUTTON:DLG_JAVAEDIT:RB_URL" xml-lang="en-US" id="bm_id3149800"/><bookmark branch="hid/SW:EDIT:DLG_JAVAEDIT:ED_URL" xml-lang="en-US" id="bm_id3149803"/><paragraph role="heading" level="3" id="hd_id3154097" l10n="U" xml-lang="en-US" oldref="13">URL</paragraph>
  <paragraph l10n="U" role="paragraph" id="par_id3149810" xml-lang="en-US" oldref="14"><ahelp visibility="visible" hid="SW:EDIT:DLG_JAVAEDIT:ED_URL">Adds a link to a script file. Click the <link href="text/shared/00/00000002.xhp#url" name="URL"><emph>URL</emph></link><emph> </emph>radio button, and then enter the link in the box. You can also click the browse button (<emph>...</emph>), locate the file, and then click <emph>Insert</emph>.</ahelp> The linked script file is identified in the HTML source code by  the following tags:</paragraph>
  <paragraph role="paragraph" id="par_id3152963" l10n="U" xml-lang="en-US" oldref="15">&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot; SRC=&quot;url&quot;&gt;</paragraph>
  <paragraph role="paragraph" id="par_id3153678" l10n="U" xml-lang="en-US" oldref="16">/* ignore all text here */</paragraph>
  <paragraph role="paragraph" id="par_id3154574" l10n="U" xml-lang="en-US" oldref="17">&lt;/SCRIPT&gt;</paragraph>
  <bookmark branch="hid/SW:PUSHBUTTON:DLG_JAVAEDIT:PB_URL" xml-lang="en-US" id="bm_id3149692"/><paragraph role="heading" level="3" id="hd_id3155903" l10n="U" xml-lang="en-US" oldref="19">...</paragraph>
  <paragraph l10n="U" role="paragraph" id="par_id3154188" xml-lang="en-US" oldref="20"><ahelp visibility="visible" hid="SW:PUSHBUTTON:DLG_JAVAEDIT:PB_URL">Locate the script file that you want to link to, and then click <emph>Insert</emph>.</ahelp></paragraph>
  <bookmark branch="hid/SW:MULTILINEEDIT:DLG_JAVAEDIT:ED_EDIT" xml-lang="en-US" id="bm_id3149489"/><bookmark branch="hid/SW:RADIOBUTTON:DLG_JAVAEDIT:RB_EDIT" xml-lang="en-US" id="bm_id3149493"/><paragraph role="heading" level="3" id="hd_id3155184" l10n="U" xml-lang="en-US" oldref="11">Text</paragraph>
  <paragraph l10n="U" role="paragraph" id="par_id3143272" xml-lang="en-US" oldref="12"><ahelp hid="SW:RADIOBUTTON:DLG_JAVAEDIT:RB_EDIT" visibility="visible">Enter the script code that you want to insert.</ahelp></paragraph>
  
 </body>
</helpdocument>