Attachment 'vivi.user.js'
Download 1 //by Breeze (http://www.donews.net/changzheng)
2 // ==/UserScript==
3
4 var div = document.createElement("DIV");
5 div.style.position = "absolute";
6 div.style.right = "0px";
7 div.style.bottom = "0px";
8 div.style.visibility = "visible";
9 div.style.width = "16px";
10 div.style.height = "16px";
11 div.style.cursor = "hand";
12 div.style.cursor = "pointer";
13 div.innerHTML = "<img src='http://image2.sina.com.cn/pfp/iweb/vivi.gif'>"
14 div.onclick = function()
15 {
16 add_collect();
17 }
18 document.documentElement.appendChild(div);
19
20 function add_collect()
21 {
22 d=document;
23 t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');
24 void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=vivi.sina.com.cn&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));
25 vivi.focus();
26 }
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.