2010-11-18 5 views
0

iGoogleガジェットのdocument.write()プロパティを探していますが、iGoogleガジェットで以下のことを行うにはどうすればよいですか?言い換えれば、私はスクリプト内でstdout varが必要です。iGoogleの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> 

答えて

1

単にCDATA

<?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> 
とコンテンツタグ[TYPE = HTML]でコードを囲み
関連する問題