cyong


disconnected
主题工具

nwICONS的小小修正

... 发表于 2007-10-7 16:02  ... 10295 次点击

function nwICONS($source = 0){
        $icons = array(0 => '', 1 => 'straitjacket', 2 => 'book', 3 => 'song', 4 => 'tv', 5 => 'computing', 6 => 'eat', 7 => 'home', 8 => 'hurry', 9 => 'morning', 10 => 'sleep', 11 => 'walk', 12 => 'happy', 13 => 'love', 14 => 'pils', 15 => 'shop', 16 => 'game', 17 => 'makeup', 18 => 'icecream',19 => 'coffee',20 => 'beer',21 => 'airplain',22 => 'bus',23 => 'car',24 => 'bomb',25 => 'taxi',26 => 'train',27 => 'storm',28 => 'toiletpaper', 29 => 'balloons', 30 => 'bike', 31 => 'wallclock',99 => 'computing');
        return './images/now/icons/web-'.$icons[$source].'.gif';
}

本主题共有 2 条回复 | 回到顶部
#1 - 2007-10-7 16:54
Sai 桂林
其实这个地方的处理有些傻气……应该使用多层数组把那几个function整合到一起……
#2 - 2007-10-7 19:36
cyong 地球
sai老师说的相当地正确.我很赞成!
看完之后有话想说?那就帮楼主加盖一层吧!

在回复之前你需要先进行登录
用户名 / UID
密码
Project Parasynthesis | Based on Discuz! 5.5.0 | Thanks to Livid
About | Help | Developer | N2Design
清除 Cookies - 联系我们 - 无名杂志 - Archiver - Mobile
Processed in 0.033387 second(s), 6 queries, Gzip enabled