Advanced Search

Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 62

Thread: Drag multiple images

  1. #21
    Join Date
    Jul 2009
    Posts
    44
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Sorry I was not clear.
    After the pawns, number squares and/or numbers are dropped into their new location, the player might want to delete one or more of the newly placed pieces. Ideally he would select the newly placed piece or pieces, by holding down the ctrl key and clicking his left mouse button and then press the delete key.

    Another question: I am using a slide show script to advance the questions on the board. I have to capture and save each new question as a jpg to add questions. Can you recommend a script that would use a text file to enter the list of questions. If I have math symbols like the "not equal" character, will the player be able to see the character on his machine? Is my slide solution the best way to solve this problem?

  2. #22
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,707
    Thanks
    2
    Thanked 388 Times in 383 Posts

    Default

    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  3. #23
    Join Date
    Jul 2009
    Posts
    44
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    I worked a long time and finally discovered a bug that was stumping me. When I move a piece to the new location and select it with control and press enter to delete it, it also moves the slide show to the next slide, resetting the whole board . This is because the enter key is being used for the delete function as well as the next slide function. Could we change the key for the delete function to something else?

  4. #24
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,707
    Thanks
    2
    Thanked 388 Times in 383 Posts

    Default

    how about a right click of the image

    or -(minus)
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  5. #25
    Join Date
    Jul 2009
    Posts
    44
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Right click sounds great. Thanks

  6. #26
    Join Date
    Jul 2009
    Posts
    44
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Smile

    What is the code for the right mouse click? What code do I have to replace?

  7. #27
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,707
    Thanks
    2
    Thanked 388 Times in 383 Posts

    Default

    Code:
    // modified function
    function MakeClone(obj){
     var e=window.event||arguments.callee.caller.arguments[0];
     var clone=obj.cloneNode(true);
     document.body.appendChild(clone);
     CAry.push(clone);
     clone.style.zIndex=zxcLTZ(obj,'z-Index')+1;
    // zxcAddEvt(clone,'RemoveClone','click');
     clone.oncontextmenu=function(){ this.parentNode.removeChild(this); return false; }
     var oop=new zxcDrag(clone,false,'xy',null,DragRemove,null,DragAdd);
     oop.down(e);
    }
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  8. The Following User Says Thank You to vwphillips For This Useful Post:

    Chaim (08-18-2009)

  9. #28
    Join Date
    Jul 2009
    Posts
    44
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Perfect!

  10. #29
    Join Date
    Jul 2009
    Posts
    44
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Found a bug. Everything works well until I use the right mouse click delete function. After deleting and moving an object to a new position the reset function stops working. I put up a test page at: http://koltora.com/mathtest/
    Could I bother you to take a look.
    P.S. I integrated your slide script for the questions.

  11. #30
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,707
    Thanks
    2
    Thanked 388 Times in 383 Posts

    Default

    Code:
    function MakeClone(obj){
     var e=window.event||arguments.callee.caller.arguments[0];
     var clone=obj.cloneNode(true);
     document.body.appendChild(clone);
     CAry.push(clone);
     clone.style.zIndex=zxcLTZ(obj,'z-Index')+1;
    // zxcAddEvt(clone,'RemoveClone','click');
     clone.oncontextmenu=function(){ this.style.visibility='hidden'; return false; }
     var oop=new zxcDrag(clone,false,'xy',null,DragRemove,null,DragAdd);
     oop.down(e);
    }
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  12. The Following User Says Thank You to vwphillips For This Useful Post:

    Chaim (08-21-2009)

Bookmarks

Posting Permissions

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