Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member krazy's Avatar
    Join Date
    Apr 2003
    Location
    California
    Posts
    543
    Member #
    1078
    i read the post: http://www.webdesignforums.net/showt...ght=preloading

    but me being bad at javascript i don't really understand it. I do, but what i have is kind of different.
    how would i go about appyling what is in that thread to this:
    Code:
    <div id="Layer3" style="position:absolute; width:55px; height:0px; z-index:2; left: 99px; top: 234px;"> 
      <a href="/memberz.html"
    onMouseOver="document.getElementById('image1').src ='../images/animated/members.gif';"
    onMouseOut="document.getElementById('image1').src = '../images/still/members.jpg';"> 
      <img src="../images/still/members.jpg" width="99" height="24" border="0" id="image1"></a></div>
    Ad space - for sale, $19.95/month

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    at the beginning of your page, add this to preload the images:
    Code:
    <script language="javascript">
        var img1 = new Image;
        img1.src = "../images/animated/members.gif'";
        var img2 = new Image;
        img2.src = "../images/still/members.gif'";
    </script>


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:51 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com