/    Sign up×
Community /Pin to ProfileBookmark

a question in html

I have this script

[B]<html dir=”ltr”>

<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>New Page 1</title>
</head>

<body>
<HTML><HEAD>
<SCRIPT>
[COLOR=”Blue”]var img0 = new Image( 200,250 );
img0.src = “Untitled-3.jpg” ;

var img1 = new Image( 200,250 );
img1.src = “Untitled-4.jpg”;

var img2 = new Image( 200,250 );
img2.src = “Untitled-6.jpg”; [/COLOR]var i = 0;
var nbImg = 3; // change to the number of different images you have
function animate() {
document.images[0].src = eval(“img” + i ).src;
i++;
if (i == nbImg) i=0;
junk = setTimeout(“animate();”, 3000); // in milliseconds
}
</SCRIPT>
</HEAD><BODY onLoad=”animate();”>
<IMG src=”” width=200 height=250>
</BODY></HTML>

</body>

</html> [/B]
How can I make a link to each of the photo I put….? (you can see this in the blue color)
I need that to every photo will have a different link…where do I put this link on the script (link for example – [url]http://www.cnn.com)?[/url]
?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@dtm32236Nov 13.2007 — i'm not great with JS, and i'm not really sure what this script is doing, as i don't see an animate function doing anything but changing the image every 3 seconds...

but [url=http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm]here's[/url] a pretty nice image fading script that supports links...
Copy linkTweet thisAlerts:
@WebJoelNov 13.2007 — ....</BODY></HTML>

[B]</body>



</html>[/B]
[/QUOTE]
-Pretty sure that you can omit the last two tags... (not solution to the problem, -just an obersvation).
×

Success!

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