www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 11-20-2009, 03:22 PM
    kurie726 kurie726 is offline
    Registered User
     
    Join Date: Nov 2009
    Posts: 3
    Java script popup window with links

    I am using this script to create popup boxes sith information when users hover over a picture. The code works fine in IE 8 on the above referenced link. However, when I put it on our website, it gives an error

    Message: 'object1.style' is null or not an object
    Line: 324
    Char: 5
    Code: 0

    It works great in Firefox, just IE is causing a problem. The website in questions is

    www.stafford-catalog.com

    Could anyone tell me what the problem might be? Thanks.
    Reply With Quote
      #2  
    Old 11-20-2009, 05:07 PM
    kurie726 kurie726 is offline
    Registered User
     
    Join Date: Nov 2009
    Posts: 3
    Ok, i've gotten the boxes to pop up in IE by changing object1.style to document.getElementById under the IE4 section of the script. Now it looks like this

    else if(navigator.family =="ie4"){
    document.getElementById("object1").innerHTML=desc;
    document.getElementById("object1").style.left=x+15;
    document.getElementById("object1").style.top=y-5;
    }


    Now I have boxes, but the boxes no longer can sense the side of the screen, and they cause the screen to expand to the right instead of finding the edge of the screen and adjusting themselves. I would still like some help here. Thanks.
    Reply With Quote
      #3  
    Old 11-20-2009, 05:21 PM
    JMRKER JMRKER is offline
    Registered User
     
    Join Date: Dec 2005
    Location: FL
    Posts: 4,563
    Just a question.

    Why are you still coding for IE-4 when current version is IE-8?
    Reply With Quote
      #4  
    Old 11-21-2009, 05:12 AM
    Ruvenite Ruvenite is offline
    Registered User
     
    Join Date: Feb 2008
    Posts: 3
    Another question: is the script you are trying to use really your best option?

    Have you investigated this script? I love it.

    http://walterzorn.com/tooltip/tooltip_e.htm
    Reply With Quote
      #5  
    Old 11-21-2009, 10:31 AM
    kurie726 kurie726 is offline
    Registered User
     
    Join Date: Nov 2009
    Posts: 3
    Quote:
    Originally Posted by Ruvenite View Post
    Another question: is the script you are trying to use really your best option?

    Have you investigated this script? I love it.

    http://walterzorn.com/tooltip/tooltip_e.htm
    Thanks! This script you pointed me too will do the trick and more. I appreciate that.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 09:22 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.