[an error occurred while processing this directive]
[an error occurred while processing this directive]
скрипты
бегущая строка
код:<body onLoad="ticker ()">
<script language="JavaScript">
<!-- Hide the script from non-JavaScript browsers --
var timerID = null;
var timerRunning = false;
var id,pause=0,position=0;
function ticker() {
var i,k,msg=" пример ";
k=(75/msg.length)+1;
for(i=0;i<=k;i++) msg+=" "+msg; document.form2.ticker.value=msg.substring(position,position+100);
if(position++==38) position=0;
id=setTimeout("ticker()",1000/10); }
function action() {
if(!pause) {
clearTimeout(id);
pause=1; }
else {
ticker();
pause=0; } }
// --End hiding script from non-JavaScript browsers -->
</script>
<FORM NAME="form2">
<INPUT TYPE="text" name="ticker" size="82">
</FORM>
код:<script language="JavaScript">
position = 0;
function banner() {
var i,k;
var msg = " пример ";
var speed = 400;
k=(66/msg.length)+1;
for(i=0;i<=k;i++) msg+=" "+msg;
window.status=msg.substring(position,position+90);
if(position++==msg.length) position=0;
id=setTimeout("banner()",speed);
}
banner();
</SCRIPT>
пример в низу ( в рамке окна браузера )
[an error occurred while processing this directive]