いろいろググってコピペして、こんなふうにした。
javascript:(function(w,d){
var sel=w.getSelection ? w.getSelection().toString() :
d.getSelection ? d.getSelection() :
d.selection ? d.selection.createRange().text :
null;
sel="&text=" +
encodeURIComponent(sel+"→「"+d.title+"」");
w.open("http://twitter.com/share?url=" +
encodeURIComponent(location.href) + sel,
null,"width=600, height=300");
})(window,document);
よくわからないから、できれば js は避けたかったんだけど。