Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

Anybody see why this is not working!

Thread view: 
Mr.G  (@¿@) - 06 Aug 2007 15:14 GMT
Hi, I cliped this and mofified it to be used in a mouse_over to change
the background of text. This is supposed to pre-load the image on
mouse over but it don't!

<script language="Javascript">

function ImgPreLoad()
{
var my_images_array = new Array ('ltrhome.jpg', 'ltrabout',
ltrphoto.jpg', 'ltrmap.jpg', 'ltreq.jpg', 'ltcont.jpg');
LoadmUp (my_images);
}

function LoadmUp (my_images_array)
{
for (loop = 0; loop < my_images_array.length; loop++)
      {
          var one_image = new Image();
          one_image.src = my_images_array[loop];
       }
}
</script>
Arne Vajhøj - 06 Aug 2007 15:48 GMT
Mr.G (@¿@) wrote:
> Hi, I cliped this and mofified it to be used in a mouse_over to change
> the background of text. This is supposed to pre-load the image on
[quoted text clipped - 18 lines]
> }
> </script>

Try ask in a JavaScript group.

Arne
Thomas Fritsch - 06 Aug 2007 15:53 GMT
> Hi, I cliped this and mofified it to be used in a mouse_over to change
> the background of text. This is supposed to pre-load the image on
> mouse over but it don't!
>
> <script language="Javascript">
[...]
> </script>
In spite of their names "Java" and "Javascript" are completely different
languages. The group you want is "comp.lang.javascript", but not this
group.

Signature

Thomas



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.