Results 1 to 3 of 3

Thread: Dragable Elements - Compatibility

  1. #1
    Join Date
    May 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dragable Elements - Compatibility

    Script : Dragable elements Script
    http://www.dynamicdrive.com/dynamicindex4/image3.htm

    Hi - For a university project i am working on developing a website that is based around this script as i wish to make the site highly interactive. I have used this script before and it has been successful on my windows pc. Unfortunately the project brief states that the website has to work cross platfrom on all systems, this is difficult to achieve anyway unless you have a very simple design - but the dragable elements script will not work on my mac OSX system.

    I understand that browser dhtml compatibilty does differ between the two platforms, but i would really appreciate it if somebody could help me with a solution to this, as the bulk of my design is based around this script. I have tried various google searches but have still found nothing.

    Thanks.

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by two-add-two-equals-five
    Unfortunately the project brief states that the website has to work cross platfrom on all systems [...]
    Does the project brief also stipulate against relying on scripts? I would hope so, particularly if this is a Web development course.

    this is difficult to achieve anyway unless you have a very simple design
    Umm. Since when?

    the bulk of my design is based around this script.
    Basing a design around any script is usually the sign of a bad design.

    As for any particular 'solution', it would require a complete rewrite so that it's not dependent upon proprietary features:

    [Edit: alternative code deleted]

    Contrary to the instructions for the original script, do not include the out-dated rubbish like the language attribute and SGML comment delimiters (<!-- -->). These sorts of instructions seem to be phasing out of the site: the sooner the better. Also, I think 'move' would be a better cursor value:

    HTML Code:
    <style type="text/css">
      .drag {
        cursor: move;
        position: relative;
      }
    </style>
    
    <script type="text/javascript">
      /* ... */
    </script>
    Mike
    Last edited by mwinter; 06-01-2005 at 11:59 AM. Reason: Removed buggy code

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    A simple search for 'cross browser drag drop image javascript' on Google yielded this and many other links. This first should work in Mac browsers like FF and NS (tested here in their Win versions), possibly IEmac and Safari:

    http://www.walterzorn.com/dragdrop/dragdrop_e.htm
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •