Re: Scrolling text link

by "Srinivasan Ramakrishnan" <srinivar(at)md3.vsnl.net.in>

 Date:  Sun, 30 Jan 2000 21:06:58 +0530
 To:  "emma b" <the_emster(at)excite.com>,
<hwg-languages(at)hwg.org>
 References:  excite
  todo: View Thread, Original
<script language="JavaScript">
<!--
/*Place the event in your body onLoadtag  */

/*The following code will scroll the page

Replace "position != 740" in the 3rd line of the code with the length of the
document.

(ie) If the length of the document is 1000 pixels then replace as
"position != 1000"

You can find the length of the document by trial & error, or by using
dreamweaver :)

The word "MAIN" wherever it occurs in the script denotes the frame name as
specified in the frameset tag. This frame is the main frame that scrolls. So
if you have named your frameset as "MyMain" then replace "MAIN" wherever it
occurs with "MyMain". Note: it is case sensitive.

If you don't have a frame, then just use self.scroll()...

Please read the next comment!

*/


 var position = 0;

 function scroller() {
  if (position != 740) {
   position++;
   parent.MAIN.scroll(0,position);
   clearTimeout(timer);
   var timer = setTimeout("scroller()",25); timer;
  }

/* You can remove the code after this if you don't want to be redirected at
the end of the scroll
    Otherwise
    Replace "document0.htm" with the desired destination.
*/


/*If you don't want a redirect, but you want to recursively keep scrolling,
    replace
 "  parent.MAIN.location="document0.htm"; "

with

 " position = 0;
   timer = setTimeout("scroller()",25); timer; "

    Without the quotes"" !
*/
  else {

   parent.MAIN.location="document0.htm";
  }
 }

</script>

<body onLoad="scroller()">

----- Original Message -----
From: emma b <the_emster(at)excite.com>
To: <hwg-languages(at)hwg.org>
Sent: Saturday, January 29, 2000 1:22 PM
Subject: Scrolling text link


|
| Hi everyone, thanks for all your help on learning javascript...
|
| here's another query
| Does anyone know of a way to have a scrolling text message where one word
in
| the message is a hyperlink?  (using javascript or html?)
|
| Thanks for your help,
| Emma
|
|
|
|
|
| _______________________________________________________
| Get 100% FREE Internet Access powered by Excite
| Visit http://freeworld.excite.com
|
|

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA