Results 1 to 2 of 2

Thread: stayontop.js: Div immediately disappears in IE

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

    Default stayontop.js: Div immediately disappears in IE

    1) Script Title: stayontop.js

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici.../stayontop.htm

    3) Describe problem: Either way I call it (internal or external), it doesn't work in IE8 (haven't tested IE7 or IE6). Works fine in FF3 and Safari.

    The div appears, then disappears immediately. The browser says there are errors on the page. Line 47 char 3 of stayontop.js, object doesn't support this property or method.

    Any ideas? You can see the problem, for now, at http://bit.ly/cUnkTf
    Last edited by hblieb; 06-28-2010 at 06:41 PM. Reason: forgot to put script name in title

  2. #2
    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

    You haven't really followed the instructions. I think you were trying to, but the way you did it resulted in opposite of the required effect in IE. Some other browsers are less finicky. Anyways, where you have (at the very top of your page's source code):

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    
    <head>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    It should be:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    
    <head>
    - 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
  •