主题不能添加URL连接的解决办法

下载平台安装后在文件夹下找到\Web\theme\fixs下的AppListTree2.aspx 文件 
function innerIframeLocation(text,src)
                        {
                            //alert(src);
                            //parent.CreateTab(text,text,src);
                            parent.main.location = "http://www.cnblogs.com/" + src;       
                        }
把上面的代码替换成下面的代码 就可以执行http:开头的文件或www开头的URL了
function innerIframeLocation(text,src)
                        {//这里修改点击左边的树之后打开的网页  hbb
                            //alert(src);
                            //parent.CreateTab(text,text,src);
                            //alert(src);
                            var srctmp = src.substring(0,3);
                            //alert(srctmp);
                            if(srctmp=='htt'||srctmp=='www')
                            {
                                if(srctmp=='www')
                                {
                                    src='http://'+src;
                                    //alert(src);
                                }
                                //parent.main.location=src;//这个是嵌入到平台内部的显示风格;
                                  //window.open(src,'newwindow','fullscreen');//这个是弹出式布满整个屏幕的风格
                                  window.open(src,'newwindow','height=768,width=1024,top=100,left=200,toolbar=yes,menubar=yes,sarollbars=yes,resizable=yes,location=yes,status=yes');
                            }
                            else
                            {
                                parent.main.location = "http://www.cnblogs.com/" + src;
                                }
                        }

ps:FIX ES2007 V2.5版本平台用户要使用FIX主题需更新到最新版本V3.5,下载地址:http://www.founderfix.com/news/xzzq/index.html

posted @ 2011-06-16 17:41  笨笨的笨笨  阅读(183)  评论(0)    收藏  举报