Click to See Complete Forum and Search --> : how to keep main page loading after script starts


tallen240
09-30-2003, 12:16 AM
Is there a way to make it so the script doesn't work until the page is loaded fully?

I'm using one that opens a larger picture in a new window when they click on the small version of the picture. The problem is if they click on any of the pictures before the page has finished loading then it stops loading so they won't see the other small pictures to click on.

the the script I'm using is:
http://javascript.internet.com/page...ble-viewer.html

One of the pages I have it on so far is:
http://www.HandA-Accessories.com/elementint.html

is there a way around this?

thanks!

zachzach
10-23-2003, 08:45 PM
put the script at the end of the content, like:
<body>
blah blah
end of your stuff here
<script>script here</script>
</body>
visit my homepage!!!!!!!!!!
http://webforums.board.dk3.com/

Charles
10-23-2003, 09:38 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<title>Example</title>

<script type="text/javascript">
<!--
onload = function () {
alert('These are the scripts that try men\'s souls.');
}
// -->
</script>