floatwin('open_register', this.href, 600, 400, '600,0');return false;">立即注册
floatwin('open_login', this.href, 600, 400, '600,0');return false;"
                                    href="{rooturl}login.aspx">现在登录
我想在注册后,再弹出一个页面,请问怎么做???

解决方案 »

  1.   

    请问怎么修改,我在common.js里面 ['register','login','newthread','reply','edit','NewRegister']) && w >= 600) {
    加个NewRegister的页面,打开之后是空白没有内容?
    <a href="####" onclick="floatwin('close_register');floatwin('open_NewRegister', this.href, 600, 400, '600,0');return false;">点击测试</a>
      

  2.   

    //FloatWin
    var hiddenobj = new Array();
    var floatwinhandle = new Array();
    var floatscripthandle = new Array();
    var floattabs = new Array();
    var floatwins = new Array();
    var InFloat = '';
    var floatwinreset = 0;
    var floatwinopened = 0;
    var STYLEID = '1';
    var VERHASH = 'Pvt'
    function floatwin(action, script, w, h, scrollpos) {
    var floatonly = !floatonly ? 0 : 1;
    var actione = action.split('_');
    action = actione[0];
    if(script && script != -1)
        script += script.indexOf("?") != -1 ? "&stamp=" + Math.random() : "?stamp=" + Math.random();
    if((!allowfloatwin || allowfloatwin == 0) && action == 'open' && in_array(actione[1], ['register','login','newthread','reply','edit','NewRegister']) && w >= 600) {
    location.href = script;
    return;
    }
    var handlekey = actione[1];
    var layerid = 'floatwin_' + handlekey;
    if(is_ie) {
    var objs = $('wrap').getElementsByTagName("OBJECT");
    } else {
    var objs = $('wrap').getElementsByTagName("EMBED");
    }
    if(action == 'open') {
    loadcss('float');
    floatwinhandle[handlekey + '_0'] = layerid;
    if(!floatwinopened) {
    $('wrap').onkeydown = floatwin_wrapkeyhandle;
    for(i = 0;i < objs.length; i ++) {
    if(objs[i].style.visibility != 'hidden') {
    objs[i].setAttribute("oldvisibility", objs[i].style.visibility);
    objs[i].style.visibility = 'hidden';
    }
    }
    }
    scrollpos = !scrollpos ? '' : 'floatwin_scroll(\'' + scrollpos + '\');';
    var clientWidth = document.body.clientWidth;
    var clientHeight = document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;
    var scrollTop = document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop;
    if(script && script != -1) {
    if(script.lastIndexOf('/') != -1) {
    script = script.substr(script.lastIndexOf('/') + 1);
    }
    var scriptfile = script.split('?');
    scriptfile = scriptfile[0];
    if(in_array(scriptfile,['posttopic.aspx','postreply.aspx','editpost.aspx']))
    {
    scriptfile='post.aspx';
    }
    if(floatwinreset || floatscripthandle[scriptfile] && floatscripthandle[scriptfile][0] != script) {
    if(!isUndefined(floatscripthandle[scriptfile])) {
    $('append_parent').removeChild($(floatscripthandle[scriptfile][1]));
    $('append_parent').removeChild($(floatscripthandle[scriptfile][1] + '_mask'));
    }
    floatwinreset = 0;
    }
    floatscripthandle[scriptfile] = [script, layerid];
    }
    if(!$(layerid)) {
    floattabs[layerid] = new Array();
    div = document.createElement('div');
    div.className = 'floatwin';
    div.id = layerid;
    div.style.width = w + 'px';
    div.style.height = h + 'px';
    div.style.left = floatwinhandle[handlekey + '_1'] = ((clientWidth - w) / 2) + 'px';
    div.style.position = 'absolute';
    div.style.zIndex = '10002';
    div.onkeydown = floatwin_keyhandle;
    $('append_parent').appendChild(div);
    $(layerid).style.display = '';
    $(layerid).style.top = floatwinhandle[handlekey + '_2'] = ((clientHeight - h) / 2 + scrollTop) + 'px';
    $(layerid).innerHTML = '<div><h3 class="float_ctrl"><em><img src="' + IMGDIR + '/loading.gif"> 加载中...</em><span><a href="javascript:;" class="float_close" onclick="floatwinreset = 1;floatwin(\'close_' + handlekey + '\');">&nbsp</a></span></h3></div>';
    divmask = document.createElement('div');
    divmask.className = 'floatwinmask';
    divmask.id = layerid + '_mask';
    divmask.style.width = (parseInt($(layerid).style.width) + 14) + 'px';
    divmask.style.height = (parseInt($(layerid).style.height) + 14) + 'px';
    divmask.style.left = (parseInt($(layerid).style.left) - 6) + 'px';
    divmask.style.top = (parseInt($(layerid).style.top) - 6) + 'px';
    divmask.style.position = 'absolute';
    divmask.style.zIndex = '10001';
    divmask.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=90,finishOpacity=100,style=0)';
    divmask.style.opacity = 0.9;
    $('append_parent').appendChild(divmask);
    if(script && script != -1) {
    script += (script.search(/\?/) > 0 ? '&' : '?') + 'infloat=1&handlekey=' + handlekey;
    try {
    ajaxget(rooturl+script, layerid, '', '', '', scrollpos);
    } catch(e) {
    setTimeout("ajaxget('" + (rooturl+script) + "', '" + layerid + "', '', '', '', '" + scrollpos + "')", 1000);
    }
    } else if(script == -1) {
    $(layerid).innerHTML = '<div><h3 class="float_ctrl"><em id="' + layerid + '_title"></em><span><a href="javascript:;" class="float_close" onclick="floatwinreset = 1;floatwin(\'close_' + handlekey + '\');">&nbsp</a></span></h3></div><div id="' + layerid + '_content"></div>';
    $(layerid).style.zIndex = '1099';
    $(layerid + '_mask').style.zIndex = '1098';
    }
    } else {
    $(layerid).style.width = w + 'px';
    $(layerid).style.height = h + 'px';
    $(layerid).style.display = '';
    $(layerid).style.top = floatwinhandle[handlekey + '_2'] = ((clientHeight - h) / 2 + scrollTop) + 'px';
    $(layerid + '_mask').style.width = (parseInt($(layerid).style.width) + 14) + 'px';
    $(layerid + '_mask').style.height = (parseInt($(layerid).style.height) + 14) + 'px';
    $(layerid + '_mask').style.display = '';
    $(layerid + '_mask').style.top = (parseInt($(layerid).style.top) - 6) + 'px';
    }
    floatwins[floatwinopened] = handlekey;
    floatwinopened++;

    } else if(action == 'close' && floatwinhandle[handlekey + '_0']) {
    floatwinopened--;
    for(i = 0;i < floatwins.length; i++) {
    if(handlekey == floatwins[i]) {
    floatwins[i] = null;
    }
    }
    if(!floatwinopened) {
    for(i = 0;i < objs.length; i ++) {
    if(objs[i].attributes['oldvisibility']) {
    objs[i].style.visibility = objs[i].attributes['oldvisibility'].nodeValue;
    objs[i].removeAttribute('oldvisibility');
    }
    }
    $('wrap').onkeydown = null;
    }
    hiddenobj = new Array();
    $(layerid + '_mask').style.display = 'none';
    $(layerid).style.display = 'none';
    } else if(action == 'size' && floatwinhandle[handlekey + '_0']) {
    if(!floatwinhandle[handlekey + '_3']) {
    var clientWidth = document.body.clientWidth;
    var clientHeight = document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;
    var w = clientWidth > 800 ? clientWidth * 0.9 : 800;
    var h = clientHeight * 0.9;
    floatwinhandle[handlekey + '_3'] = $(layerid).style.left;
    floatwinhandle[handlekey + '_4'] = $(layerid).style.top;
    floatwinhandle[handlekey + '_5'] = $(layerid).style.width;
    floatwinhandle[handlekey + '_6'] = $(layerid).style.height;
    $(layerid).style.left = floatwinhandle[handlekey + '_1'] = ((clientWidth - w) / 2) + 'px';
    $(layerid).style.top = floatwinhandle[handlekey + '_2'] = ((document.documentElement.clientHeight - h) / 2 + document.documentElement.scrollTop) + 'px';
    $(layerid).style.width = w + 'px';
    $(layerid).style.height = h + 'px';
    } else {
    $(layerid).style.left = floatwinhandle[handlekey + '_1'] = floatwinhandle[handlekey + '_3'];
    $(layerid).style.top = floatwinhandle[handlekey + '_2'] = floatwinhandle[handlekey + '_4'];
    $(layerid).style.width = floatwinhandle[handlekey + '_5'];
    $(layerid).style.height = floatwinhandle[handlekey + '_6'];
    floatwinhandle[handlekey + '_3'] = '';
    }
    $(layerid + '_mask').style.width = (parseInt($(layerid).style.width) + 14) + 'px';
    $(layerid + '_mask').style.height = (parseInt($(layerid).style.height) + 14) + 'px';
    $(layerid + '_mask').style.left = (parseInt($(layerid).style.left) - 6) + 'px';
    $(layerid + '_mask').style.top = (parseInt($(layerid).style.top) - 6) + 'px';
    }
    }floatwin的函数,在common.js里面,我那样修改之后为什么显示空白,后来修改成这样也是空白
    <a href="####" onclick="floatwin('close_register');floatwin('open_NewRegister', 'NewRegister.aspx', 600, 400, '600,0');return false;">点击测试</a>
      

  3.   

    请教大虾应该怎么显示出新加的aspx页面的内容呢?