Click to See Complete Forum and Search --> : refresh desktop


videopoet
01-23-2003, 10:57 PM
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="" size=75>


<a href="javascript:refresh()">Change the message</a>


</TD>
</TR>
</TABLE>

videopoet
01-23-2003, 11:19 PM
Actually it does work, but only if you refresh the desktop by right clicking. Thanks anyway.....

IanI