Preloaging a webpage - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Preloaging a webpage

nomi49nomi49 Posts: 75Member
Can any body tell me the code of
Preloading a web page using Java script


Comments

  • SouldrinkerSouldrinker Posts: 143Member
    this depends on what do you want to preload... either images or some text

    best regards,

    sebastian mohrenstecher
    executive secretary
    net::allies

    www.net-allies.de
    [email protected]

  • nomi49nomi49 Posts: 75Member
    what if i want to preload
    both Images and text on a web page

    thanx







  • SouldrinkerSouldrinker Posts: 143Member
    hmzzz you could preload images for example for mouseover effected link-images, if that is what you want, do this:

    var my_images = new Array();
    var my_hover_images = new Array();

    my_images[0] = new Image();
    my_images[0].src="some_source.gif";

    my_hover_images[0] = new Image();
    my_hover_images[0].src="some_hover_source.gif";

    this might work - how to preload some text I don't know, as javascript does not support any file functions this could be quite a tricky problem.


    best regards,

    sebastian mohrenstecher
    executive secretary
    net::allies

    www.net-allies.de
    [email protected]

Sign In or Register to comment.