Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    May 2008
    Location
    Newcastle Upon Tyne
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Most suitable code for my website

    As webmaster of my company, I have been asked to create our website, which you can visit at www.visualimpactuk.com.

    I put it together using only html and a little js, but I know there is lots of room for improvement. But my boss doesn't, so I did a quick job to get a bonus.

    I mean, some pages have around 10 frames so it's a nightmare to keep ontop of, and of course I am aware of the massive flaws found in frames.

    I do take pride in my work, and I want the website to look its best and be as fast as possible. Which would be the most suitable way to build it and how can I increase the speed of this image heavy site (I can't really compromise on image size any more than I have because of the nature of our business)? I guess Flash would be best for this purpose - but I despise that program and don't have a copy anyway.

    ...and how do I put up an avatar?

    Thanks, people.
    Last edited by Bodger Bowham; 05-07-2008 at 12:29 PM.

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,511
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    I'm amazed it looks and works as nice as it does ... good job on that.

    Anything else you do would be a total re-write ... such as using PHP and
    maybe some <iframe> inline frames (instead of frames) ... and CSS stylesheet.
    That would solve the "maintenance" problem because making changes would
    be easy ... the content could be stored in simple text files.

    There's nothing wrong with some Javascripting, if it's not a requirement for
    navigation. In the chance someone has it turned-off, your site should still
    be operational.

    But you do have the advantage of a site that's "done" ... and you could work
    on a clone of the site "on the side", with no frames. Sort of working secretly.

    ===========

    An avatar for this forum? Click the "User CP" button in upper left corner of this screen.

  • Users who have thanked mlseim for this post:

    Bodger Bowham (05-07-2008)

  • #3
    New Coder
    Join Date
    May 2008
    Location
    Newcastle Upon Tyne
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts
    I've managed to speed up the website and any future editing quite a lot using only iframes (it was all plain frames before), and altering the layout slightly. I also used div positioning to let things overlap whereas they used to be 1 large image with text added in photoshop.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,511
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    You better check your site with FireFox browser ... something is "amiss".

    I didn't look close enough to see what was happening, but I'm guessing it's
    a background color issue.

    ===========

    By inline frames, I was imagining your index.php (or index.html) file would
    be the main page, with the banner, the navigation, and the footer. There
    would be an inline frame where the content would appear. Each content
    page would be a separate file that gets put into the iframe based on the link.

    <a href="about.html" target="iframe1">about us</a>

    On the same index.html you have:
    <iframe name="iframe1" width="450" height="200" .... etc.

    When the link is clicked, the contents of "about.html" get put into
    that iframe, because that is the target for it.

    The point of using <iframe> is to have a frame within a page (inline).

    Alternatively, you could use PHP includes to populate a <div> area
    where the content appears. No <iframe> needed at that point, but the
    whole page would refresh instead of the <iframe>. If having the whole
    page refresh is OK, PHP would be the way to go.

  • #5
    New Coder
    Join Date
    May 2008
    Location
    Newcastle Upon Tyne
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Damn, your right. It doesn't work at all in Firefox really. I didn't specify a background colour because in IE the default is white. Anyway that is fixed now but the content still doesn't quite fit on the page. Very annoying. Any suggestions on how I can fix this?

    Unfortunately I'm not very literate in PHP, but my idea was to not refresh the whole page in order to save loading time.

    Anyway, at least now it is legible in Firefox. The site is designed for our clients or potential clients - architects. I'm sure the outstanding majority of them use IE, but yes, it will have to be fixed.

    Does Firefox disable some javascript by default? My coloured scrollbars aren't working.
    Last edited by Bodger Bowham; 05-09-2008 at 04:02 PM.

  • #6
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Quote Originally Posted by Bodger Bowham View Post
    The site is designed for our clients or potential clients - architects. I'm sure the outstanding majority of them use IE, but yes, it will have to be fixed.
    I know only three architects so my results aren't scientific. But all three of them, use firefox.

    hth.

    bazz


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •