Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 HTML Problems
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

guessme
Banned User

393 Posts

Posted - 04 September 2003 :  03:03:10  Show Profile  Visit guessme's Homepage
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  Show Profile
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
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 04 September 2003 :  03:30:55  Show Profile  Visit Gremlin's Homepage
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
Go to Top of Page

guessme
Banned User

393 Posts

Posted - 04 September 2003 :  16:06:08  Show Profile  Visit guessme's Homepage
The Title Image was the main problem. Maybe because i added my own?

The program is called IE Booster.

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 05 September 2003 :  05:22:41  Show Profile  Visit Gremlin's Homepage
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
Go to Top of Page

guessme
Banned User

393 Posts

Posted - 05 September 2003 :  16:20:12  Show Profile  Visit guessme's Homepage
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
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 05 September 2003 :  17:55:16  Show Profile
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.
Go to Top of Page

guessme
Banned User

393 Posts

Posted - 05 September 2003 :  20:31:07  Show Profile  Visit guessme's Homepage
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"

Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 05 September 2003 :  21:16:26  Show Profile
no, the syntax frutzle gave is what the code expects. if you use your choices, you'll get errors.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

guessme
Banned User

393 Posts

Posted - 05 September 2003 :  21:22:36  Show Profile  Visit guessme's Homepage
Ok thanks!


Edited by - guessme on 05 September 2003 21:32:44
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07