OnResize problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jwhitwork
    New Member
    • Oct 2006
    • 3

    OnResize problems

    I'm trying to create a liquid layer and need to call my SetLayerPos() function onResize.

    When I create a test page:

    <html><body onresize="alert ('test')"></body></html>

    It works fine.

    When I add onresize="alert ('test')" to the body tag of the page I'm working on, nothing happens when I resize. Any ideas as to why this may happen? I have a meta refreshing iframe in a moveable div layer and some forms and asp on my page and that's it.
  • YenRaven
    New Member
    • Oct 2006
    • 29

    #2
    Originally posted by jwhitwork
    I'm trying to create a liquid layer and need to call my SetLayerPos() function onResize.

    When I create a test page:

    <html><body onresize="alert ('test')"></body></html>

    It works fine.

    When I add onresize="alert ('test')" to the body tag of the page I'm working on, nothing happens when I resize. Any ideas as to why this may happen? I have a meta refreshing iframe in a moveable div layer and some forms and asp on my page and that's it.
    if you are useing any code you didnt write yourself i would check for a line like this

    document.body.o nresize = something

    this would overwirte your default onresize. just a thought.

    Comment

    • jwhitwork
      New Member
      • Oct 2006
      • 3

      #3
      Cheer, the moveable layer code had it in. Although, it seems silly to have a moveable object that resets it's position to the middle if you resize the window, so I decided to sack it off anyway. Cheers.

      Comment

      Working...