Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 62

Thread: Drag multiple images

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

    Default

    Sorry for the change of location.
    This is the link: http://koltora.com/Chaim_game/index.html
    Thanks

  2. #42
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,807
    Thanks
    2
    Thanked 423 Times in 417 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. #43
    Join Date
    Jul 2009
    Posts
    44
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Works perfect in Chrome now. Thanks once again.

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

    Default

    Dear Vic,
    I am back with another question. I have to make some examples for my game:
    http://koltora.com/help/
    I put static pieces on the scale but teachers complain that they do not move. Is there a way to place them there and move them away and/or right click the mouse and delete them like the regular cloned items. Thanks for all your help. Chaim

  5. #45
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,807
    Thanks
    2
    Thanked 423 Times in 417 Posts

    Default

    add and position images with class name 'static' where required

    Code:
    <img  class="static" src="http://koltora.com/help/image/p_b01.png" style="position:absolute; left:537; top:230" />
    add function

    Code:
    function Static(){
     var ds=zxcByClassName('static');
     for (var oop,z0=0;z0<ds.length;z0++){
      oop=new zxcDrag(ds[z0],false,'xy');
      CAry.push(ds[z0]);
     }
    }
    change onload to call function Static

    Code:
    onload="Clone('clone');Static();"
    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/

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

    Default

    Many thanks! As usual a great job. Can the image be made deletable. The right click function to delete the clones does not presently work with the static image.

  7. #47
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,807
    Thanks
    2
    Thanked 423 Times in 417 Posts

    Default

    Code:
    function Static(){
     var ds=zxcByClassName('static');
     for (var oop,z0=0;z0<ds.length;z0++){
      oop=new zxcDrag(ds[z0],false,'xy');
      CAry.push(ds[z0]);
      ds[z0].oncontextmenu=function(){ this.style.visibility='hidden'; return false; }
     }
    }
    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. #48
    Join Date
    Jul 2009
    Posts
    44
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Can't thank you enough. Everything works beautifully.

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

    Default

    Hi Vic,
    Need your expert help again. I put up a test site at: http://koltora.com/new_game/
    It works with FF and IE but not with Chrome or Safari. Any ideas?
    Thanks as always,
    Chaim

  10. #50
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,807
    Thanks
    2
    Thanked 423 Times in 417 Posts

    Default

    busy at the moment

    but your post #43 said that it worked in chome

    I will try and get back in the next couple of days
    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/

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
  •