凯's profile故酩斯忆BlogListsNetwork Tools Help

Blog


    2/14/2008

    留个记录

    • 以innerHTML定义的img无法通过[imgObj].onMouseOver=this.[methodName].bindAsEventListener(this)来绑定事件,必须要以dom的方式来添加
    • ie和ff对js xml dom的实现不一致,对于ajax调用返回的request.responseXML, ie认为这个是xml的root, 可以直接获取childnodes,在ff中则需要先获取documentElement
        if(!!(window.attachEvent && !window.opera)){
            root=xmlDOM;
        }else
            root=xmlDOM.documentElement;

    • ie和ff对offsetX的支持不一样,在ie中返回相对于浏览器左上角顶点的位置,而ff中返回相对于父元素的偏移位置
    • 本地测试的时候,ie启用AJAX调用xml文件的测试必须放在web服务器上去测试,ie不能读文件夹里的xml文件
    • html中引用的css及js,如果里面有引用到图片,那么图片的路径相对于css及js的位置,而不是相对于引用他们的html
    • 在ie中对div的高度设置100%没有作用,需要用到js
    • lightbox,prototype, scriptaculous之类的需要注意版本之间是否匹配
    • 每次动态添加了图片之后必须调用lightbox的一个updateImages的方法

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://beherca.spaces.live.com/blog/cns!34991044A23F9E14!1680.trak
    Weblogs that reference this entry
    • None