Click to See Complete Forum and Search --> : Helllpp


micjohnson
07-12-2003, 01:17 AM
Ive been trying to get this function to work can anyone tell me why the applet wont load?

<html>


<head>

<SCRIPT language=JavaScript>
var i=null
function go (){
if (i != null){}
y=i;
document.getElementById('1').innerHTML = '<applet codebase="http://s2.liveseex.net/frames/" code="lsl08" width="284" height="212"><param name="po" value="1"><param name="channel" value="'+y+'"></applet>';
document.getElementById('2').innerHTML = '<input type=text value="'+y+'">'
}
</SCRIPT>
</head>
<body>

<div id=1></div>
<div id=2></div>
<input type=button onclick="javascript:i=1" value=1><input type=button onclick="javascript:i=2" value=2><input type=button onclick="javascript:go()" value=go>
</body>


</html>

SlankenOgen
07-12-2003, 06:30 AM
try this


"<applet codebase=\"http://s2.liveseex.net/frames/\" code=\"lsl08\" width=\"284\" height=\"212\"><param name=\"po\" value=\"1\"><param name=\"channel\" value="+y+"></applet>";
document.getElementById('2').innerHTML = "<input type=text value="+y+">";