Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   how do you.. (http://www.programmingforums.org/showthread.php?t=12081)

Narfco Dec 2nd, 2006 12:13 PM

how do you..
 
W recenly remodeled www.narfco.com and we still have a lot of bugs. First off we are trying to get our google bar to be clear in all web broswer, bu in IE the browser recognizes clear background as red. If anyone knows how to fix that.

Secon is how do you set the background of the web site to ajust o diffrent monitors. Currently we are just tiling the background, but tht looks really bad.

We are using PHP so we were wondering if their was a special way to fix this using PHP.

Thanks
NArfco

Narfco Dec 2nd, 2006 12:19 PM

Correction on the background. We have jus reset the screen size it can strech for, but that still looks bad. How do you ge the background to adapt to all monitor sizes.

Arevos Dec 2nd, 2006 12:38 PM

Javascript is the only solution I can think of. Get the screen size and then set the body.style.background to an image optimised for that size.

The only other way is to use SVG, which is supported by all major browsers bar one (three guesses which that one is). Unfortunately, this means that the majority of computer users won't be able to see the background, so this particular solution isn't ideal.

You could combine the two approaches, I guess, but that's rather a lot of work.

Narfco Dec 2nd, 2006 12:42 PM

thanks for the suggestion. If we were to just do i through a java script, would it work, or would their be a problem stil with all the diffrent browsers.

Arevos Dec 2nd, 2006 3:14 PM

Most browsers are pretty compliant with standards. If you don't stray from supported standards then something that renders okay in Firefox will likely render the same in Opera, Konqueror and Safari. It's IE you really need to look out for, as it has some issues associated with it.

Javascript will work fine, so long as the user hasn't turned it off. If the user has turned it off, you could just blank the background or tile it or something. So long as your website remains usable, gracefully degrading in looks is pretty much the recommended way to go.

Narfco Dec 2nd, 2006 5:45 PM

ok, thanks

Narfco Dec 3rd, 2006 1:23 AM

I started to write this java script when I realized that every thing I wrote had major errors. How would I go about writing this script.


All times are GMT -5. The time now is 1:25 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC