473,386 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Click and Drag

Dan
Hi,

I had an interesting idea recently to implement on my dynamic site.

I would like to have the users be able to click on object 1 and drag it
overtop of object 2. Object 1 and object 2 should be div tags so that
they could go around anything. When the user starts to drag object 1,
a parcially transparent object 1 appears wherever the mouse goes (we
will call this object 3) and the original object 1 disappears. After
the user lets go of object 1 ontop of object 2, object 3 disappears and
a javascript occurs (i will add this to the script later). If object 1
is let go not ontop of object 2 then the original object 1 reappears
where it used to be and object 3 disappears.

Also, while all this clicking and draging is going on the user should
be able to click and drag to scroll the page.

Unfortunately i have no idea how to do any of this. If anyone could
help me with this it would be appreciated. This is kind of what you
can do to files and folders in Windows XP.

Please tell me if any of this is unclear.

Thanks,

Dan

Feb 28 '06 #1
3 3920
Dan wrote:
Hi,

I had an interesting idea recently to implement on my dynamic site.

I would like to have the users be able to click on object 1 and drag it
overtop of object 2. Object 1 and object 2 should be div tags so that
they could go around anything. When the user starts to drag object 1,
a parcially transparent object 1 appears wherever the mouse goes (we
will call this object 3) and the original object 1 disappears. After
the user lets go of object 1 ontop of object 2, object 3 disappears and
a javascript occurs (i will add this to the script later). If object 1
is let go not ontop of object 2 then the original object 1 reappears
where it used to be and object 3 disappears.

Also, while all this clicking and draging is going on the user should
be able to click and drag to scroll the page.

Unfortunately i have no idea how to do any of this. If anyone could
help me with this it would be appreciated. This is kind of what you
can do to files and folders in Windows XP.

Please tell me if any of this is unclear.

Thanks,

Dan

HI! Take a look at what this guy did. Its sounds alot like what you just
discribed. He created popup windows that can be altogether on one page and
can be expanded, moved around ect..except there are NOT popup windows. they
are Div tags.

http://scriptasylum.com/misc/popup/popup.html

Paul
Mar 1 '06 #2
paul said the following on 3/1/2006 6:37 AM:
Dan wrote:
Hi,

I had an interesting idea recently to implement on my dynamic site.

I would like to have the users be able to click on object 1 and drag it
overtop of object 2. Object 1 and object 2 should be div tags so that
they could go around anything. When the user starts to drag object 1,
a parcially transparent object 1 appears wherever the mouse goes (we
will call this object 3) and the original object 1 disappears. After
the user lets go of object 1 ontop of object 2, object 3 disappears and
a javascript occurs (i will add this to the script later). If object 1
is let go not ontop of object 2 then the original object 1 reappears
where it used to be and object 3 disappears.

Also, while all this clicking and draging is going on the user should
be able to click and drag to scroll the page.

Unfortunately i have no idea how to do any of this. If anyone could
help me with this it would be appreciated. This is kind of what you
can do to files and folders in Windows XP.

Please tell me if any of this is unclear.

Thanks,

Dan HI! Take a look at what this guy did. Its sounds alot like what you just
discribed. He created popup windows that can be altogether on one page and
can be expanded, moved around ect..except there are NOT popup windows. they
are Div tags.


But it's not a good place to start looking to learn how to script. It is

When the first four lines of actual code look like this:

var w3c=(document.getElementById)? true: false;
var ns4=(document.layers)?true:false;
var ie5=(w3c && document.all)? true : false;
var ns6=(w3c && !document.all)? true: false;

Leave and don't look back.
http://scriptasylum.com/misc/popup/popup.html


<URL: http://www.litotes.demon.co.uk/js_info/pop_ups.html >

Is a better example.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 1 '06 #3
Randy Webb wrote:
paul said the following on 3/1/2006 6:37 AM:
Dan wrote:
Hi,

I had an interesting idea recently to implement on my dynamic site.

I would like to have the users be able to click on object 1 and drag it
overtop of object 2. Object 1 and object 2 should be div tags so that
they could go around anything. When the user starts to drag object 1,
a parcially transparent object 1 appears wherever the mouse goes (we
will call this object 3) and the original object 1 disappears. After
the user lets go of object 1 ontop of object 2, object 3 disappears and
a javascript occurs (i will add this to the script later). If object 1
is let go not ontop of object 2 then the original object 1 reappears
where it used to be and object 3 disappears.

Also, while all this clicking and draging is going on the user should
be able to click and drag to scroll the page.

Unfortunately i have no idea how to do any of this. If anyone could
help me with this it would be appreciated. This is kind of what you
can do to files and folders in Windows XP.

Please tell me if any of this is unclear.

Thanks,

Dan

HI! Take a look at what this guy did. Its sounds alot like what you just
discribed. He created popup windows that can be altogether on one page
and can be expanded, moved around ect..except there are NOT popup
windows. they are Div tags.


But it's not a good place to start looking to learn how to script. It is

When the first four lines of actual code look like this:

var w3c=(document.getElementById)? true: false;
var ns4=(document.layers)?true:false;
var ie5=(w3c && document.all)? true : false;
var ns6=(w3c && !document.all)? true: false;

Leave and don't look back.
http://scriptasylum.com/misc/popup/popup.html


<URL: http://www.litotes.demon.co.uk/js_info/pop_ups.html >

Is a better example.


HI! Randy, Thanks for the link. I like the explanations and examples he
gives.

Paul
Mar 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: objectref | last post by:
Hi to all, i have an app that i allow a drag and drop operation of picture boxes on a panel. when i drop a picture box i do the following so my newly dropped picture box will be able to...
6
by: David J Rose | last post by:
I am having trouble allowing a user to drag an item, whilst also allowing them to click the item. I am using mousedown, mousemove and mouseup. It works if I click the button carefully, but if there...
3
by: Lars Grøtteland | last post by:
Hello! Having problems about right clicking on an item in a tree control. The item that is clicked on is not the right one. If I have three items in a tree. Here is my problem. I click on the...
1
by: Tuanisviet | last post by:
Hey folks. I've built a table in a Java Applet that has several rows in it. I know you can click, hold down the button, then drag all the way through the table to select them all, BUT on release of...
8
by: James Arnold | last post by:
I currently have a borderless form, which I am subclassing to allow dragging & dropping: Protected Overrides Sub WndProc(ByRef m As Message) Select Case m.Msg Case 132 'Click & Drag Form...
6
by: user | last post by:
Hello, With ASP.NET2, how to program a button's click ? For example, I have two button and when i click the first one, i would like that the second one will be click too (by programming) ......
1
by: paulcybulski | last post by:
I am trying to create a function where if a user double clicks on a particular mc the mc will reset itself to its original zoom and position...however, I cannot get this feature to work...
0
by: kam45 | last post by:
I did one program that draws a line with two squares at the ends and I can just click and extend each ends. It works ok but I need to move the whole line. Would anyone knows how? Private Const...
3
by: Martin | last post by:
I have an application that generates a page with an embedded SVG image in it. The image (the viewport) is intentionally larger than the screen (the browser's window size). I would like to provide...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.