11 精币
如何设置这段脚本 点地区的转跳的浏览器网址为:333.html 求各位了 小的编辑了好几天了还是摸不出头绪
<script language="JavaScript">
<!--
function $(){return document.getElementById?document.getElementById(arguments[0]):eval(arguments[0]);}
var OverH,OverW,ChangeDesc,ChangeH=50,ChangeW=50;
function OpenDiv(_Dw,_Dh,_Desc) {
$("Loading").innerHTML="Loading...";
OverH=_Dh;OverW=_Dw;ChangeDesc=_Desc;
$("Loading").style.display='';
if(_Dw>_Dh){ChangeH=Math.ceil((_Dh-10)/((_Dw-10)/50))}else if(_Dw<_Dh){ChangeW=Math.ceil((_Dw-10)/((_Dh-10)/50))}
$("Loading").style.top=(document.documentElement.clientHeight-10)/2+"px";
$("Loading").style.left=(document.documentElement.clientWidth-10)/2+"px";
OpenNow()
}
var Nw=10,Nh=10;
function OpenNow() {
if (Nw>OverW-ChangeW)ChangeW=2;
if (Nh>OverH-ChangeH)ChangeH=2;
Nw=Nw+ChangeW;Nh=Nh+ChangeH;
if(OverW>Nw||OverH>Nh) {
if(OverW>Nw) {
$("Loading").style.width=Nw+"px";
$("Loading").style.left=(document.documentElement.clientWidth-Nw)/2+"px";
}
if(OverH>Nh) {
$("Loading").style.height=Nh+"px";
$("Loading").style.top=(document.documentElement.clientHeight-Nh)/2+"px"
}
window.setTimeout("OpenNow()",10)
}else{
Nw=10;Nh=10;ChangeH=50;ChangeW=50;
AjaxGet(ChangeDesc)
}
}
//创建XML对象
function createXMLHttps(){
var ret = null;
try {ret = new ActiveXObject('Msxml2.XMLHTTP')}
catch (e) {
try {ret = new ActiveXObject('Microsoft.XMLHTTP')}
catch (ee) {ret = null}
}
if (!ret&&typeof XMLHttpRequest !='undefined') ret = new XMLHttpRequest();
return ret;
}
function closew() {
$('Loading').style.display='none';
}
function AjaxGet(URL) {
//$('mimg').style.background="#cccccc";
//$('mimg').style.filter="progid:DXImageTransform.Microsoft.Alpha(style=5,opacity=75,finishOpacity=100";
//$('mimg').style.opacity="0.8";
var xmlhttp = createXMLHttps();
xmlhttp.open("Get",URL,true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status==404) {$("Loading").innerHTML='读取页面失败,文件'+URL+'不存在!';return}
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
$("Loading").innerHTML="<div class='LoadContent'>"+xmlhttp.responseText+"<a onclick='closew()'>close</a></div>";
}
}
xmlhttp.send(null);
}
//-->
function op(dq) {
if(document.getElementById("sel_bj").value==0)
{
alert("请选择类型!");
return;
}
window.open("AlertingDefault.aspx?ShortDecode="+dq+"&ty="+document.getElementById("sel_bj").value);
}
function jumpMenu(targ,selObj,restore)
{
if(selObj.options[selObj.selectedIndex].value!="0")
{
window.open(selObj.options[selObj.selectedIndex].value);
}
}
</script>
</head>
<body bgcolor="#999999" align=center style="padding-top:0px;margin-top:0px; font-size:12px; border:0px; outline-style:none">
<div id="mdiv">
<SCRIPT type="text/javascript" language="JavaScript"><!--
var enableeffect=true
//var selection=new Array()
selection1='<label id=l1 ><input type="radio" name="radio" id="sel11" value="sel1" />色</label> <label id=lyc >【返回】</label><br><label id=l2><input type="radio" name="radio" id="sel12" value="sel2" /><font face="宋体">博</font></label><br><label id=l3><input type="radio" name="radio" id="sel13" value="sel3" /><font face="宋体">涉</font></label><br>'
selection2='<label id=l1 ><input type="radio" name="radio" id="sel21" value="sel1" />QQ</label> <label id=lyc >【返回】</label><br><label id=l2><input type="radio" name="radio" id="sel22" value="sel2" /><font face="宋体">机</font></label><br><label id=l3><input type="radio" name="radio" id="sel23" value="sel3" /><font face="宋体">购</font></label><br><label id=l4><input type="radio" name="radio" id="sel24" value="sel4" /><font face="宋体">虚</font></label><br>'
selection3='<label id=l1 ><input type="radio" name="radio" id="sel31" value="sel1" />证</label> <label id=lyc >【返回】</label><br><label id=l2><input type="radio" name="radio" id="sel32" value="sel2" /><font face="宋体">票</font></label><br><label id=13><input type="radio" name="radio" id="sel33" value="sel3" /><font face="宋体">假币</font></label><br><label id=l4><input type="radio" name="radio" id="sel34" value="sel4" /><font face="宋体">支</font></label><br><label id=l5><input type="radio" name="radio" id="sel35" value="sel5" /><font face="宋体">等</font></label><br>'
selection4='<label id=l1 ><input type="radio" name="radio" id="sel41" value="sel1" checked />攻J</label> <label id=lyc >【返回】</label><br>'
selection5='<label id=l1 ><input type="radio" name="radio" id="sel51" value="sel1" checked />游戏</label> <label id=lyc >【返回】</label><br>'
selection6='<label id=l1 ><input type="radio" name="radio" id="sel61" value="sel1" />邪教</label> <label id=lyc >【返回】</label><br><label id=l2><input type="radio" name="radio" id="sel62" value="sel2" /><font face="宋体">销</font></label><br><label id=l3><input type="radio" name="radio" id="sel63" value="sel3" /><font face="宋体">权</font></label><br><label id=l4><input type="radio" name="radio" id="sel64" value="sel4" /><font face="宋体">其他违法</font></label><br>'
var ulink='------------------------------------------<br>'
ulink=ulink+'<font face="宋体"><a href="" onclick=op("KM") >昆明</a> | <a href="" onclick=op("LC") >临沧</a></font><br><br>'
ulink=ulink+'<font face="宋体"><a href="" onclick=op("QJ") >曲靖</a> | <a href="" onclick=op("BS") >保山</a></font><br><br>'
ulink=ulink+'<font face="宋体"><a href="" onclick=op("YX") >玉溪</a> | <a href="" onclick=op("HH") >红河</a></font><br><br>'
ulink=ulink+'<font face="宋体"><a href="" onclick=op("ZT") >昭通</a> | <a href="" onclick=op("WS") >文山</a></font><br><br>'
ulink=ulink+'<font face="宋体"><a href="" onclick=op("CX") >楚雄</a> | <a href="" onclick=op("DH") >德宏</a></font><br><br>'
ulink=ulink+'<font face="宋体"><a href="" onclick=op("PE") >普洱</a> | <a href="" onclick=op("LJ") >丽江</a></font><br><br>'
ulink=ulink+'<font face="宋体"><a href="" onclick=op("BN") >版纳</a> | <a href="" onclick=op("NJ") >怒江</a></font><br><br>'
ulink=ulink+'<font face="宋体"><a href="" onclick=op("DL") >大理</a> | <a href="" onclick=op("DQ") >迪庆</a></font><br><br>'
if (document.layers)
document.dropmenu01.document.dropmenu02.visibility='show'
function dropit2(n){
document.getElementById("vz").value=0;
if (document.all){
switch (n) {
case 0:
DX=0
dropmenu03.innerHTML=selection1+ulink;
break;
case 1:
DX=202;
dropmenu03.innerHTML=selection2+ulink;
break;
case 2:
DX=330;
dropmenu03.innerHTML=selection3+ulink;
break;
case 3:
DX=460;
document.getElementById("sel_bj").value=13;
dropmenu03.innerHTML=selection4+ulink;
break;
case 4:
DX=590;
document.getElementById("sel_bj").value=14;
dropmenu03.innerHTML=selection5+ulink;
break;
case 5:
DX=720;
dropmenu03.innerHTML=selection6+ulink;
break;
case 6:
return;
DX=780;
break;
}
dropmenu03.style.left=document.body.scrollLeft+event.clientX-event.offsetX+13+DX
dropmenu03.style.top=303
//dropmenu03.style.top=document.body.scrollTop+event.clientY-event.offsetY+108
if (dropmenu03.style.visibility=="hidden"){
if (enableeffect)
dropmenu03.filters.revealTrans.apply()
dropmenu03.style.visibility="visible"
if (enableeffect)
dropmenu03.filters.revealTrans.play()
}
else{
hidemenu()
}
}
}
function dropit(e){
if (document.dropmenu03.visibility=="hide")
document.dropmenu03.visibility="show"
else
document.dropmenu03.visibility="hide"
document.dropmenu03.left=e.pageX-e.layerX
document.dropmenu03.top=e.pageY-e.layerY+5
return false
}
function hidemenu(){
if(document.getElementById("vz").value==0)
{
if (enableeffect)
dropmenu03.filters.revealTrans.stop()
dropmenu03.style.visibility="hidden"
}
}
function hidemenu2(){
document.dropmenu03.visibility="hide"
}
function dispmenu(n){
document.getElementById("vz").value=1
document.getElementById("sel_bj").value=n
//document.dropmenu03.visibility="show"
}
function dmenu(){
document.getElementById("vz").value=0
//document.dropmenu03.visibility="show"
}
if (document.layers){
document.dropmenu01.document.dropmenu02.captureEvents(Event.CLICK)
document.dropmenu01.document.dropmenu02.onclick=dropit
}
else if (document.all)
{
document.body.onclick=hidemenu
}
//-->
</SCRIPT>
最佳答案
查看完整内容
呵呵,卤煮表达能力问题吧,不知道你要干啥。。。跳转代码就是上面这个啦啦啦。。。