captain20bucks Posted April 24, 2008 Share Posted April 24, 2008 Hi, I've been messing around with this for along time and I figured this would be the best place to see if anyone knows a solution. On the bio's page of my website I set it up so the guys can update their images through a form I made then all of the data for the image and their bios come in from a mysql database. The problem is my border is an image set to 100% and when the page loads the border does not connect to the rest of the table. But when you refresh the page the problem is gone until you clear your cache. I tried implementing a javascript function to resize the border images to 100% function iesucks() { var left = document.getElementById("lm"); var right = document.getElementById("rm"); left.style.height = "100%"; right.style.height = "100%"; return; } and then call it through <body onLoad="iesucks()"> but it seems that the call is being made when the HTML is loaded, not the php also. Ironically after implementing my javascript function IE no longer has an issue, but it is still a problem in Firefox 2.0. I guess my question is, is there a way for my php to tell my javascript it is done loading so Firefox will quit having a hissy fit? You can see my problem at http://www.100ppt.com/bios/branden.php Quote Link to comment Share on other sites More sharing options...
affordit Posted April 24, 2008 Share Posted April 24, 2008 I checked the page with win98 and ie6 and it loaded fine? Quote Link to comment Share on other sites More sharing options...
captain20bucks Posted April 24, 2008 Author Share Posted April 24, 2008 Neeeeevermind, I got rid of the img tags and the javascript, then for the table column that hold the side images i just used a CSS #right { height: 100%; width: 19px; background-image: url("../images/rm.png"); background-repeat: repeat-y; } and another one for the left one. Apparently Firefox doesn't like images sized 100% but it doesn't mind table columns set for 100% with image backgrounds. Anyway problem solved Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.