Your AWESOME!! PT Selvaraj. This worked great.
Cheers,
Shawn
>From: Selvaraj PT <PSelvaraj@s...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] RE: Create a hyperlink from a textbox in a form
>Date: Thu, 13 Dec 2001 18:00:12 -0500
>
>This May be a better one...
>
><html>
>
><head>
><title>Text Link</title>
>
>
></head>
>
><body>
>
> <center>
> <form name = "Scroll">
> <a href="read.htm">
> <input type = "text" size = "40" name = "ScrollBox" value = "
>"
>onclick="goURL();" onmouseover="document.Scroll.ScrollBox.style.cursor
>'hand'">
> </a>
> </form>
> </center>
>
><script language = "javascript">
>
> var space = " "
> var scr = space + "Click in this box to view our benefits package"
>
> ScrollAlong ();
>
> function ScrollAlong ()
>
> {
> strtemp = scr.substring(0,1);
> scr += strtemp
> scr = scr.substring(1, scr.length);
> document.Scroll.ScrollBox.value = scr.substring (0,85);
> var counts = setTimeout ("ScrollAlong()",45);
> }
>
> function goURL()
> {
> location.href = "Somepage.htm"
> }
>
> </script>
>
></body>
></html>
>
>
> > -----Original Message-----
> > From: Shawn Beasley [mailto:datadriven80@h...]
> > Sent: Thursday, December 13, 2001 5:40 PM
> > To: javascript
> > Subject: [javascript] Create a hyperlink from a textbox in a form
> >
> >
> > Hello,
> >
> > I found a pretty useful script (see below) and was wondering
> > if anyone has
> > tried to create a hyperlink from a scrolling textbox in a
> > form. The script
> > is as follows:
> >
> > <script language = "javascript">
> >
> > var space = " "
> > var scr = space + "Click in this box to view our benefits package"
> >
> >
> > function ScrollAlong ()
> >
> > {
> > strtemp = scr.substring(0,1);
> > scr += strtemp
> > scr = scr.substring(1, scr.length);
> > document.Scroll.ScrollBox.value = scr.substring (0,85);
> > var counts = setTimeout ("ScrollAlong()",45);
> > }
> >
> > </script>
> >
> > <center>
> > <form name = "Scroll">
> > <a href="read.htm">
> > <input type = "text" size = "40" name = "ScrollBox"
> > value = " " >
> > </a>
> > </form>
> > </center>
> >
> > My hyperlink is not working. Thanks, your assistance is greatly
> > appreciated!!
> >
> > Cheers
> >
> >
> >
> > $subst('Email.Unsub').
> >
>
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx