automatically scrolling text, PLEASE HELP

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default automatically scrolling text, PLEASE HELP

    Ok, I really have no idea what I am doing but my manager has told me to
    complete this project even though I have no training in programming or HTML at
    all. Any way what I need to be able to do is have a text box that continually
    automatically scrolls through the information that I have entered (just like an
    updates screen on a continous loop). I need to be able to stop the scrolling if
    I need to read that section and restart it again. I am at a complete loss at
    the moment so any assistance would be greatly appreciated, even if you could
    tell me if could be done or not would help.

    Cheers
    Luke


    diced Guest

  2. Similar Questions and Discussions

    1. Automatically highlight text in a text field using a button?
      Is there anyway of automatically highlighting (select) all the text in a particular text field, say when pressing a button? If anyone can help?
    2. Load external text into scrolling text field
      Hello I've got a button with the instance name "btn1" and a scrolling text field with the instance name of "scrolling_txt" and a variable name of...
    3. Make a button load text into a scrolling text field?
      Hello I've got a problem here and I hope some friendly soul out there would spare a minute to help me out... I'm creating a rather simple site...
    4. combination scrolling text scrolling picture and on MouseEnter function
      it would help if you posted the code for us to look at... that way we can try to help ;) In article <bk6jip$ctm$1@forums.macromedia.com>, <...
    5. Dynamic text in smooth scrolling text field - help
      here's links to the files. http://www.anicespot.com/test/ http://www.anicespot.com/test/easing_textScroller-01.html...
  3. #2

    Default Re: automatically scrolling text, PLEASE HELP

    You want a javascript to make a 'news-ticker', this does what you need and
    there are plenty of free scripts.

    Your manager seems harsh if you have not training to just expect you to do
    this.

    However, if you need to do it, then I'm sure javascript is the best way, and
    if you have a mess about with the script below, you ought to be home and dry.

    <script language="javascript">
    <!--
    var lgth=0;
    ///////////////////////////////////////////////////////////////////////////////
    // Follow these steps to configure this script
    // 1) Add your messages below (change a1, a2 etc to whatever text you
    want)
    // 2) Change davesitems to reflect the number of messages you have e.g.
    // davesitems=new items(a1,a2,a3,a4,a5); or whatever
    // 3) Place this script in between your head tags
    // 4) Add the "onload" command to your body tag
    // 5) Place the text box <form> ....</form> anywhere within the body tags
    and that's it.
    ///////////////////////////////////////////////////////////////////////////////


    //list news items here (use as many as you need. Use quotes around each one
    and end each line with a semicolon)
    var a1="Hello how are you?";
    var a2="This script is useful for keeping your viewers informed";
    var a3="this is the last message";

    //Follow the format below, e.g. the next message would be a4, a5 etc.
    davesitems=new items(a1,a2,a3);

    // **** Do not alter below this line *****************************************
    var ini=0; var st=0; var x=davesitems.length;
    function items() {
    lgth=items.arguments.length;
    for (i=0; i<lgth; i++)
    this=items.arguments;}
    function newsclicker(){
    var temp=davesitems.substring(0,st)+"_";
    document.davesnewsform.davestextbox.value=temp;
    if(st++==x) {
    //Adjust timer for delay between messages
    st=0; setTimeout("newsclicker()",1000); ini++;
    if(ini==lgth) ini=0; x=davesitems.length;
    } else
    //adjust timer for "clicking speed" eg letter,letter,letter....
    setTimeout("newsclicker()",10);}
    //-->
    </script>


    Css Lover Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139