Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 2nd, 2006, 11:13 AM   #1
Narfco
Programmer
 
Join Date: Nov 2006
Posts: 31
Rep Power: 0 Narfco is on a distinguished road
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
Narfco is offline   Reply With Quote
Old Dec 2nd, 2006, 11:19 AM   #2
Narfco
Programmer
 
Join Date: Nov 2006
Posts: 31
Rep Power: 0 Narfco is on a distinguished road
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
Narfco is offline   Reply With Quote
Old Dec 2nd, 2006, 11:38 AM   #3
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote
Old Dec 2nd, 2006, 11:42 AM   #4
Narfco
Programmer
 
Join Date: Nov 2006
Posts: 31
Rep Power: 0 Narfco is on a distinguished road
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
Narfco is offline   Reply With Quote
Old Dec 2nd, 2006, 2:14 PM   #5
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote
Old Dec 2nd, 2006, 4:45 PM   #6
Narfco
Programmer
 
Join Date: Nov 2006
Posts: 31
Rep Power: 0 Narfco is on a distinguished road
ok, thanks
__________________
www.narfco.com
Narfco is offline   Reply With Quote
Old Dec 3rd, 2006, 12:23 AM   #7
Narfco
Programmer
 
Join Date: Nov 2006
Posts: 31
Rep Power: 0 Narfco is on a distinguished road
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
Narfco is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:43 PM.

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