PDA

View Full Version : js help


alessandro
05-08-2003, 05:35 AM
hi, today is the first day in my life that i put hands on java. I'm trying to make this code work but I don't understand wich code must be putted apart to make the requested "ultimate.js"
how do I include? what needs to be putted into the js file?
here is the full code, I really appreciate any kind of help, I'm learning fast but need here a little explanation!!!


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Ultimate Script - powered by Influenzae</TITLE>
<STYLE>
A:link { TEXT-DECORATION: none}
A:hover {COLOR: #ff9A31; TEXT-DECORATION: none}
A:visited {TEXT-DECORATION: none}
.blue {COLOR: #00498C; FONT-FAMILY: Arial; FONT-SIZE: 8pt; TEXT-DECORATION: none}
.blue10 {COLOR: #00498C; FONT-FAMILY: Arial; FONT-SIZE: 10pt; TEXT-DECORATION: none}
.white10 {COLOR: #ffffff; FONT-FAMILY: Arial; FONT-SIZE: 10pt; LINE-HEIGHT: 16px; TEXT-DECORATION: none}
</STYLE>
<SCRIPT language="Javascript1.2" SRC="ultimate.js"></SCRIPT>
</HEAD>

<BODY>
<SCRIPT language="Javascript1.2">
/*
==============================================
| U.L.T.I.M.A.T.E |
| v070502 |
==============================================
| Powered by Influenzae |
| For Microsoft Internet Explorer |
==============================================

Scrolling, moving, and so more...

==============================================

You must first include file "ultimate.js",
then you are...
*/
</SCRIPT>
<BR>
<TABLE border=1 cellspacing=0 cellpadding=0 width=75% bordercolor='#00498C' align=center>
<tr>
<TD align=center>
<SPAN class=blue10> U.L.T.I.M.A.T.E released 070502 </SPAN>
</TD>
</TR>
</TABLE>
<BR>
<TABLE border=0 cellspacing=0 cellpadding=0 width=75% align=center>
<tr>
<TD align=center>
<SPAN class=blue>You can make a lot of animations with the same extra simple free JavaScript function...</SPAN>
</TD></TR>
<TD align=center>
<SPAN class=blue10>The Ultimate one !!</SPAN>
</TD></TR>
</TABLE>
<br><br>
<TABLE border=1 cellspacing=0 cellpadding=0 align=center bordercolor='#00498C'>
<tr>
<TD align=left>
<SCRIPT language="Javascript1.2">
// Utype
// 0 -> vertical scrolling
// 1 -> horizontal scrolling from left
// 2 -> horizontal scrolling from right
// 3 -> with cursor
var Utype=0;
// cursor for Utype 3, for example: "|" or "_"
var Ucursor="<SPAN class=blue> | </SPAN>";
// Box dimensions
var Uwidth=150;
var Uheight=100;
// Background color
var Ubgcolor="#FFFFFF";
// Background Image, if no, put ''
var Ubackground='';
// Speed
var Uspeed=30;
// stopping time (News), put 0 else
var Udelay=2000;
// first index of array to start
var Ufirst=0;
// Array of messages
var Umsgs=new Array()
Umsgs[0]="<SPAN class=blue> > Ultimate Script for IE !</SPAN>";
Umsgs[1]="<SPAN class=blue> > Vertical Scrolling for News</SPAN>";
Umsgs[2]="<A HREF='http://www.javascripts.com' class=blue> > With links too !</A>";
Umsgs[3]="<A HREF='http://www.javascriptsource.com' class=blue> > Ultra Simple !</A>";
Umsgs[4]="<SPAN class=blue> > Come Back Soon!</SPAN>";
// The function
Ultimate(Utype,Umsgs,Ucursor,Uwidth,Uheight,Ubgcolor,Ubackground,Uspeed,Udelay,Ufirst);
// That's it !
</SCRIPT>
</TD>
</TR>
</TABLE>
<SCRIPT language="Javascript1.2">
/*
==============================================
| U.L.T.I.M.A.T.E |
| v070502 |
==============================================
| Powered by Influenzae |
| For Microsoft Internet Explorer |
==============================================

Scrolling, moving, and so more...

==============================================

You must first include file "ultimate.js",
then you are...
*/
</SCRIPT>
</BODY>
</HTML>:o :o :o :o

HairyTeeth
05-08-2003, 06:08 AM
Originally posted by alessandro
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Ultimate Script - powered by Influenzae</TITLE>
<STYLE>
A:link { TEXT-DECORATION: none}
A:hover {COLOR: #ff9A31; TEXT-DECORATION: none}
A:visited {TEXT-DECORATION: none}
.blue {COLOR: #00498C; FONT-FAMILY: Arial; FONT-SIZE: 8pt; TEXT-DECORATION: none}
.blue10 {COLOR: #00498C; FONT-FAMILY: Arial; FONT-SIZE: 10pt; TEXT-DECORATION: none}
.white10 {COLOR: #ffffff; FONT-FAMILY: Arial; FONT-SIZE: 10pt; LINE-HEIGHT: 16px; TEXT-DECORATION: none}
</STYLE>
<SCRIPT language="Javascript1.2" SRC="ultimate.js"></SCRIPT>
</HEAD>

<BODY>


<!-- stuff removed -->


</BODY>
</HTML>
You aready have. You need to make sure that the file ultime.js is in the same directory (folder) as the HTML page that is calling it.

Welcome to the wonderful world of js ;)