Results 1 to 6 of 6
  1. #1
    Full Member
    Join Date
    January 18th, 2005
    Posts
    224
    I have a large graphic on a page. There is very little text, and the graphic takes up to 60 seconds to load using a 56k modem.

    A thumbnail wouldn't work, I need to have the entire full-sized graphic display.

    Is there a way I can preload an image on a different page of my website (say the home page) that will affect the page I need the graphic preloaded on?

    For example, if my homepage is abc.com, and I have a large graphic I want preloaded on another page, say hij.com, can I put a script on abc.com that will preload the graphic on hij.com in case the viewer decides to go there?

    Thanks for any replies,
    Rick K.
    "Whether you think you can, or whether you think you can't...You're right!" -Henry Ford-

  2. #2
    ABW Ambassador Greg Rice's Avatar
    Join Date
    January 18th, 2005
    Location
    Ohio
    Posts
    4,889
    Try preloading the image like you would if you were using a mouseover.
    Greg Rice Affiliate Program Management
    www.gocmc.com info(AT)gocmc.com | 330-259-1223

    Join us! - MiNeeds.com | DiscountCandleShop/CheeseSupply | Feng Shui Plaza

  3. #3
    Full Member
    Join Date
    January 18th, 2005
    Posts
    331
    Rick,

    I found this code and if you don't mind using javascript it might work..
    ---------------
    Insert the following code into your 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 = "image1.gif";
    img2.src = "image2.gif"
    }
    </SCRIPT>

    Insert the preloaded image on subsequent pages by its name and path: "image1.gif".
    -----------------------------

    Other solutions I found were to simply insert the image in the page prior to the one that the image is on but resize it to 1x1

  4. #4
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    Hello Rick, if you go to the ABW 'Tools' section on the top nav bar you will find a code generator that will create your code snippet for you.
    Ray Thomas
    Webmaster Resources: http://DesignerWiz.com
    ABW Board Category: Programming / Coding
    http://forum.abestweb.com/forumdisplay.php?f=190

  5. #5
    Full Member jollygoodpirate's Avatar
    Join Date
    January 18th, 2005
    Location
    NC
    Posts
    227
    An alternative to preloading is using
    the lowsrc attribute on the image tag.

    This will load a low resolution image quickly and
    replace it with the high resolution when it is done. Very effective if you also modify the low res with a watermark that says " Loading..."

  6. #6
    Full Member
    Join Date
    January 18th, 2005
    Posts
    224
    Thanks to
    Hotspice, Ray, and jollygoodpirate.

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Other solutions I found were to simply insert the image in the page prior to the one that the image is on but resize it to 1x1 <HR></BLOCKQUOTE>
    I forgot about that trick. But wouldn't the 1x1 image still take a lot of time to preload? Or does it point to an image file and preload it to the visitor's browser cache? My index page has a lot of text, so that may be a good place to stash it.

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>An alternative to preloading is using
    the lowsrc attribute on the image tag. <HR></BLOCKQUOTE>

    Good tip. I dug out an old HTML book and looked up lowsrc. It's funny how a lot of the things you read and study don't stick until you need them. I'll play around with this one.

    Of course, javascript is a possibility, but how many scripts can you run without interference? I already have two on my pages- one in the head, the other in the body.

    Thanks, all.
    Rick K.
    "Whether you think you can, or whether you think you can't...You're right!" -Henry Ford-

  7. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Free images? good quality images cheap?
    By breakingtheborders in forum Blogging, Mobile and Social Media
    Replies: 0
    Last Post: November 18th, 2011, 09:47 AM
  2. Script to Downlaoding Images?
    By Eric Ewe in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: July 30th, 2007, 04:39 PM
  3. Script to show customised text and images on a t-shirt?
    By Azam in forum Programming / Datafeeds / Tools
    Replies: 0
    Last Post: October 30th, 2006, 02:09 PM
  4. script/program to d/l images from feed?
    By dpl882 in forum Rakuten LinkShare - LS
    Replies: 3
    Last Post: April 13th, 2006, 07:15 PM
  5. ae.pl script v4.05.31 still not showing apparel images
    By evaluebuy in forum Cusimano.com Scripts
    Replies: 2
    Last Post: July 25th, 2004, 12:53 PM

Posting Permissions

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