China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-05 14:51
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Drag a file onto it to show the path - modifying a web page View 763 Replies 4
Original Poster Posted 2007-08-19 08:52 ·  中国 湖北 仙桃 电信
中级用户
★★
Credits 301
Posts 135
Joined 2007-05-15 16:49
19-year member
UID 88615
Gender Male
Status Offline
set args = WScript.Arguments
if args.Count = 0 then
MsgBox "You called this script directly, no arguments specified!"
else
for each argument in args
list = list & argument & vbCr
next
MsgBox "Here's the list of arguments:" & vbCr & list
end if


Can anyone tell me how to apply the effect of this code to a web page? That is, drag a file onto a web page, and have the address visible on the page.
Is there any way, when something is dragged onto a web page (or some element on the page), for the page to produce an effect?
It doesn't necessarily have to pop up; writing it into a text area on the page would also be fine. Other than the IE address bar

[ Last edited by wert123 on 2007-8-22 at 11:32 AM ]
Floor 2 Posted 2007-08-22 10:53 ·  中国 湖北 仙桃 电信
中级用户
★★
Credits 301
Posts 135
Joined 2007-05-15 16:49
19-year member
UID 88615
Gender Male
Status Offline
Does anyone know?
Floor 3 Posted 2007-08-22 11:28 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Generally people use the Browse button...
If you want drag-and-drop, you need a plugin
Floor 4 Posted 2007-08-22 11:34 ·  中国 湖北 仙桃 电信
中级用户
★★
Credits 301
Posts 135
Joined 2007-05-15 16:49
19-year member
UID 88615
Gender Male
Status Offline
The IE address bar should be the highest level. The more I think about this question, the more childish it seems. This thread was probably mostly written for nothing.
Then is it possible to drag it onto some layer on a web page and have it produce an effect?

[ Last edited by wert123 on 2007-8-22 at 11:37 AM ]
Floor 5 Posted 2007-08-22 11:53 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
.... Try dragging text into IE and see, try dragging an image in and see...

IE just displays it directly...
A standalone VBS script can take parameters when something is dragged onto it...
A web page is a different matter...
Forum Jump: