![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Nov 2006
Posts: 31
Rep Power: 0
![]() |
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
__________________
www.narfco.com |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Nov 2006
Posts: 31
Rep Power: 0
![]() |
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.
__________________
www.narfco.com |
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
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. |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Nov 2006
Posts: 31
Rep Power: 0
![]() |
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.
__________________
www.narfco.com |
|
|
|
|
|
#5 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
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. |
|
|
|
|
|
#6 |
|
Programmer
Join Date: Nov 2006
Posts: 31
Rep Power: 0
![]() |
ok, thanks
__________________
www.narfco.com |
|
|
|
|
|
#7 |
|
Programmer
Join Date: Nov 2006
Posts: 31
Rep Power: 0
![]() |
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.
__________________
www.narfco.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|