SITE REVIEW: Before-Reality.net [updated 2/2/04 22:15]

  • The Shrew
  • Graduate
  • Graduate
  • User avatar
  • Joined: Jun 30, 2003
  • Posts: 247
  • Loc: Florida
  • Status: Offline

Post August 31st, 2003, 11:01 am

That looks pretty sweet. You said the clock would be keeping track of time though?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 31st, 2003, 11:01 am

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 31st, 2003, 11:35 am

of course, but those are all just images right now.
Pixel Acres V2
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 31st, 2003, 6:18 pm

I have a bit of a demo page up, the clock is working, except some of my images are doubled, and I am missing some, (thats what I get for talking on AIM and doing that at the same time). So I have to go back through and figure out which ones are missing. Let me know what you think!

http://bro.acgcny.com/concept/contest.php
Pixel Acres V2
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post August 31st, 2003, 6:43 pm

I recommend that you preload all the images you are using for the clock. The reason I say that is for the first minute that the clock is ticking every second the browser loads a new image, which cause the hourglass on the mouse to show up. It also cause the text on the bottom to show up to say what image it is downloading. Kind of tacky. Anyway if you preload all the images you need for the clock when the page loads you shouldn't have that problem. You might have to research how to preload images using JavaScript if you do not know how.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 31st, 2003, 6:44 pm

They didn't preload for you :-/

It didn't preload for me either..rats what did I do wrong!?

This is what I have to write the preloaded (no way I was going to do it by hand)

Code: [ Select ]
    <?
    foreach (glob("clock/minutes/*.gif") as $fn) {
        $fnn = str_replace('clock/minutes/', '', $fn);
        $fnn = str_replace('.gif', '', $fnn);
        echo ('image' . $fnn . '= new Image(111,111);' . "\n");
        echo ('image' . $fnn . '.src = "clock/minutes/' . $fn . '";' . "\n");
    }
    foreach (glob("clock/hours/*.gif") as $fn) {
        $fnn = str_replace('clock/hours/', '', $fn);
        $fnn = str_replace('.gif', '', $fnn);
        echo ('image' . $fnn . '= new Image(111,111);' . "\n");
        echo ('image' . $fnn . '.src = "clock/minutes/' . $fn . '";' . "\n");
    }
    ?>
  1.     <?
  2.     foreach (glob("clock/minutes/*.gif") as $fn) {
  3.         $fnn = str_replace('clock/minutes/', '', $fn);
  4.         $fnn = str_replace('.gif', '', $fnn);
  5.         echo ('image' . $fnn . '= new Image(111,111);' . "\n");
  6.         echo ('image' . $fnn . '.src = "clock/minutes/' . $fn . '";' . "\n");
  7.     }
  8.     foreach (glob("clock/hours/*.gif") as $fn) {
  9.         $fnn = str_replace('clock/hours/', '', $fn);
  10.         $fnn = str_replace('.gif', '', $fnn);
  11.         echo ('image' . $fnn . '= new Image(111,111);' . "\n");
  12.         echo ('image' . $fnn . '.src = "clock/minutes/' . $fn . '";' . "\n");
  13.     }
  14.     ?>


//Do I have to write it out inorder for it to work?

I figured it out as I was writing hopefully, I was refencing the trimed filename (less the imporant */*/ and .gif) in my php script, hopefully it works better now! (darn host is slow again.)
-------
ARG! I was actually wrong about that, I was referencing the untrimmed version with the */*/ so it was actualy going to */*/*/*/*.gif
Pixel Acres V2
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post August 31st, 2003, 7:04 pm

You have to preload the images with JavaScript. You cannot do it with PHP because PHP is not running on the client. JavaScript is, and that is what you are using to make your clock tick and to call the images each second.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 31st, 2003, 7:17 pm

Heh I think I have it working now, I wrote that bit so I wouldn't have to write out the script for 60 images.
Pixel Acres V2
  • tierra
  • Student
  • Student
  • User avatar
  • Joined: Aug 29, 2003
  • Posts: 91
  • Status: Offline

Post August 31st, 2003, 7:48 pm

damn, that's pretty good!

I'm not a fan of Javascript, but that's some nifty work!
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post August 31st, 2003, 7:53 pm

thanks a lot, next step will be the php for setting/stopping the alarm!
Pixel Acres V2
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post September 2nd, 2003, 9:23 am

If you all could please take a look here:
http://bro.acgcny.com/concept/contest.php

I was wondering what you all thought of the importance of the seconds hand (please vote above!).

The reason I ask, is because in order for there to be a seconds hand, it needs to preload 72 .5kb images before the pages starts. I know that 36kb isn't a lot for a normal image, but having to parse 146 lines of javascript before the page loads takes very long for 36kb (page loads in about 5-10 seconds on a cable modem).

So basically here is the rundown:
With Seconds:
5-10 second load
146 lines of JS need to be parsed
Better clock
http://bro.acgcny.com/concept/contest.php

Without Seconds:
>2 seconds to load
No preloading JS
Kinda boring clock
http://bro.acgcny.com/concept/contest2.php

So let me know what you think, if 5-10 seconds works, I'd like to keep it there, but if it is too long, let me know.
Pixel Acres V2
  • tierra
  • Student
  • Student
  • User avatar
  • Joined: Aug 29, 2003
  • Posts: 91
  • Status: Offline

Post September 2nd, 2003, 3:14 pm

looks like the server is fast enough to pass out the images... but if you were to get a lot more graphics or content on there, it might be better to go without the seconds hand... I also noticed it's something that can be cached, but it still has to make the requests for it on every page to check if it's updated.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post September 2nd, 2003, 4:28 pm

yeah once I added a link in there the second page loaded a lot faster. I'll see if it gets boggy later down the road, for now it will stay though!
Pixel Acres V2
  • sc@rface
  • Novice
  • Novice
  • User avatar
  • Joined: Sep 03, 2003
  • Posts: 15
  • Status: Offline

Post September 3rd, 2003, 6:58 pm

im digging the mouse over, i like the colors and creativity with tables, i checked your coding out, at 1st i thought it was an iframe, very nice usage of javascript
  • Nego
  • Expert
  • Expert
  • User avatar
  • Joined: Aug 28, 2003
  • Posts: 697
  • Loc: Chicago
  • Status: Offline

Post September 4th, 2003, 9:14 pm

Meh

Image
Nego ~ The Linux Supervilen
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post September 5th, 2003, 1:19 pm

meh?
Pixel Acres V2
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 5th, 2003, 1:19 pm

Post Information

  • Total Posts in this topic: 59 posts
  • Moderator: Website Reviewers
  • Users browsing this forum: No registered users and 16 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.