会JS代码的高手请进.高分奉上!

来源:百度知道 编辑:UC知道 时间:2024/06/08 14:30:48
先看一段JS代码;

document.writeln("<table width=\"230\" height=\"280\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"..\/images\/c3_13.gif\">");
document.writeln(" <tr>");
document.writeln(" <td width=\"30\" height=\"10\"><\/td>");
document.writeln(" <td><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <tr>");
document.writeln(" <td><\/td>");
document.writeln(" <td valign=\"top\"><script type=\"text\/javascript\">");
document.

参考下...
这和你再什么页面引用此JS文件有关,看这段代码中应该是这样的
html [目录]
aaa.htm -调用此JS文件页面路径
swf [目录]
qm.swf -要调用的SWF文件

本例中\"..\/swf\/qm.swf\"的路径转换为标准路径为
"./../swf/qm.swf
只要页面文件和SWF文件再同级不同名的目录中即可正常运行.
'如不明白消息给我^_^

document.writeln(" <param name=\"movie\" value=\"..\/swf\/qm.swf\">");
document.writeln(" <param name=\"quality\" value=\"high\">");
document.writeln(" <param name=\"menu\" value=\"false\">");
document.writeln(" <param name=\"wmode\" value=\"transparent\">");
document.writeln(" <embed src=\"..\/swf\/qm.swf\"