Results 1 to 2 of 2

Thread: Cmotion Object Oriented trouble in Firefox

  1. #1
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Cmotion Object Oriented trouble in Firefox

    1) Script Title:
    [DHTML] Cmotion object oriented

    2) Script URL (on DD):
    http://www.dynamicdrive.com/forums/s...ad.php?t=13302

    3) Describe problem:

    I have been using this script along side Lightbox v2. All is in working order with regards to that. The scroll system in IE works perfectly fine, but when it is loaded in Firefox at a resolution lower than 1280x1024 the image train will not scroll right. (Interestingly, if I load the window at 1280x1024 and resize smaller, the script will then work with the smaller window in Firefox. But If I refresh in that same resized window, the script will not scroll right again.)

    Also, at lower resolutions the whole image train will not be displayed, even if the correct values are set. The Demo of Cmotion OO works fine when resized, so I'm assuming it's something to do with my div tags being located within a <td></td> and Firefox not handling the window.onresize event properly. Or it's me being mince. (The latter is more likely!)

    Here is an example: [I'm updating this as I try to fix it. Also, excuse the horrible header coding, I've not cleaned it up yet.)

    http://www.mcdgsnetworks.co.uk/devel...al.php?page=11

    Thanks in advance!

    PS: Thanks for the excellent script!

    EDIT

    It seems that if you load the above page in Firefox, 'restore' the window then 'maximize' again, the cmotion scroll works fine. Oo Suggestions on how to fix this would be extremely apreaciated.
    Last edited by Mongoose; 06-05-2007 at 12:54 PM. Reason: New Information.

  2. #2
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It was simple! I certainly am mince! I had already tried this, but had missed the ';' from the command so thought it hadn't worked. Anyway, just add this to the body tag to fix the problem!

    Code:
    onload="cmotionresize();"
    Thanks again for the excellent site, support and scripts!

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
  •