To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Coding

Coding Help with PHP coding

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 04-11-2004, 12:07 AM   #1
blinkk
Junior Member
 
Join Date: Apr 2004
Location: Fort Collins, Colorado
Posts: 26
Question [resolved] Loading picture navigations

I don't know how much of this can be done in PHP or if even can be done at all but I think this is the best place to ask.

I have a website that has a navigation entirely made up of pictures. It's not the size I am worried about but the loading. When I refresh the page you can see the pictures loading from top to button and it doesn't look great at all. It takes time and for a brief moment you can see the red X when pictures aren't loaded.

Is there a way through JS or PHP or someother type of language that I can show the navigation only after every pic has been downloaded and show it all at once instead of pic by pic loading?

Last edited by blinkk; 04-11-2004 at 04:43 AM.
blinkk is offline   Reply With Quote
Old 04-11-2004, 01:23 AM   #2
sarahk
Senior Member
 
sarahk's Avatar
 
Join Date: Mar 2001
Location: Auckland, New Zealand
Posts: 1,283
Yes there are ways but I suspect you're trying to solve the wrong problem.

My recommendation would be to look at how you are building the page and how you define the links.

It might be to your benefit to have the images as background with actual text over the top. This doesn't give you the soft text but a crisper version - a matter of taste. However, it is faster loading because the same background can be used for all and technically they're not pictures, so no placeholder.

I'd be interested to see your current page and make suggestions.
__________________
Kiwis: iTamer's PHP Articles
sarahk is offline   Reply With Quote
Old 04-11-2004, 02:02 AM   #3
blinkk
Junior Member
 
Join Date: Apr 2004
Location: Fort Collins, Colorado
Posts: 26
I was thinking about putting them as a background but the text didn't look as good. Since it is a lot of pictures that are relativly small I want the whole page to load, and then after everything is done downloading, to show the page.

The website address is just a placeholder until we come up with our own name and that blue sell your music online is a placeholder for a ad.
__________________
Democracyistwosheepandawolfdisscussingdinner

Last edited by blinkk; 04-11-2004 at 04:43 AM.
blinkk is offline   Reply With Quote
Old 04-11-2004, 04:28 AM   #4
sarahk
Senior Member
 
sarahk's Avatar
 
Join Date: Mar 2001
Location: Auckland, New Zealand
Posts: 1,283
using some code I've got at http://www.hostultra.com/~data/layers.php

I've constructed this:
http://www.hostultra.com/~data/muck/iph.htm

but, ironically, the background items aren't fully loaded. Not sure how to get around that.

My example shows that the page does get indexed even though google should be able to see that the content is hidden.
__________________
Kiwis: iTamer's PHP Articles
sarahk is offline   Reply With Quote
Old 04-11-2004, 04:34 AM   #5
blinkk
Junior Member
 
Join Date: Apr 2004
Location: Fort Collins, Colorado
Posts: 26
I gues that instead of relying on that I'll just make the SOBs who visit it wait. It isnt that long of a wait anyhoo. Thanks for the help.

But is there no other way to only load the navigation and not the whole page instead of waiting for the whole page to load?
__________________
Democracyistwosheepandawolfdisscussingdinner

Last edited by blinkk; 04-11-2004 at 04:37 AM.
blinkk is offline   Reply With Quote
Old 04-11-2004, 04:39 AM   #6
sarahk
Senior Member
 
sarahk's Avatar
 
Join Date: Mar 2001
Location: Auckland, New Zealand
Posts: 1,283
Quote:
Originally posted by blinkk
I gues that instead of relying on that I'll just make the SOBs who visit it wait.
Ummm, you might just want to revisit the way you think about your "customers".
__________________
Kiwis: iTamer's PHP Articles
sarahk is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:50 AM.








Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.