Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
User:Philip J. Rayment/Welcome script
(view source)
Revision as of 03:26, July 6, 2007
132 bytes added
,
03:26, July 6, 2007
See if this works better.
Line 47:
Line 47:
function DoWelcome() {
function DoWelcome() {
−
var TxtRange = document.selection.createRange();
+
var txt = document.editform.wpTextbox1;
−
var sel = TxtRange.text;
+
txt.value = txt.value+'{{welcome|sig=~~~~}}';
−
sel='{{welcome|sig=~~~~}}';
+
//
var TxtRange = document.selection.createRange();
−
TxtRange.text=sel;
+
//
var sel = TxtRange.text;
−
wpSummary.
text
='welcome';
+
//
sel='{{welcome|sig=~~~~}}';
+
//
TxtRange.text=sel;
+
txt = document.editform.
wpSummary
;
+
txt
.
value
= 'welcome';
}
}
//</pre>
//</pre>
Philip J. Rayment
nsTeam2RO, nsTeam2RW, nsTeam2_talkRO, nsTeam2_talkRW
13,254
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
User page
talk page
Variants
Views
Read
View source
View history
More
Search
Popular Links
Main Page
Recent changes
New Pages
Random page
Statistics
Edit Console
User contributions
Logs
View user groups
Special pages
Printable version