ed
Member
Registered: 10th Sep 03
User status: Offline
|
On my site I just built I have a login page here:
http://www.astonsnow.com
I just realised that when you have a slow internet connection noting comes up on the screen at all until the image has loaded becase the background is white and the text is white.
Is it possible to set a style in the image tag to make the background of the image green or something while the image is loading to prevent this problem?
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
Don't think so - would be easier to set the background to a pale colour (which the image then blocks out) or the text to a pale gray so you can at least see something......
you might want to add:
code:
style="background-color:green"
to the item holding the image
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Cant you just set the background colour of the whole thing to be green?
Then while the image is loading, it will all be green, then when the image has loaded, it will over ride it.
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
I had a mental block and just realised how I did it. The div has a background image, and now I have set a backgound colour too... Think that will work?
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Yep should do.
|