Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: ۞ on August 09, 2003, 12:10:35 PM

Title: Put cursor in message box by default.
Post by: ۞ on August 09, 2003, 12:10:35 PM
At the moment you have to click into the message box to start typing in it, It would be nice if for new threads the cursor defaulted to the subject box and for replys it defaulted to the message box. Then you could hit reply and just start typing :)
Title: Re:Put cursor in message box by default.
Post by: klumy on August 09, 2003, 12:23:56 PM
Nice idea.

How about activation follows mouse function.
If the mouse hovers over Subject, the cursor is activated in Subject. If the mouse hovers over Message, the cursor will beactivated over message
Title: Re:Put cursor in message box by default.
Post by: Spaceman-Spiff on August 09, 2003, 12:39:28 PM
Quote from: klumy on August 09, 2003, 12:23:56 PM
How about activation follows mouse function.
If the mouse hovers over Subject, the cursor is activated in Subject. If the mouse hovers over Message, the cursor will beactivated over message
ick, i dont like that
its annoying sometimes
Title: Re:Put cursor in message box by default.
Post by: Ben_S on August 09, 2003, 03:41:59 PM
mouse following is so annoying when you knock your mouse. Y1G had that, really pissed me off so I killed it
Title: Re:Put cursor in message box by default.
Post by: Spaceman-Spiff on August 09, 2003, 04:07:15 PM
the code for this is:
<script type="text/javascript" language="JavaScript">
document.postmodify.message.focus();
</script>

just add that to Post.php, very simple :)
Title: Re:Put cursor in message box by default.
Post by: [Unknown] on August 09, 2003, 04:28:34 PM
IMHO, only should be done if you're replying not posting a new message.

-[Unknown]