Jump to content

Turning a cursor into into a bar (the one where you type) when you try to drag


gurpreet94

Recommended Posts

Hi guys, I can't explain it with words properly but when someone tries to drag and drop an image, I want to turn it in the bar that appears when you hover over an input form. An example can be seen here:

 

http://www.prisonstruggle.com/

 

Could anyone help me out here? I got no idea how to start because I don't know which terms to search for in google.

This is used for drag and drop. I'd stay with the commonly excepted stuff:

<!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" xml:lang="en" lang="en">
<head>
<title>New document</title>
<style type="text/css">
#main
{
border: red solid 1px;
width: 100px;
height: 100px;
cursor: move;
}
</style>
</head>
<body>
<div id="main" >
</div>
</body>
</html>

 

But if you instead use text instead of move.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.