Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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
    info@net-allies.de

  • 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
    info@net-allies.de

Sign In or Register to comment.