Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2004
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to drag and down a text to a page?

    yo its me again wanna to ask if it is possible to make a page like a big input box for drag and down... If i click on a certain word can i drag it and drop it to another page then the other page will display the word? i only found this on the net....

    <html>
    <head>

    <div id="theId"></div>

    <style>
    #divTarget {background-color:yellow; font-weight: bold}
    </style>

    <script>

    function controlText(str)
    {
    alert(str)
    }



    function cancelEvent()
    {
    window.event.returnValue = false;
    }

    function drop()
    {
    alert("hmmmmm.......")
    }

    </script>
    </head>

    <body id="divTarget" ondragenter="cancelEvent()" ondragover="cancelEvent()" ondrop="drop(this)">Drop on me</div>

    </body>
    </html>


    needless to say i'm a javascript moron and cant understand how to handle the elements and whatever u all call it any help will be greatly thanks and rewarded with lots of smilies icon :P

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You may be able to use the Range Object to simulate something what you have described.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •