各位大虾!今天有海鲜吃了.要大家帮忙啦,有关JS、数据库和iframe .location.replace("你的网页地址") 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 location.replace("../index.asp") 请问完整的写法是如何写的? 这个是写在 onmouseover事件函数那个地方 还是写在调用的地方啊? 其中的数据库语句如何处理?大虾,我还不大清楚. 哦,对不起啊,各位,是有点乱.简单讲就是在JS函数的参数里我要写个地址,该地址包含有数据库查询.JS函数有三个参数,第三个参数是另外一个iframe的地址,这个地址包含有数据库查询qsiframe_qno.asp?pno..,我想问的就是这个参数如何写?是在定义的地方写: function sbar(st,dd,pp){st.style.backgroundColor='#F3F3F3';parent.category.src=dd;window.parent.document.getElementById("category2").src="————————————————————";}还是在调用的地方写:response.write "<TR><TD onclick=changecheck("& j & ")) onmouseover=sbar(this,'" & ppic & "',这 个 地 方 是 第 三 个 参 数) onmouseout=cbar(this) ><img src='"& img & "' width=10 height=10 id=checked border=0> " & rs("pgname") & " </TD></TR>"该写在哪个地方?地址中含有的数据库查询该如何处理? 该地址包含有数据库查询///////?????????!!!!!!!!!主要不知道你想做什么?你是说frame或者iframe的asp里边有数据库查询是不是?写查询条件阿!你怎么写要看你需要得到什么值了! 是的啊 iframe里的asp是有数据库查询 我就是不知道如何写查询条件啊 推倒以前的.加100分.共200分!再问:怎样通过JS函数,使得鼠标移经一个iframe里的内容的时候使同一父页面中的img对象和另一个iframe一起变化?怎样写,怎样写... 那个JS函数中的src=""怎样写... 我要写的地址是这个 qsiframe_qno.asp<%=qsf%> 在qsiframe_qno里定义有相关的数据库查询 我要如何才能正确在父页面的框架里显示出我要显示的数据来啊.父页面中的相关代码: img对象: <img src="upload/<%=qpch%>" width="108" height="109" id="category"> 第一个iframe: <iframe align="left" width="190" height="110" src="qsiframe.asp<%=qf%>" name="qsiframe" frameborder="no" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" ></iframe> 第二个iframe: <iframe align="left" width="190" height="110" src="qsiframe_qno.asp<%=qsf%>" name="qsiframe_qno" id="category2" frameborder="no" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" ></iframe>qsiframe.asp中的相关代码: JS定义(要通过这个函数使img图片和iframe同时变化,但实际上category2没有变化): function sbar(st,dd,pp){st.style.backgroundColor='#F3F3F3';parent.category.src=dd;window.parent.document.getElementById("category2").src= "" ;} JS调用: response.write "<TR><TD onclick=changecheck("& j & ")) onmouseover=sbar(this,'" & ppic & "','" & pno & "') onmouseout=cbar(this) ><img src='"& img & "' width=10 height=10 id=checked border=0> " & rs("pgname") & " </TD></TR>" qsiframe_pno.asp中的相关代码: response.write "<TR><TD onclick=changecheck("& j & ")) <a href=javascript:change('...','....','....'); ><img src='images/nochecked.gif' width=10 height=10 id=checked border=0> " & rs1("pno") & " </a></TD></TR>" 使得鼠标移经一个iframe里的内容的时候使同一父页面中的img对象和另一个iframe一起变化?????你想得太多了吧!数据量不多的情况下,可以用xml http://www.linkdns.com/ArticleView/20059/Article_7543.htm 关于FCK字体关联显示的问题,哪位大大帮忙解决一下,万分感谢! 作用域问题! 怎样获取第一个父对象 匿名函数传递参数! 急 div中如何实现超链接,我想把每个名字变成超链接。大虾救命啊! 急,如何获取循环随checkbox生成的文字 求高手解惑 window.close()不弹出是否关闭提示,直接关闭网页的效果 关于动态生成id的问题 怎么 屏蔽/覆盖 掉免费网站空间的广告? 如何响应键盘事件?急.......... 帮忙解决一个入门级的jscript问题--可以直接在script中操作对象吗? 关于页面缓存的问题!
还是写在调用的地方啊?
其中的数据库语句如何处理?大虾,我还不大清楚.
function sbar(st,dd,pp){st.style.backgroundColor='#F3F3F3';parent.category.src=dd;window.parent.document.getElementById("category2").src="————————————————————";}还是在调用的地方写:
response.write "<TR><TD onclick=changecheck("& j & ")) onmouseover=sbar(this,'" & ppic & "',这 个 地 方 是 第 三 个 参 数) onmouseout=cbar(this) ><img src='"& img & "' width=10 height=10 id=checked border=0> " & rs("pgname") & " </TD></TR>"该写在哪个地方?地址中含有的数据库查询该如何处理?
主要不知道你想做什么?你是说frame或者iframe的asp里边有数据库查询是不是?写查询条件阿!你怎么写要看你需要得到什么值了!
iframe里的asp是有数据库查询
我就是不知道如何写查询条件啊
那个JS函数中的src=""怎样写...
我要写的地址是这个 qsiframe_qno.asp<%=qsf%>
在qsiframe_qno里定义有相关的数据库查询
我要如何才能正确在父页面的框架里显示出我要显示的数据来啊.父页面中的相关代码:
img对象:
<img src="upload/<%=qpch%>" width="108" height="109" id="category">
第一个iframe:
<iframe align="left" width="190" height="110" src="qsiframe.asp<%=qf%>" name="qsiframe" frameborder="no" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" ></iframe>
第二个iframe: <iframe align="left" width="190" height="110" src="qsiframe_qno.asp<%=qsf%>" name="qsiframe_qno" id="category2" frameborder="no" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" ></iframe>qsiframe.asp中的相关代码:
JS定义(要通过这个函数使img图片和iframe同时变化,但实际上category2没有变化):
function sbar(st,dd,pp){st.style.backgroundColor='#F3F3F3';parent.category.src=dd;window.parent.document.getElementById("category2").src= "" ;} JS调用: response.write "<TR><TD onclick=changecheck("& j & ")) onmouseover=sbar(this,'" & ppic & "','" & pno & "') onmouseout=cbar(this) ><img src='"& img & "' width=10 height=10 id=checked border=0> " & rs("pgname") & " </TD></TR>"
qsiframe_pno.asp中的相关代码: response.write "<TR><TD onclick=changecheck("& j & ")) <a href=javascript:change('...','....','....'); ><img src='images/nochecked.gif' width=10 height=10 id=checked border=0> " & rs1("pno") & " </a></TD></TR>"
????你想得太多了吧!数据量不多的情况下,可以用xml