spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / dhtml / column7
Developer News
Cisco Lawsuit: A Test for the GPL?
Shifts for Enterprise Linux, Green Networks in '09
Gifts for All in Linux 2.6.28
Logo

Drag & Drop, Part II:
dragging positioned elements in Explorer 4


This tutorial can be appreciated by users of any browser, any version. The in-line examples, of course, will only work in Explorer 4. The drag examples work in both Explorer 4 and Navigator 4. The code discussed is specific to Explorer. The code actually used is the cross-browser version.

The present column is a continuation of column 6, Drag & Drop Part I, Navigator 4. We will discuss how to drag positioned elements in Explorer 4, and then combine the two parts into a cross-browser script.

Please refer to Part I for an introduction to drag & drop concepts, and a script for achieving this effect in Netscape Navigator 4. Part I has been revised and the script revamped to allow for easier cross-browser compatibility.

Square Dance, the sequel

Our squares are back! This time they can be dragged in Explorer as well. As before, grab and move them around with your mouse; partially hide a square and then select the hidden one to move; pass them over the form button; reset them to the original position by pressing the button.

Behavior Differences

Essentially there is little difference, at least for the user, in element dragging between Explorer and Navigator. You may have noticed, however, that, unlike Navigator, Explorer allows positioned elements to hide form elements. The button above can be hidden by the squares. Another difference is that the text in the squares was not highlighted, that is, it was not selected if you chanced to grab the square by the text part. And finally we signalled to the user that an element was draggable by changing the cursor shape.

In This Column

We will discuss:

First, let's tell our page to ready itself for dragging.


Produced by Peter Belesis and

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Overview of Popular JavaScript Frameworks - ASP.NET AJAX · An Introduction to 3D · Email Marketing Terms to Know
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Configuring Anonymous Dialog Security in SQL Server 2005 Express Service Broker Conversation · OpenVPN: Revoking Access and Expanding Management Options · Connecticut Town Lays Groundwork for Merged School, Municipal VoIP Network

All Rights Reserved. Legal Notices.
Created: 10/22/97
Revised: 10/22/97

URL: http://www.webreference.com/dhtml/column7/