Der u.a. Code klappt im IE. Leider nicht im Firefox, wie kommt das ??
Code
<HTML>
<HEAD>
<TITLE>Lauftext 3</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="Gismo">
<SCRIPT language="JavaScript"><!--
//-------------------------------------------------------------
function snapIn(jumpSpaces,position) {
var msg = "edv-beratung&softwareerstellung bernd haase erstellt Ihre Homepage. Mail an haase@ebs-haase.de"
var out = ""
if (killScroll) {return false}
if (pauseScroll) {
var cmd = "snapIn(" + jumpSpaces + "," + position + ")"
scollID = setTimeout(cmd,5)
return false
}
for (var i=0; i<position; i++)
{out += msg.charAt(i)}
for (i=1;i<jumpSpaces;i++)
{out += " "}
out += msg.charAt(position)
window.status = out
if (jumpSpaces <= 1) {
position++
if (msg.charAt(position) == ' ')
{position++ }
jumpSpaces = 100-position
} else if (jumpSpaces > 3)
{jumpSpaces *= .75}
else
{jumpSpaces--}
if (position != msg.length) {
var cmd = "snapIn(" + jumpSpaces + "," + position + ")";
scrollID = window.setTimeout(cmd,5);
} else {
scrolling = false
return false
}
return true
}
function snapSetup() {
if (scrolling)
if (!confirm('Re-initialize snapIn?'))
return false // only way to break the function
// if its already running
killScroll = true // will cause recursive snapIn to break
scrolling = true // sets so that this function can't run twice
// without breaking the first instance
var killID = window.setTimeout('killScroll=false',6)
// now that first occurance was killed,
// reset it so that this instance can proceed
scrollID = window.setTimeout('snapIn(100,0)',10)
// make sure it waits until killScroll is reset
return true //must return true to comply with above break
}
function doPause(msg) {
pauseScroll=true
if (msg != null) {
setTimeout('pauseScroll=false',500)
window.status = msg
return true
}
setTimeout('pauseScroll=false',2000)
return false
}
// -------------------------------------------------------------
// use for setTimeout
var scrollID = Object
// flag to see if it's running
var scrolling = false
// flag to kill recursive calls
var killScroll = false
// flag to pause recursive calls
var pauseScroll = false
//-------------------------------------------------------------
// -->
</SCRIPT>
</HEAD>
<BODY TEXT="#CCCCCC" BGCOLOR="#000048" onLoad="snapSetup();">
</BODY>
</HTML>
Alles anzeigen