flower在上个帖子中说
引用:
那个滑块怎么做的,能告诉我吗?或者给我介绍一篇相关教程,好吗?不胜感激!!
滑块的代码:
/***************************************
* *
* OUTLOOK-LIKE BAR *
* *
* Written by *
* Massimo Guccione *
* Multimedia Lab *
* Intersiel S.p.A. (W)1999 *
* *
****************************************/
/********************************************
folder name must be OutBarFolder# where # start with 1 and increase by 1
first element of array is the folder label, next elements are :
1) url for icon of item
2) label for item
3) action link : put 'javascript:MyFunction()' to execute javascript instead of hyperlink
4) target frame : ignored if you use 'javascript:' in the action link (use 'window' instead of 'parent.main' if you wish the link to load in the CURRENT page
********************************************/
/*你需要修改下面的代码,就是菜单左侧的部分,如果页面在右侧的frame打开,
用parent.main,其中main是右侧的frame的名字,见下一句。由于这是例子,
所以使用了javascript产生警告框,
将它们去掉即可。即将下面的javascript::Run(x)全部替换成具体的页面
,并且将紧接着的空的双引号中加上parent.main即可。*/
OutBarFolder1=new Array(
"网上收藏夹",
"mail.gif","Download It","www.163.htm","parent.main",
"chat.gif","Chat","http://www.263.com","parent.main",
"news.gif","Newsgroup","http://staroma.1358.net","parent.main",
"netm.gif","Netmeeting","javascript:Run(4)",""
);
OutBarFolder2=new Array(
"在线备忘录",
"word.gif","Word","http://163.com","top",
"excel.gif","Excel","javascript:Run(6)","",
"ppt.gif","Powerpoint","javascript:Run(7)","",
"access.gif","Access","javascript:Run(8)","",
"peditor.gif","Photo Editor","javascript:Run(9)",""
);
/*替换上面的javascript:Run(x)为对应的页面,并且在紧接着的双引号中加上打开的
frame(parent.main)即可,注意,如果需要整个页面打开,不要使用parent.main,而要用top即可*/
OutBarFolder3=new Array(
"在线日记本",
"word.gif","Word","javascript:Run(5)","",
"ppt.gif","Powerpoint","javascript:Run(7)",""
);
OutBarFolder4=new Array(
"短信息",
"mail.gif","E-Mail","javascript:Run(1)","",
"chat.gif","Chat","javascript:Run(2)","",
"news.gif","Newsgroup","javascript:Run(3)","",
"netm.gif","Netmeeting","javascript:Run(4)","",
"word.gif","Word","javascript:Run(5)","",
"excel.gif","Excel","javascript:Run(6)","",
"ppt.gif","Powerpoint","javascript:Run(7)","",
"access.gif","Access","javascript:Run(8)","",
"peditor.gif","Photo Editor","javascript:Run(9)",""
);
//例子里有4个菜单按钮,可以增加,但是需要改以下outbar.js中的一些代码,要让程序知道你要处理多少个菜单。内有注释。