cursor_joe
03-19-2005, 04:05 AM
is there a way to send a variable containing words to an included file which holds a function?
this is my call statement...
if(selobj.options[idx].id!="")
{
var stat=selobj.options[idx].id;
scroll(stat);
}
}
//-->
</SCRIPT>
<script type='text/javascript' src='status_2.js'></script>
</HEAD>
and this is 'status_2.js'
// JavaScript Document
<!-- hide
var count = 0;
function scroll (stat) {
window.status=stat.substring (count, stat.length)+stat.substring
(0,count)
if (count<text.length)
count ++;
else
count=0;
setTimeout ("scroll(stat)", 75);
}
//-->
is there a way to send that variable, or will i just have to transfer it all to the one file?
this is my call statement...
if(selobj.options[idx].id!="")
{
var stat=selobj.options[idx].id;
scroll(stat);
}
}
//-->
</SCRIPT>
<script type='text/javascript' src='status_2.js'></script>
</HEAD>
and this is 'status_2.js'
// JavaScript Document
<!-- hide
var count = 0;
function scroll (stat) {
window.status=stat.substring (count, stat.length)+stat.substring
(0,count)
if (count<text.length)
count ++;
else
count=0;
setTimeout ("scroll(stat)", 75);
}
//-->
is there a way to send that variable, or will i just have to transfer it all to the one file?