micjohnson
07-11-2003, 07:06 PM
ok, where should i start... well I have been trying for the past 3 days to write a script that will change an applet at the click of a button. I have tried scripts using the document.write feature but it puts it on a new page, I am looking for a way for the applet to "refresh" and be a new value heres the code i tried<html>
<head>
<SCRIPT language=JavaScript>
var i=null
function go ()
{
if (i == null){}
else
y=i;
document.write ('<applet codebase="applet.com/" code="lsl08" width="284" height="212"><param name="po" value="1"><param name="channel" value="'+y+'"></applet>');
}
</SCRIPT>
</head>
<body>
<input type=button onclick="javascript:i=1; go()" value=1>
</body>
</html>
The part that I want to change is the <param name="channel" value="'+y+'"> part. Can anyone help me??:confused:
<head>
<SCRIPT language=JavaScript>
var i=null
function go ()
{
if (i == null){}
else
y=i;
document.write ('<applet codebase="applet.com/" code="lsl08" width="284" height="212"><param name="po" value="1"><param name="channel" value="'+y+'"></applet>');
}
</SCRIPT>
</head>
<body>
<input type=button onclick="javascript:i=1; go()" value=1>
</body>
</html>
The part that I want to change is the <param name="channel" value="'+y+'"> part. Can anyone help me??:confused: