Home
Help
Login
Register
LATEST NEWS:
No More Pop-UP Ads on Free Hosting Member Pages!
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Helping Webmasters - Website Support and Webmaster Forum
Web Design & Developement
Web Design / HTML
javascript refresh your lucky number
Pages: [
1
]
« previous
next »
Send this topic
|
Print
Topic: javascript refresh your lucky number (Read 116 times)
javascript refresh your lucky number
« on: May 06, 2008, 02:33:54 PM »
metrazaman
Newbie
Posts: 4
<html>
<head>
<title>Lucky Numbers</title>
<script language="JavaScript">
/* This function picks a random number between 0 and 9 and writes it to the page. */
function doLucky() {
var x = Math.round(Math.random() * 9);
document.write(x);
}
</script>
</head>
<body>
<!-- The following paragraph calls the doLucky() function three times to write three
random numbers to the page. -->
<p>Here are your lucky numbers for the day: <strong>
<script language="JavaScript">doLucky();</script>
<script language="JavaScript">doLucky();</script>
<script language="JavaScript">doLucky();</script>
</strong></p>
</body>
</html>
Report to moderator
Logged
Pages: [
1
]
Send this topic
|
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General and Business Discussion
=> Introductions
=> Web Hosting Forum
=> Website Reviews
=> How To's & Tutorials
=> Web Hosting Blog
-----------------------------
T35 Hosting Support
-----------------------------
=> Announcements
=> Pre-Sales Inquiries
=> Free Hosting General Support
=> Free Hosting Login Support
=> Free Hosting Domain Support
=> Paid Hosting General Support
=> Paid Hosting cPanel & Fantastico Support
=> T35 Hosting Testimonials
=> T35 Hosting Suggestions
-----------------------------
Web Design & Developement
-----------------------------
=> Web Design / HTML
=> Programming
=> Graphic Design
=> Useful Resources
-----------------------------
Revenue & Traffic
-----------------------------
=> Ad Revenue
=> Search Engine Optimization
-----------------------------
Market Place
-----------------------------
=> Sites & Domains for Sale
=> Trade Services / Employment
=> Contests
=> Site Promotion
Powered by SMF
|
SMF © 2006-2008, Simple Machines LLC