So, I’m sure there is a very simple and solid solution to this problem (I’m hoping it’s not “It can’t be helped” ? ) but it seems to be hiding from me at the time ?
So I’m hoping maybe one of you guys know how to deal with it!
So here’s the problem:
I’m using onmouseover and onmouseout to change the images, and ahm… It’s best to show an example (I suck at explaining :/ )
<HTML>
<HEAD><TITLE></TITLE>
<SCRIPT language=”JavaScript”>
Link1_1= new Image()
Link1_1.src=”Animations/Refined/MenuItem_01Ani.gif”
Link1_2= new Image()
Link1_2.src=”Animations/Refined/MenuItem_01.gif”
//etc…
</SCRIPT>
</HEAD>
<BODY>
<A href=”whatever.html” target=”Frame1″><IMG onmouseover=”document.all.[Link1].src=Link1_1.src” onmouseout=”document.all.[Link1].src=Link1_2.src” src=”Animations/Refined/MenuItem_01.gif” title=”Description for link 1″ id=”Link1″ border=”0″></A>
<A href=”Images/Image1.jpg” target=”new”>Some link</A>
</BODY>
</HTML>
The preloading works all fine, there’s nothing wrong with it. It’s just that, when I click on “Some link” (any link that opens a new window) and return to the original page (in other words, close or minimalize the newly opend window), the images for the button have to be loaded again onmouseover/onmouseout.
It’s not like the preloaded image HAS to be loaded from the web/server again, the computer already has it stored in it’s temp files. Can’t I just tell it to use that image instead?
So much for the first problem. On to the second.
The second is much easier, I think. I’m using the “scrollBy(x,y)” function instead of the scrollbar. I thought this function was supported by all browsers? But it seems to work only on mine :S (IE 6)
anyone suggestions/thougths on that one?
I really REALLY appreciate some help here ^_^
Greetz,
Marius.