PHP中能够使用梅花雪脚本控件(JS控件--MzTreeView10.js)吗 如果是JS脚本的应该可以的,你可以直接输出来即可; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以的,只需按照要求设计一个相似的数据表,然后把数据读在数组里的问题 <script language="JavaScript"> var tree = new MzTreeView("tree"); tree.icons["property"] = "property.gif"; tree.icons["css"] = "collection.gif"; tree.icons["book"] = "book.gif"; tree.iconsExpand["book"] = "bookopen.gif"; //展开时对应的图片 tree.setIconPath("http://www.meizz.com/Icons/TreeView/"); //可用相对路径 tree.nodes["0_1"] = "text:WEB 编程"; tree.nodes["1_100"] = "text:代码示例; data:id=100"; tree.nodes["1_200"] = "text:梅花雪脚本控件集; data:id=200"; tree.nodes["1_310"] = "text:CSS; icon:css; data:id=310"; tree.nodes["1_320"] = "text:DHTML; data:id=320"; tree.nodes["1_300"] = "text:HTML; data:id=300"; tree.nodes["1_400"] = "text:JavaScript; icon:book; data:id=400"; tree.nodes["320_322"] = "text:属性; icon: property; data:id=322"; tree.nodes["320_323"] = "text:方法; data:id=323"; tree.nodes["320_324"] = "text:事件; icon:event; data:id=324"; tree.nodes["320_325"] = "text:集合; data:id=325"; tree.nodes["400_407"] = "text:对象; data:id=407"; tree.nodes["400_406"] = "text:方法; data:id=406"; tree.nodes["400_408"] = "text:运算符; data:id=408"; tree.nodes["400_409"] = "text:属性; data:id=409"; tree.nodes["407_1140"] = "text:Date; url:Article.asp; data:id=140"; tree.nodes["406_1127"] = "text:toString; url:Article.asp; data:id=127"; tree.nodes["408_1239"] = "text:||; url:Article.asp; data:id=239"; tree.nodes["409_1163"] = "text:E; url:Article.asp; data:id=163"; tree.setURL("Catalog.asp"); tree.setTarget("MzMain"); document.write(tree.toString()); //亦可用 obj.innerHTML = tree.toString();</script>这是他提供的用例,你看看吧。老大来了给他分啊。我纯转他的 有用单元测试做php开发的吗 今天从传说中的创新工厂某子公司面试归来 PHP pear包问题 如何获取其它网页的新闻标题 这段php源码怎么修改? php操作数据库问题 北京招聘PHP程序员 如何获得本机的计算机名? 那位说一下怎么使用正则表达式。 写php有前(钱)途吗?我觉得是一点前途都没有。 SINA里面有些栏目的左边的滚动图片怎么做出来的?谁能说下思路吗?或者有实例更好~~谢谢了 求一分割字符的方法
var tree = new MzTreeView("tree"); tree.icons["property"] = "property.gif";
tree.icons["css"] = "collection.gif";
tree.icons["book"] = "book.gif";
tree.iconsExpand["book"] = "bookopen.gif"; //展开时对应的图片 tree.setIconPath("http://www.meizz.com/Icons/TreeView/"); //可用相对路径 tree.nodes["0_1"] = "text:WEB 编程";
tree.nodes["1_100"] = "text:代码示例; data:id=100";
tree.nodes["1_200"] = "text:梅花雪脚本控件集; data:id=200";
tree.nodes["1_310"] = "text:CSS; icon:css; data:id=310";
tree.nodes["1_320"] = "text:DHTML; data:id=320";
tree.nodes["1_300"] = "text:HTML; data:id=300";
tree.nodes["1_400"] = "text:JavaScript; icon:book; data:id=400";
tree.nodes["320_322"] = "text:属性; icon: property; data:id=322";
tree.nodes["320_323"] = "text:方法; data:id=323";
tree.nodes["320_324"] = "text:事件; icon:event; data:id=324";
tree.nodes["320_325"] = "text:集合; data:id=325";
tree.nodes["400_407"] = "text:对象; data:id=407";
tree.nodes["400_406"] = "text:方法; data:id=406";
tree.nodes["400_408"] = "text:运算符; data:id=408";
tree.nodes["400_409"] = "text:属性; data:id=409";
tree.nodes["407_1140"] = "text:Date; url:Article.asp; data:id=140";
tree.nodes["406_1127"] = "text:toString; url:Article.asp; data:id=127";
tree.nodes["408_1239"] = "text:||; url:Article.asp; data:id=239";
tree.nodes["409_1163"] = "text:E; url:Article.asp; data:id=163"; tree.setURL("Catalog.asp");
tree.setTarget("MzMain");
document.write(tree.toString()); //亦可用 obj.innerHTML = tree.toString();
</script>
这是他提供的用例,你看看吧。老大来了给他分啊。我纯转他的