传参数调用javacript?? 举个例子是这样么?
<script language="javascript" src="js.asp?id=www"></script>js.asp is an ASP file which outputs javascript content, likevar id = "<%=Request.QueryString("id")%>";
document.write(id);
<script language="javascript" src="js.asp?id=www"></script>js.asp is an ASP file which outputs javascript content, likevar id = "<%=Request.QueryString("id")%>";
document.write(id);
解决方案 »
- 关于web打印的页面缩放问题
- 【紧急求助】js读写Cookie的问题!
- 获取xml 中的CDate中的内容。
- html5截屏不兼容IE问题,求帮助
- 关于图片坐标问题,有一点点难度。
- 怎么将一个文本框,用js设成disabled状态,和非disabled状态?在线等,,进来看看。。
- 网页内各对象的层次(需要可以再加分!)
- 请问input里class属性的用法
- javascript正则表达式字符串怎么判断不包括“/”的问题?具体要求请看图,求大神帮忙!谢谢!
- 怎么给下拉select和单选框 <input type="radio" 赋值?
- 有一个挺长的页面,在下方有一个iframe,怎样在iframe里的内容load完毕后,自动滚动页面至iframe处?
- 求助javascript+xml 高手:乱码 -----我是xml盲,但我知道一定是它有问题。
soo\:editor {behavior: url(soeditor.htc);}
</style>
</HEAD>
<BODY><form name="documentation" action="hello.asp" method="post"><textarea name="soeditor" style="display: none;" value="中国">中国+hello+中国</textarea>
<soo:editor field="soeditor" form="documentation" id="soEditor" height="250px" width="100%" singlespaced="false" wordcount="true" /></form><soo:editor 。。一样结果
<public:attach event="oncontentready" onevent="init()"/><script language= "JScript">function setHTML(sVal) { soEditor.editor.DocumentHTML = sVal+"文本变量测试1"; } // Initialize the editor by adding the DHTML Edit Component and Table object to the document and loading the control arraysfunction init(){
var tempHTML = 略
soEditor.innerHTML = tempHTML+"变量测试2"; soEditor.editor = window.document.all.soeditorbox;
soEditor.form = eval("window.document." + soEditor.form);
// load the html to be edited
//var elHidden = eval("this.form." + soEditor.Field);
soEditor.DocumentHTML = this.form.soeditor.value;}
</script>
到底做什么用呀?
你的HTC中没有定义singlespaced,wordcount
顶多只能叫字符串传递。。
<body>
<form name = 'huo'>
<input type=text onblur="kk(this)" value='jdfkdfd'>
</from>
</body>
</html>
<script language = javascript>
function kk(aa)
{
alert(aa.text)
}
</script>