4 like 0 dislike
1.5k views

Write a JavaScript program to display a random image (clicking on a button) from the following list.
Sample Image information :

"PIPLS width: "240", height: "160"
"PIPLS width: "320", height: "195"
"PIPLS width: "500", height: "343"

[Exercise] Essay (Open question) - asked in 2016-2 CSIEB0270 - Internet System Design and Practice by (18k points)
ID: 23134 - Available when: Unlimited - Due to: Unlimited
| 1.5k views
0 0
Show more...

16 Answers

0 like 0 dislike
Hidden content!
** * ** ****** * **** * * ** * * ***
answered by (-85 points)
0 like 0 dislike
Hidden content!
* * ** **** *** *** * **** * ** *** * ** ** *** ** **
answered by (-211 points)
0 like 0 dislike
Hidden content!
var *** = new * ******
* * = ** ** * ** **** * * ** * * **** *** *
* * = ***
** * = *
* * ******
** = ***
answered by (72 points)
0 like 0 dislike
Hidden content!
** * * *** * ** * * * * * * * *** *
answered by (16 points)
0 like 0 dislike
Hidden content!
<html>
***** **** ** ********* * ** **
*** *** ** ** ****** *** * * * ** ** ** ***
****** *** * * * * **** * * *** * * * *** **** * *** * * ** imgurl = [
** * * * ***** * * * ***** ******* * ***** **** * * * *** ** * * *** ** *** * * * * * * * ** **
* * * *** ** ** * * ** ** **** * *** ** *** ***** ***** **** * ** **** * * ** ** ** * * *** *** * ** * * * **
** **** ** * ** ** * *** ***** *** ** ******* * * ** * * * * *** *** ***** * * ******* * * **** ** ** **
** * ** **** **** * * * ** * **** *** ** * * ** * * * ** ** **
* ** **** *** * * ** ** * * * * * * * * * *** * ******* * ** * ***
** * * ** ** *** *** * *** * ** ** ******** * ** ******* *
*** * ******* * ****** *** ** * **** * **** * ** * * * *** * * * ** onClick() {
* * ** * **** * ** ***** *** ** ** ** *** ** *** *** * ** ** ** * ** * * * ** *** * * * imgNumber = Math.floor(Math.random()*3);
* * * *** **** **** **** * * ** ** * *** ** ** * ** ** * * * ** * * * * *** * **** *** ** type ="button" onclick="onClick()" value="random img"></input>');
* * * * * *** *** * *** * * * * *** ** * * * * ** * *** **** * * * ***** * ******* ** ** ** ** * *** **** = imgurl[imgNumber];
* * **** * *** * *** ** * * * * * * * * * * * ** ** **** * * *** ** * *** **** ** src="'+imgurl[imgNumber]+'">');
* * *** * * ** *** * * * ** ** **** ** *** * * ** * ** ** ** **
* * * **** * *** * * * * * * ** * ** *

<body>
** ** ** ** *** * * * * **** ** ** **** * **** ** ** type ="button" onclick="onClick()" value="random img"></input>
** * * * ** * * ** * **** * * * ** * * * ** ** name="slideshow" src="">

</body>

</html>
answered by (18 points)
edited by
0 like 0 dislike
Hidden content!
* * *** * * ***** **** * *** ** *** **** * ** ** *
answered by (-32 points)
edited by
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.71.255.65
©2016-2025

Related questions

3 like 0 dislike
17 answers
[Exercise] Essay (Open question) - asked Mar 23, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
ID: 23133 - Available when: Unlimited - Due to: Unlimited
| 1.6k views
3 like 0 dislike
18 answers
[Exercise] Multichoice - asked Mar 22, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
ID: 23127 - Available when: Unlimited - Due to: 2017-03-23 09:30:00
| 1.4k views
2 like 0 dislike
0 answers
[Resource] asked Mar 23, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
ID: 23132 - Available when: Unlimited - Due to: Unlimited
| 46 views
3 like 0 dislike
18 answers
[Exercise] True/False - asked Mar 22, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
ID: 23130 - Available when: Unlimited - Due to: 2017-03-23 09:30:00
| 1.5k views
2 like 0 dislike
26 answers
[Exercise] Multichoice - asked Mar 22, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
ID: 23129 - Available when: Unlimited - Due to: Unlimited
| 1.9k views
12,783 questions
183,442 answers
172,219 comments
4,824 users