Place the following code between <script language= "JavaScript" >
A = 4
var slump = Math.random ();
var talet = Math.Round (Slump * (A-1)) +1;
function Create () {
THIS.SRC = '
This.border = '
This.alt = '
}
b = New Array ()
for (var i=1 i<=a; i++) {B[i] = new Create ()}
Place the following code anywhere in the HTML file:
<script language= "JavaScript" >
<!--Hide This script from the old browsers-
document.write (Visa)
-->
</script>
5. Play MIDI Music randomly
Place the following code between <script language= "JavaScript" >
<!--Hide from non JavaScript browsers
AM = 5
var ran = Math.random ();
var Talet = Math.Round (ran * (am-1)) +1;
function Create () {
THIS.SRC = '
}
c = New Array ()
for (var i=1 i<=am; i++) {C[i] = new Create ()}
Vismid + = ' <embed src= ' +c[talet].src+ ' width=0 height=0 ' + ' autostart=true ' + ' loop=2 ' + ' > ';
-->
</SCRIPT>
Place the following code between <body></body>:
<script language= "JavaScript" >
<!--Hide from non JavaScript browsers
document.write (Vismid);
-->
</script>
6. Random text
Place the following code between <script language= "JavaScript" >
<!--Hide
var a = Math.random () + ""
var rand1 = A.charat (5)
Quotes = new Array
QUOTES[1] = "Message #1"
QUOTES[2] = "Message #2"
QUOTES[3] = "Message #3"
QUOTES[4] = "Message #4"
QUOTES[5] = "Message #5"
QUOTES[6] = "Message #6"
QUOTES[7] = "Message #7"
QUOTES[8] = "Message #8"
QUOTES[9] = "Message #9"
Quotes[0] = "Message #10"
var quote = Quotes[rand1]
-->
</script>
Place the following code anywhere in the HTML file:
<script language= "JavaScript" >
<!--Hide
document.write ("<i>" + quote + "</i>")
-->
</script>
7. Random Connection
Place the following code between <script language= "JavaScript" >
<!--Hide from non JavaScript browsers
an = 5
var ran = Math.random ();
var Talet = Math.Round (ran * (an-1)) +1;
function Create () {
THIS.SRC = '
}
b = New Array ()
for (var i=1 i<=an; i++) {B[i] = new Create ()}
B[1].SRC = "<a href= ' http://netscape.yahoo.com/guide/Whats_cool.html ' >"
B[2].SRC = "<a href= ' http://www.disney.com ' >"
B[3].SRC = "<a href= ' http://www.peoplelink.com/' >"
B[4].SRC = "<a href= ' http://www.china-contact.com/cool/interest.htm ' >"
B[5].SRC = "<a href= ' HTTP://www.homeway.com.cn/html/homeway/navigator/index.html ' >"
var vis = "";
Vis + + b[talet].src;
-->
</SCRIPT>
Place the following code between <body></body>:
<script language= "JavaScript" >
<!--Hide from non JavaScript browsers
document.write (vis+ "Random link" + "</a>");
-->
</SCRIPT>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.