2010-11-18 8 views
0

iGoogle gadget’larda document.write() mülkünü arıyorum, iGoogle gadget’ında aşağıdaki şeyi nasıl yapabilirim? Başka bir deyişle, bir senaryoda stdout var istiyorum.document.write

Example with document.write()

<html> <body> 

<script type="text/javascript"> var firstname; firstname="Hege"; document.write(firstname); document.write("<br />"); firstname="Tove"; document.write(firstname); </script> 

<p>The script above declares a variable, assigns a value to it, displays the value, changes the value, and displays the value again.</p> 

</body> </html> 

cevap

1

Sadece bir CDATA'da

<?xml  version="1.0"  encoding="UTF-8"?> 
<Module> 
<ModulePrefs title="hello world example" /> 
<Content type="html"><![CDATA[ 
<html> 
<body> 
<script type="text/javascript"> 
var firstname; 
firstname="Hege"; 
document.write(firstname); 
document.write("<br />"); 
firstname="Tove"; 
document.write(firstname); 
</script> 
<p>The script above declares a variable, 
assigns a value to it, displays the value, changes the value, 
and displays the value again.</p> 
</body> 
</html> 
 ]]></Content></Module> 
bir İçerik etiket [tür = HTML] kodu içine
İlgili konular