/    Sign up×
Community /Pin to ProfileBookmark

how to keep main page loading after script starts

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:
[url]http://javascript.internet.com/page…ble-viewer.html[/url]

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

is there a way around this?

thanks!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@zachzachOct 24.2003 — 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/
Copy linkTweet thisAlerts:
@CharlesOct 24.2003 — [font=monospace]<!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>[/font]
×

Success!

Help @tallen240 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...