导航栏,书上说明是传值id用的代码,没看明白,
<TD style= "HEIGHT: 80px " width= "12% "> <A onmousedown= "MM_goToURL( 'parent.frames[\ 'main\ '] ', 'Content.aspx?tabindex=0&connum=0 ');return document.MM_returnValue "
id= "href1 "
href= "top.aspx?id=0 "> <IMG id= "Image0 " height= "79 " src= "button/mainbutton_0out.jpg " width= "80 " border= "0 " name= "Image0 "> </A> </TD>
其中
mm_gotourl函数能达到什么效果?帮忙看下,谢谢
function MM_goToURL()
{ //v3.0
var i, args=MM_goToURL.arguments;
document.MM_returnValue = false;
for (i=0; i <(args.length-1); i+=2) eval(args[i]+ ".location= ' "+args[i+1]+ " ' ");
document.write(args[i+1]);
}
[解决办法]
MM_goToURL( 'parent.frames[\ 'main\ '] ', 'Content.aspx?tabindex=0&connum=0);return document.MM_returnValue "id= "href1 "
==
MM_goToURL( "parent.frames[ 'main '] ", "Content.aspx?tabindex=0&connum=0 ")
好像是要在框架里面显示 Content.aspx?tabindex=0&connum=0 这个网页把。