Author |
Topic |
|
guessme
Banned User
393 Posts |
Posted - 04 September 2003 : 03:03:10
|
Title Image Location:
Adding HEIGHT and WIDTH attributes to your images will help browsers display your page sooner.
TABLE:
Adding WIDTH attributes to your TABLE tags will help browsers display your page sooner.
I have a program that is saying i have errors with these to things. How can i correct them? |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 04 September 2003 : 03:11:37
|
Where are you getting this from ?
It won't make it display faster, but the browser will know how much space to allocate for the image .... hmm, yeah ok, you will save the handful of milliseconds it takes for the browser to interrogate the image |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 04 September 2003 : 03:30:55
|
Actually it does allow some browsers/versions to load a little faster becuase some browsers will actually stop and wait for an entire image to load before moving on if you do not specify beforehand what the dimensions of the image are, when you specify the images width and height it allows the browser to put a placemark image in whilst its still loading and continue processing the remainder of the file.
guessme, to make these changes you would have to go through every page of the code and locate which images don't have height and width stamtenets in them, I actually thought from memory though that there were pretty few cases where snitz doesn't already have these attributes coded, certainly all the icons alredy do. |
Kiwihosting.Net - The Forum Hosting Specialists
|
Edited by - Gremlin on 04 September 2003 03:32:38 |
|
|
guessme
Banned User
393 Posts |
Posted - 04 September 2003 : 16:06:08
|
The Title Image was the main problem. Maybe because i added my own?
The program is called IE Booster. |
|
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 05 September 2003 : 05:22:41
|
Then you can just edit inc_header.asp and add in the height and width dimensions of your own logo. |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
guessme
Banned User
393 Posts |
Posted - 05 September 2003 : 16:20:12
|
Is this where i do it. Change the 50% and 40% to my logo size.
Response.Write "</head>" & vbNewLine & _ "<body" & strTmpPageBGImageURL & " bgColor=""" & strPageBGColor & """ text=""" & strDefaultFontColor & """ link=""" & strLinkColor & """ aLink=""" & strActiveLinkColor & """ vLink=""" & strVisitedLinkColor & """>" & vbNewLine & _ "<table border=""0"" cellspacing=""0"" cellpadding=""5"" width=""50%"" height=""40%"" align=""center"">" & vbNewLine & _ " <tr>" & vbNewLine & _
Or maybe here: but there's no height.
<td valign=""top"" width=""50%""><a href=""default.asp"" tabindex=""-1"">" & getCurrentIcon(strTitleImage & "||",strForumTitle,"") & "</a></td>" & vbNewLine & _ " <td align=""center"" valign=""top"" width=""50%"">" & vbNewLine & _ |
|
Edited by - guessme on 05 September 2003 16:39:33 |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 05 September 2003 : 17:55:16
|
in inc_header.asp find this line (should be line # 300)
" <td valign=""top"" width=""50%""><a href=""default.asp"">" & getCurrentIcon(strTitleImage & "||",strForumTitle,"") & "</a>" & vbNewLine Add the width and height values as shown in the following example:
" <td valign=""top"" width=""50%""><a href=""default.asp"">" & getCurrentIcon(strTitleImage & "|width|height",strForumTitle,"") & "</a>" & vbNewLine So if your logo is 150 pixels wide and 75 pixels high, you replace width with 150, and height with 75
Just FYI, percentages aren't permitted when you set the height and/or width of images. |
|
|
guessme
Banned User
393 Posts |
Posted - 05 September 2003 : 20:31:07
|
I don't know code very well but is this correct: "|width|height"
It looks like it needs to be evened out like this:
"|width|height|" or "width|height" |
|
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
guessme
Banned User
393 Posts |
Posted - 05 September 2003 : 21:22:36
|
Ok thanks! |
|
Edited by - guessme on 05 September 2003 21:32:44 |
|
|
|
Topic |
|