Microsoft KB Archive/194155

= FP98: How to Create a Scrolling Message in Browser's Status Bar =

Article ID: 194155

Article Last Modified on 10/3/2001

-

APPLIES TO


 * Microsoft FrontPage 98 Standard Edition

-



This article was previously published under Q194155



For a Microsoft FrontPage 2000 version of this article, see 213872.

For a Microsoft FrontPage 97 version of this article, see 167596.



SUMMARY
This articles provides two sample FrontPage Java scripts that display a custom, scrolling message in the Internet Explorer status bar.



MORE INFORMATION
WARNING: ANY USE BY YOU OF THE JAVA SCRIPT PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this script "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. This script is provided 'as is' and Microsoft does not guarantee that the following script can be used in all situations. Microsoft does not support modifications of the script to suit customer requirements for a particular purpose.

Example 1
NOTE: Before you insert this code using the FrontPage 98 Editor, remove the following items:  Insert the following script into your normal HTML Web page:   In order for the message to function, modify the  tag so that it looks like this: 

Example 2
To add a Java Script to a FrontPage Web page, follow these steps:  Start FrontPage Editor. On the Insert menu, point to Advanced, and then click Script. Under Language, click JavaScript.  In the Script box, type the following code.

NOTE: You can modify the values for strText and intSpeed to specify your own message and scrolling preferences. var strText="This is a scrolling message!"; var intText=strText.length; var intSpeed=25; var intWidth=100; var intPos=1-intWidth;

function scroll {       intPos++; var strScroll=""; if (intPos==intText) {         intPos=1-intWidth; }       if (intPos<0) {         for (var i=1; i<=Math.abs(intPos); i++) {           strScroll=strScroll+" "; }         strScroll=strScroll+strText.substring(0, intWidth-i+1); }       else {       strScroll=strScroll+strText.substring(intPos,intWidth+intPos); }       window.status = strScroll; setTimeout("scroll", intSpeed); }                       </li> Click OK.</li> On the Insert menu, point to Advanced, and then click Script.</li> Click Script Wizard.</li> Click List View.</li> In the Event pane, expand the Window event, and then click the onLoad event.</li> In the Action pane, expand Procedures, and then click Scroll.</li> Click Insert Action.</li> Click OK.</li> On the File menu, click Save.</li></ol>

Additional query words: 98

Keywords: kbinfo KB194155

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.