Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Document Element Call For IE6 Wrong?

    is there any reason at all that this javascript would refuse to set the src to the new object in IE6? It works fine in Firefox and NS.

    Code:
    function updateImage(theitemid, theitemproc){
    	var ms;
    	Today = new Date();
    	ms = Today.getUTCMilliseconds();
    newimg="avatar_functions3.php?action=equip&item_id="+theitemid+"&item_proc="+theitemproc+"&auth="+ms;
    	if(document.getElementById){
    		document.getElementById("avatar_image").src= newimg;
    	}else if(document.all&&!document.getElementById){
    		document.all.avatar_image.src= newimg;
    	}
    }

  • #2
    New Coder
    Join Date
    Mar 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just doesn't make sense to me. I've tried using all different types of square brackets and single quotes, double quotes and everything, but nothing seems to help in IE

  • #3
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Works for me... what are you getting for ("avatar_image").src?
    *this message will self destruct in n-seconds*

  • #4
    New Coder
    Join Date
    Mar 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, it did start working for me all of a sudden - i have no idea why. maybe the previous page didn't go out of the cache when i told it to or what lol. However, I discovered the setting the image source in this way causes the image output to have a solid black background, which is unacceptable for my application lol. I need to convert the images back to white background, or preferably, transparent before sending it back to disk. IE not supporting png transparency is ridiculous. i did get some JS that makes a png transparent after the page loads in IE, but this really doesn't look good. I'm dealing with it, but now that I am passing this value through a php like this, it comes back out, and the png transparency script doesn't recognize it since it's not "really" a png according to the html.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •