|
|||||||
| JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...) |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
Just a question.
Why are you still coding for IE-4 when current version is IE-8? |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
Quote:
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|