Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image pre-load issue

Status
Not open for further replies.

jflachman

Technical User
May 30, 2001
133
US
I've programmed an image to &quot;look&quot; at the cursor, wherever it is. Here is the source for the image in the <Body>
[tt]
<img src=&quot;images\straight.gif&quot; name=&quot;follower&quot;>
[/tt]
Here is the code that is called by onmousemove event:
[tt]
Looker = new Array(
&quot;images/straight.gif&quot;,
&quot;images/up.gif&quot;,
&quot;images/upright.gif&quot;,
&quot;images/right.gif&quot;,
&quot;images/downright.gif&quot;,
&quot;images/down.gif&quot;,
&quot;images/downleft.gif&quot;,
&quot;images/left.gif&quot;,
&quot;images/upleft.gif&quot;
);
function mousefollow() {
getmousexy();
if (xmouse > (ximage+45)) {
if (ymouse > (yimage + 60)) document.follower.src=Looker[4];
else if (ymouse < (yimage - 60)) document.follower.src=Looker[2];
else document.follower.src=Looker[3];
}
else if (xmouse < (ximage-45)){
if (ymouse > (yimage + 60)) document.follower.src=Looker[6];
else if (ymouse < (yimage - 60)) document.follower.src=Looker[8];
else document.follower.src=Looker[7];
}
else {
if (ymouse > (yimage + 60)) document.follower.src=Looker[5];
else if (ymouse < (yimage - 60)) document.follower.src=Looker[1];
else document.follower.src=Looker[0];
}
}
[/tt]

I've tried every pre-load image routine I can find. The thing is that even after an particular image has been viewed it still has a delay while it goes back to the web to reload it every time it changes. I'm stumped.

My cache is large enough...any other ideas?


Jonathan
________________________________________
It is not fair to ask of others what you are unwilling to do yourself.
-Eleanor Roosevelt
 
Duh...I'm a schmuck. I figured it out.
Sorry to waste your time. Jonathan
________________________________________
It is not fair to ask of others what you are unwilling to do yourself.
-Eleanor Roosevelt
 
no no you're not waisting our time IF you tell us what was the point !!! how did you solve your problem ??
 
I tried it on a different browser and it worked perfectly. I had my browser set to check for newer versions with every visit to a page. When I set it to &quot;Automatically&quot; check for newere versions, it worked fine. Jonathan
________________________________________
It is not fair to ask of others what you are unwilling to do yourself.
-Eleanor Roosevelt
 
this means that if your clients have this option off, they won't see your site properly ??
 
This means that if viewers have this site off, they will have a delay in viewing the image. I know I could fix it with layers and if it were a corporate site, I would take the time. It's a personal site and I have other things that are higher priority. Jonathan
________________________________________
It is not fair to ask of others what you are unwilling to do yourself.
-Eleanor Roosevelt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top