Welcome to TalkGraphics.com
Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
  1. #21

    Default Re: New Website Created soley with Xara Xtreme4

    Quote Originally Posted by raynerj1 View Post
    The galleries looked good, just loaded a little slow for my taste. Was wondering how mouseover images are preloaded. Maybe the code could be tweaked a touch to speed up loading.
    Only mouseovers are the navigation links, the rest are popups - but I know what you're saying..
    I think the popup images are simply loading on hover.
    So I've added some simple javascript into the <head> which seems to have helped a little, although the site has to load no matter what or when, the script just loads them while you are looking at the first page...

    Anyone can try this, insert the following code into the HEAD tag.
    Be sure to use the correct name and path for your image!
    <SCRIPT LANGUAGE = JAVASCRIPT>
    if (document.images)
    {
    img1 = new Image();
    img2 = new Image();
    img1.src = "imageName1.gif";
    img2.src = "imageName2.gif"
    }
    </SCRIPT>
    Preloading images doesn't actually change your download time, but subsequent pages appear to load faster.

    I kept the size down and exported them photos as JPEG (illustrations are PNG for detail and the absence of jpg artifacts & mosquitos), they load almost instantly here. My ASL connection speed is 1.5mbit and the hosting for that domain is in Sydney.
    The entire site is just 1.54mb, a little over a floppy disk size, so I'm not too concerned untill I get into much larger and 'real gallery mode'. But then, that's the nature of online photo galleries I suppose, hi-res beauty comes at a cost and a little compromise by the viewer - ie; patience

  2. #22
    Join Date
    May 2003
    Location
    Box Elder, SD, USA
    Posts
    4,034

    Default Re: New Website Created soley with Xara Xtreme4

    Thanks Steve. That is what I thought was missing.
    John Rayner
    For my Photography see:
    http://www.draginet.com
    Facebook

  3. #23
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: New Website Created soley with Xara Xtreme4

    Quote Originally Posted by sledger View Post
    ...insert the following code into the HEAD tag...
    Thanks for that tip Steve one thing though to clarify, is the code inserted into the head tag or in the head section, i.e between the tags?
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

  4. #24

    Default Re: New Website Created soley with Xara Xtreme4

    example:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <SCRIPT LANGUAGE = JAVASCRIPT>
    if (document.images)
    {
    img1 = new Image();
    img2 = new Image();
    img1.src = "imageName1.gif";
    img2.src = "imageName2.gif"
    }
    </SCRIPT>
    <meta name="XAR jpegs" content="1"/>
    <title>index</title>
    <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"/>
    <meta name="Generator" content="Xara HTML filter v.1.1.0.301"/>

  5. #25
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: New Website Created soley with Xara Xtreme4

    Thanks
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

 

 

Bookmarks

Posting Permissions

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