Hi
The code below works fine but... I was hoping to use it as a desktop and it falls over on the refresh (can't find server) - so you can't change the message blah blah. Any ideas for a fix / alternative would be much appreciated
Regards
IanI
------------------------------------------------------------------
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- hide from old browsers
var msg = prompt("Type tour message here","");
function scrollMsg(){
document.scrollerForm.welcomeMsg.value = msg
msg = msg.substring(1, msg.length) + msg.substring(0, 1)
setTimeout("scrollMsg()", 150)
}
function refresh()
{
window.location.reload( false );
}
//-->
</SCRIPT>
</HEAD>
<BODY ONLOAD="scrollMsg()">
<TABLE WIDTH="100%" HEIGHT="100%" BGCOLOR="#99CCFF">
<TR><TD ALIGN="RIGHT" VALIGN="TOP">
<FORM NAME="scrollerForm">
<INPUT TYPE="text" NAME="welcomeMsg" VALUE=http://www.webdeveloper.com/forum/archive/index.php/"" size=75>
<a href="javascript:refresh()">Change the message</a>
</TD>
</TR>
</TABLE>
The code below works fine but... I was hoping to use it as a desktop and it falls over on the refresh (can't find server) - so you can't change the message blah blah. Any ideas for a fix / alternative would be much appreciated
Regards
IanI
------------------------------------------------------------------
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- hide from old browsers
var msg = prompt("Type tour message here","");
function scrollMsg(){
document.scrollerForm.welcomeMsg.value = msg
msg = msg.substring(1, msg.length) + msg.substring(0, 1)
setTimeout("scrollMsg()", 150)
}
function refresh()
{
window.location.reload( false );
}
//-->
</SCRIPT>
</HEAD>
<BODY ONLOAD="scrollMsg()">
<TABLE WIDTH="100%" HEIGHT="100%" BGCOLOR="#99CCFF">
<TR><TD ALIGN="RIGHT" VALIGN="TOP">
<FORM NAME="scrollerForm">
<INPUT TYPE="text" NAME="welcomeMsg" VALUE=http://www.webdeveloper.com/forum/archive/index.php/"" size=75>
<a href="javascript:refresh()">Change the message</a>
</TD>
</TR>
</TABLE>