/    Sign up×
Community /Pin to ProfileBookmark

preload-images for rollover-NEED HELP

i used the generator for my pre-load-images task and the codes not working, any advice…

Please and Thank You

[upl-file uuid=fba3f5d5-3a19-4e7e-bb67-e526f13147ba size=2kB]help.txt[/upl-file]

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Zach_ElfersFeb 02.2003 — I put two '' after C:

<script language="JavaScript" type="text/JavaScript">

<!--

//Pre-load Images

img1 = new Image(w,h);

img1.src = "img1.ext";

img2 = new Image(w,h);

img2.src = "img2.ext";

//-->

</script>

...

<a onMouseOver="document.img1.src = 'C:img2.ext';" onMouseOut="document.img1.src = 'C:img1.ext';"><img name="img1" src="C:img1.ext" width="w" height="h"></a>

That should definitely work.
Copy linkTweet thisAlerts:
@raysttauthorFeb 02.2003 — [i]Originally posted by Zach Elfers [/i]

[B]I put two '' after C:



<script language="JavaScript" type="text/JavaScript">

<!--

//Pre-load Images

img1 = new Image(w,h);

img1.src = "img1.ext";



img2 = new Image(w,h);

img2.src = "img2.ext";

//-->

</script>

...

<a onMouseOver="document.img1.src = 'C:img2.ext';" onMouseOut="document.img1.src = 'C:img1.ext';"><img name="img1" src="C:img1.ext" width="w" height="h"></a>



That should definitely work. [/B]
[/QUOTE]





THANK YOU, it works but question?

three (3) ... period marks show up ofter the image.

Do u Know why?
×

Success!

Help @raystt 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.18,
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,
)...