Jump to content

Drag And Drop Divs


Recommended Posts

[instructiuni:]Clickati pe un patratel, tineti apasat si miscati-l in pagina unde doriti.

Click aici pentru un exemplu.

Acum sa va explic cum puteti face asa ceva.

I. Creati o pagina html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>


[color=green][b]II.[/b][/color] Copiati scriptul de mai jos si codurile css intre etichetele [b]<head></head>[/b]


[code]<script language="javascript">

// start dragging pctroubleshooting.ro

function startDrag(e){

// determine event object

if(!e){var e=window.event};

// determine target element

var targ=e.target?e.target:e.srcElement;


// calculate event X,Y coordinates


Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.