主题:求助,更改JAVASCRIPT
<script LANGUAGE="JavaScript">
if (external.menuArguments){
var parentwin = external.menuArguments;
if (parentwin.document.selection) {
var sel = parentwin.document.selection.createRange().text;
}
if (!sel) {
var sel = '';
}
var url = parentwin.location.href;
var title = parentwin.document.title;
if (parentwin.event.srcElement.tagName == "A") {
url = parentwin.event.srcElement.getAttribute("HREF");
title = parentwin.event.srcElement.innerText;
}
void(window.open('icollect.asp#t='+escape(title)+'&u='+escape(url)+'&c='+escape(sel),'_blank','scrollbars=no,width=480,height=460,left=75,top=50,status=no,resizable=yes'))
} else {
history.go(-1);
}
</script>
希望会JAVASCRIPT 的朋友能帮小弟更改一下void(window.open())里的连接不要将其转向到这个连接页面 而直接给其付一个值一便在本页的asp脚本中调用!
谢谢
if (external.menuArguments){
var parentwin = external.menuArguments;
if (parentwin.document.selection) {
var sel = parentwin.document.selection.createRange().text;
}
if (!sel) {
var sel = '';
}
var url = parentwin.location.href;
var title = parentwin.document.title;
if (parentwin.event.srcElement.tagName == "A") {
url = parentwin.event.srcElement.getAttribute("HREF");
title = parentwin.event.srcElement.innerText;
}
void(window.open('icollect.asp#t='+escape(title)+'&u='+escape(url)+'&c='+escape(sel),'_blank','scrollbars=no,width=480,height=460,left=75,top=50,status=no,resizable=yes'))
} else {
history.go(-1);
}
</script>
希望会JAVASCRIPT 的朋友能帮小弟更改一下void(window.open())里的连接不要将其转向到这个连接页面 而直接给其付一个值一便在本页的asp脚本中调用!
谢谢