Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
diced #1
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
-
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? -
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... -
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... -
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>, <... -
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... -
Css Lover #2
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



Reply With Quote

