PDA

View Full Version : problem with background image


golfsferr
12-03-2009, 09:00 PM
I reposted this because I think the original thread I attach it to was pretty old. If that was unneccessary I'll know next time.....

My problem is:
My background image loads just partly some of the time on my index page. The background image loads completely on all the other pages in my site. I'm using the same simple .GIF 300k image for my background on all pages on my site. I have a flash element that loads with the index page and don't have any flash elements loading with any other page. Could the flash element be disrupting the loading of my background image and if so is there a way to stop this. If you don't think the flash element is causing the problem, do you have any ideas on how to fix it? Thank you, Steve

edbr
12-04-2009, 12:58 AM
you dont mention the size of the flash movie but it sounds like its the time taken to download. movie then 300 k can be a lot if the viewer has a slow download speed,

golfsferr
12-04-2009, 02:53 AM
It is a slideshow of 13 gif images all prepared for the web in photoshop if that helps. When I tried to make the background have less pixels the image changed in size and no longer looked right. Any suggestions? Thanks for your time.

golfsferr
12-04-2009, 03:02 AM
The swf file is 52kb and the gif images are from 150 to 300kb according to the FTP client. Is this OK? Thanks

edbr
12-04-2009, 03:32 AM
no 52 is fine then, i personally prefer images much smaller, i have much slower download speeds where i am , so i would say it depends on quality required and targert viewer.
post a link as it may not be this at all

golfsferr
12-04-2009, 04:12 AM
www.michigangolfart.com (http://www.michigangolfart.com)

above is the Index.html and the only page that the problem occurs
Odd though, on my old dell laptop it never has a load issue but on my new 2 duocore processor and tons of gig, I experience the issue. You probably won't experience it either, but let me know. Thanks

edbr
12-04-2009, 04:47 AM
i checked with ff and chrome and the movies plas the seems to reload
these errors were returnd mostly caused ny <br> on line 2 delete that then check your errors/warnings

Result: 0 errors / 14 warnings

line 2 column 44 - Warning: <br> isn't allowed in <head> elements
line 2 column 44 - Info: <head> previously mentioned
line 2 column 44 - Warning: inserting implicit <body>
line 3 column 1 - Warning: <head> isn't allowed in <body> elements
line 2 column 44 - Info: <body> previously mentioned
line 4 column 1 - Warning: <title> isn't allowed in <body> elements
line 2 column 44 - Info: <body> previously mentioned
line 5 column 1 - Warning: <meta> isn't allowed in <body> elements
line 2 column 44 - Info: <body> previously mentioned
line 6 column 1 - Warning: <meta> isn't allowed in <body> elements
line 2 column 44 - Info: <body> previously mentioned
line 7 column 1 - Warning: <meta> isn't allowed in <body> elements
line 2 column 44 - Info: <body> previously mentioned
line 8 column 1 - Warning: <meta> isn't allowed in <body> elements
line 2 column 44 - Info: <body> previously mentioned
line 9 column 1 - Warning: <style> isn't allowed in <body> elements
line 2 column 44 - Info: <body> previously mentioned
line 180 column 1 - Warning: </head> isn't allowed in <body> elements
line 2 column 44 - Info: <body> previously mentioned
line 182 column 1 - Warning: discarding unexpected <body>
line 226 column 5 - Warning: <embed> is not approved by W3C
line 190 column 18 - Warning: <img> escaping malformed URI reference
line 192 column 100 - Warning: <a> escaping malformed URI reference
Info: Doctype given is "-//W3C//DTD XHTML 1.0 Transitional//EN"
Info: Document content looks like HTML Proprietary

golfsferr
12-04-2009, 04:56 AM
Thanks but this is where my limited knowledge is exposed. I'm not sure what you are telling me to. Is there any way you can show me a before and after example on the code you included? Thanks again.

edbr
12-04-2009, 05:21 AM
no prob, im not suggesting this is the problem but its an easy fix
where you have (use code view) at the top of the page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head>
just change to

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

golfsferr
12-04-2009, 01:31 PM
That seemed to fix it. I put that line below <head> FTP'd it and tried to reload the page numerous times and no mis-loads at all so far.


<html xmlns="

golfsferr
12-04-2009, 01:41 PM
<html xmlns= " http://www.w3.org/1999/xhtml"><br />

The above line was also above <head> but I left it there since your suggestion is working.

I obviously need to learn a lot more about HTML
Thanks again.
Steve

golfsferr
12-04-2009, 01:45 PM
<html xmlns= " http://www.w3.org/1999/xhtml"><br />

The above line was also above <head> but I left it there since your suggestion is working.

I obviously need to learn a lot more about HTML
Thanks again.
Steve

domedia
12-04-2009, 06:38 PM
I obviously need to learn a lot more about HTML
Here's the thing Steve; the 'tools of the trade' in web dev is HTML, CSS and JS for front end development. If you're serious about the website, you should learn these. Unfortunately, buying DW does not make you a web designer no more than buying a brush makes you and artist. So set aside some time for training if this is something you really want to do.

That being said I enjoyed your pictures. I've actually written code for more than one of the courses you've listed 8)

golfsferr
12-04-2009, 06:45 PM
Thanks for the feedback and compliment.
Short of going to some class offered at a college or such. Is there a good online site that could help me "grasp" HIML, CSS, etc.
Thanks again.
Steve

gentleone
12-04-2009, 06:51 PM
Is there a good online site that could help me "grasp" HIML, CSS, etc

www.w3schools.com for pretty much everything ;)

domedia
12-04-2009, 07:00 PM
I know that dwcourse that hangs out on these forums have done some online courses, not sure if he is still doing them, http://dwcourse.com.

Someone also posted a pretty decent video tutorial site a few weeks back, but I cannot remember what that was. Anyone else?

I would be *really* careful about local courses. Quality varies alot, and sometimes they actually do more harm than good.

If you search these forums, I think you'll find some old book recommendation threads too.

golfsferr
12-04-2009, 07:13 PM
Thanks, I'm looking at it right now.
I really wasn't setting out to be a web desinger, although I have enjoyed what little I've done a great deal and I know it would stretch my artistic abilities further. I was trying to get my golf prints out there as quickly as possible and getting DW was the fastest way for me to do that at this point. I'm sure glad I found this site and I appreciate your help.
I received you other suggestions too.
Steve

edbr
12-05-2009, 01:51 AM
thats the selling point of dw and to a point is true, but there is a bucket loads further to learn, if you have a nature that wants to go deeper, frankly thats how i got hooked