jQuery 无刷新聊天室一例[分析]
by hityun on Jul.04, 2010, under jquery
我先说一下实现的整体思路,然后 是详细的源代码—-首先客户端是两处Ajax请求—
(1)是发生在客户点击”发送”后的,把聊天信息提交到后台 处理
(2)是没4s就自动请求一下后台,并看有没有新的内容,如有就更新聊天框
然后介绍一下后台,很简单,就不多说了…..
下 面看下源代码吧,我都加了详细注释了——–
sql代码:
CREATE TABLE `messages` (
`id` int(7) NOT NULL auto_increment,
`user` varchar(255) NOT NULL,
`msg` text NOT NULL,
`time` int(9) NOT NULL,
PRIMARY KEY (`id`)
);index代码:
<html>
<head>
<title>AJAX with jQuery Example</title>
<script type=”text/javascript” src=”jquery.js”></script>
<script type=”text/javascript”>
$(document).ready(function(){
timestamp = 0;
updateMsg();
$(“form#chatform“).submit(function(){
$.post(“backend.php“,{ //jQuery 的post函数,是不是使AJAX变得如此简单了??
message: $(“#msg“).val(),
name: $(“#author“).val(),
action: “postmsg“,
time: timestamp
}, function(xml) {
$(“#msg“).attr(“value“,“”); //清空 信息框
addMessages(xml);
});
return false;
});
});
function addMessages(xml) {
if($(“status“,xml).text() == “2“) return;
timestamp = $(“time“,xml).text(); //当返 回信息后,设置时间戳,请求的时候带着这个时间戳请求
//这样 通过服务器端的比较可以知道是否需要更新聊天框!
$(“message“,xml).each(function(id) {
message = $(“message“,xml).get(id);
$(“#messagewindow“).prepend(“<b>“+$(“author“,message).text()+
“</b>: “+$(“text“,message).text()+
“<br />“);
});
}
function updateMsg() {
// alert(timestamp);
$.post(“backend.php“,{ time: timestamp }, function(xml) {
$(“#loading“).remove(); //取出 load

addMessages(xml); //在聊 天框中增加聊天记录
});
setTimeout(’updateMsg()’, 4000); //在没 有提交的情况下,是自动4s查询一下,如果有新的就更新聊天框
}
</script>
<style type=”text/css”>
#messagewindow {
height: 500px;
border: 1px solid;
padding: 5px;
overflow: auto;
}
#wrapper {
margin: 35px auto;
width: 438px;
}
</style>
</head>
<body>
<div align=”center”>
<div id=”wrapper” align=”left”>
<p id=”messagewindow”><span id=”loading”>Loading
</span></p>
<form id=”chatform”>
姓名:
<input type=”text” id=”author” size=”6″ />
信息: <input type=”text” id=”msg” size=”30″ />
<input type=”submit” value=”发送” /><br />
</form>
</ backend.php
<?php
// Configuration
$dbhost = “localhost“;
$dbuser = “root“;
$dbpass = “7897896“;
$dbname = “jqchat“;
$store_num = 10;
$display_num = 10;
// Script
error_reporting(E_ALL); //开启PHP的错误和警告检测,关闭用error_reporting(0);
header(“Content-type: text/xml“); //因为是输出xml格式
header(“Cache-Control: no-cache“); //为了防止IE缓存,经测试,这句的确不能少!!
$dbconn = mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($dbname,$dbconn);
foreach($_POST as $key => $value)
{
$$key = mysql_real_escape_string($value, $dbconn);
//明白了!!!—$($key)—-$key依次遍历为anction,所以就 得到了下面的$action
//注意:mysql_real_escape_string — 转义 SQL 语句中使用的字符串中的特殊字符,并 考虑到连接的当前字符集
//看个例子就明白了:
//$item = ”Zak’s and Derick’s Laptop”;
// $escaped_item = mysql_real_escape_string($item);
//printf (”Escaped string: %s\n”, $escaped_item);
//—-输出:Escaped string: Zak\’s and Derick\’s Laptop
//另外:mysql_escape_string——> 和 mysql_real_escape_string() 完全一样,除了 mysql_real_escape_string() 接受的是//一个 连接句柄并根据当前字符集转移字符串之外
}
if(@$action == “postmsg“) //index中有两处ajax的地方,其中之一是—–提交按钮,然后提交到这里
{
mysql_query(“INSERT INTO messages (`user`,`msg`,`time`)
VALUES (’$name’,'$message’,“.time().“)“,$dbconn); //插入新的
mysql_query(“DELETE FROM messages WHERE id <= “.
(mysql_insert_id($dbconn)-$store_num),$dbconn); //删除10条的那些
}
//不管是哪个ajax请求,都会执行下面这个!—注意其中的 time>$time,是指比起已经发回客户端的信息新增的数据
$messages = mysql_query(“SELECT user,msg
FROM messages
WHERE time>$time
ORDER BY id ASC
LIMIT $display_num“,$dbconn);
if(mysql_num_rows($messages) == 0) $status_code = 2; //如果没有一条新增的(包括自己和别人的)也没有
//那就标记 一下,返回客户端后就不更新聊天框了
else $status_code = 1;
echo “<?xml version=\“1.0\“?>\n“;
echo “<response>\n“;
echo “\t<status>$status_code</status>\n“;
echo “\t<time>“.time().“</time>\n“;
if($status_code == 1)
{
while($message = mysql_fetch_array($messages))
{
$message['msg'] = htmlspecialchars(stripslashes($message['msg']));
//(1)stripslashes()可去掉字符串中的反斜线字符。若是连续二个反斜 线,则去掉一个,留下一个。
//若只有一个反斜线,就直接去掉。(即:将用addslashes()函数处理后的字符串返回原样。)
//(2)htmlspecialchar—->将特殊字符转成 HTML 的字符串格 式 ( &
.; )。最常用到的场合 可能就是处理客户留言的留言版了。
//& (和) 转成 &
//” (双引号) 转成 "
//< (小于) 转成 <
//> (大于) 转成 >
//此函数只转换上面的特殊字符,并不会全部转换成 HTML 所定的 ASCII 转换。
//这样之后,输入<a href=#><font color=red> ggsdg</font></a> 就直接输出原样了,而返回到客户端就可以看到效// 果了
echo “\t<message>\n“;
echo “\t\t<author>$message[user]</author>\n“;
echo “\t\t<text>$message[msg]</text>\n“;
echo “\t</message>\n“;
}
}
echo “</response>“;
?>JQ 的Ajax登陆
by hityun on Jul.04, 2010, under jquery
1 、Ajax 登陆
(1)login.html
<script type=”text/javascript” src=”jquery.js”></script>
<script type=”text/javascript” src=”login.js”></script>
<style type=”text/css”>
body { font:12px/1.6em ”宋体” }
ul { list-style:none; }
li { margin-top:10px; }
</style>
</head>
<body>
<h3>会员登录</h3>
<div id=”login”>
<form method=”post” action=”login.php” id=”form” name=”form”>
<ul>
<li>名字:<input type=”text” name=”user” id=”user” size=”16″ maxlength=”20″></li>
<li>密码:<input type=”password” name=”pass” id=”pass” size=”16″ maxlength=”20″></li>
<li>
<input type=”submit” style=”border:0″ />
</li>
<li id=”confirm”></li>
</ul>
</form>
</div>
</body></html>
(2)login.js
(
function()
{
$(“#form“).submit
(
function()
{
login();
return false;
}
);
}
);
function login()
{
var user = $(“#user“).val();
var pass = $(“#pass“).val();
if (user == “”)
{
$(“#confirm“).text(“请 输入登录用户名“);
$(“user“).focus();
return false;
}
if(pass == “”)
{
$(“#confirm“).text(“请 输入登录密码“);
$(“#pass“).focus();
return false;
}
$.ajax({
type: “POST“,
url: “login.php“,
data: “id=“ + user + “&p=“ + pass,
beforeSend: function(){
$(“confirm“).text(“登 录中,请稍候
“);
},
success: function(msg){
if(msg == “success“){
$(“#confirm“).text(“登 录成功,欢迎“ + user + “回 来!正在进入你的空间
“);
}else {
$(“#confirm“).text(“没 有此用户或者密码不正确!“);
}
}
});
}
(3)login.php
<?php
$p = isset($_POST["p"]) ? $_POST["p"] : $_GET["p"];
$id = isset($_POST["id"]) ? $_POST["id"] : $_GET["id"];
if($id == “admin“ && $p == “admin“){
echo ‘success‘;
}
?>20多个出色的蓝色系网站设计
by hityun on Apr.07, 2010, under Web
Color wheel pro说: 蓝色是天空和海洋的色彩。它常常和深度和稳定有关。它象征着信任、忠诚、才智、信心、智慧、信仰、真理与天堂。
蓝色被认为有利于人的身心。它减缓人体新陈代谢,产生镇静的作用。蓝色强烈的关系到安宁和平静。在纹章学中,蓝色用来象征着虔诚和真诚。
你可以用蓝色来推广与清洁(水净化过滤器,清洁剂,伏特加)、空气和天空(航空公司、机场、空调)、水和海洋(海运、矿泉水)有关的产品和服务。与 感性的暖色调如红色、橙色和黄色等颜色不同,蓝色跟意识和智慧相联系。在推广高科技产品时使用蓝色可以暗示精确度。
蓝色是男人的色彩;根据研究,它被男性高度认可。深蓝色意味着深度、专业以及稳定;它也是美国企业的首选色彩。
在推广食品和烹调的时候要避免使用蓝色,因为蓝色会抑制食欲。当和暖色如红色和黄色一起使用的时候,蓝色可以创建高对比度、醒目的设计;比如,蓝- 黄-红对一个超级英雄来说是一个完美的色盘。
淡蓝色是与健康、康复、宁静、理解和柔软有关。深蓝色代表着知识、能力、完整性和严肃性。
魅族
artlans
播思通讯
可闻设计
JJ.Ying’s GUI World
blue pixel
Morphix
Droplr
Arbel Designs
Sourcebits
Icebrrg
Ballpark
Xero
Box
Skype
Epic Event
Eastpoint Community Church
Screenr
Vegas Uncork’d
Adobe User Group
Business Card Ninjas
Pixelbleed
Zee
这里展示了20多个出色的国内外使用蓝色系的网站设计,如果你有设计或者见过出色的使用蓝色的中文网站,欢迎通过评论或者到Best CSS提交给我们。
终于把自己的站恢复了。
by hityun on Mar.24, 2010, under 杂
处于某些原因,网站hityun.com一直处于无法访问的状态。国内的审批制度也够恶心的。无奈之下与朋友选着了国外的服务器。速度还是算理想。小站嘛,又不搞什么,能访问就行。哈哈,就此发表一下,为自己庆祝一番!
全人类被骗25年了..
by hityun on Jul.20, 2009, under Game

当年无数为了救公主而顺路救了小蘑菇的
此刻都在泪流满面吧。。。
“CSS 裸体日”
by hityun on Jun.13, 2009, under Web
一个没有样式存在的世界(万维网)或许看起来会很单调,但是却让梗多的设计师开始思考:在这样一个世界种,他们的页面将表现如何。
在鼓励设计师们将目光放在视觉设计一下的“裸体”结构的尝试中,Dustin Diaz建议他们将各自站点中的CSS样式表移去一整天。
Diaz的目的是为了强调运用富含语义的标记以及结构和内容顺序的重要性。但如此一来,相当多的访问者被迷惑了,当很多站点在那天都表现出缺省浏览器的风格时,他们毫无疑问地认为是浏览器坏掉了。
“Css 裸体日”想我们很好地展示了:在开始完成任何视觉设计的工作前,合乎逻辑地组织和排列内容顺序对于设计师们来说是必要的。
同时它清晰地表明,在没有视觉设计的干扰下,纯内容的语义结构变得明朗:访问者们能够更容易看到标题的层次,并识别段落、引用喝列表。
这样的语义标记喝结构使设计表的更为简单。每个人都讲受益于完全简单化的用户体验,例如,使用从大屏幕显示器到小屏幕移动电话的设备一样容易导航。
wordpress 翻页插件 WP-PageNavi
by hityun on Jun.13, 2009, under WordPress
WP-PageNavi作者: Lester ‘GaMerZ’ Chan
WP-PageNavi 是一个非常有用的 WordPress 页面导航插件。通过此插件,可以让 WordPress 自身简单的导航功能得到加强。Duet 网友最近发布了该插件的中文包。
关于 WP-PageNavi 插件,网友可以登录作者的网站去了解详情(英文):
http://lesterchan.net/wordpress/readme/wp-pagenavi.html
安装步骤
解压后,将 pagenavi 文件夹上传到 /wp-content/plugins 中 激活 WP-PageNavi 插件
使用CSS改变已选择网页文字背景色
by hityun on Jun.13, 2009, under XHTML + CSS
这是非常容易的效果。只需添加以下的CSS到您的CSS文件中间:
::selection{background: #A8141B; color: white; /* Safari */}
::-moz-selection{background: #A8141B; color: white; /* Firefox */ }
正如你所看到的,这只能在Firefox和Safari中有效。这可能看起来没有什么,但它是一个微妙的效果,可以为您的网站增加一些视觉吸引力!
10 Ways To Get Design Approval
by hityun on May.19, 2009, under WordPress
One of the most challenging parts of the web design process is getting design sign off. It can prove time consuming, demoralizing and if you are not careful can lead to a dissatisfied client. What is more you can end up with a design that you are ashamed to include in your portfolio.
How then can you ensure that the design you produce is the one that gets built? How can you get the client to sign off on your design? Below are 10 tips learnt from years of bitter experience.
1. Define the role of the client and designer
Many of the clients you work with will not have been involved in a web project before. Even if they have they may have worked in a very different way to what you would expect. Take the time at the beginning of the project to explain their role in the design of the site.
The best approach is to emphasis that their job is to focus on the needs of their users and business. They should concentrate on the broad issues, while you worry about the details of layout, typography and colour scheme.
By clarifying what you expect from the client, you help them to provide the right kind of input throughout the process.
2. Understand the business
Before you open up Photoshop or put pen to paper, take the time to make sure you properly understand not only the brief but the organization behind the site. By understanding their business objectives, organizational structure and marketing strategy your design decisions will be better informed.
You cannot rely upon the brief to provide all of the information you need. It is important to dig deeper and get as good an understanding of their business as possible. This information will prove invaluable when justifying your design decisions.
3. Understand the users
We all like to think of ourselves as user centric designers, but exactly how much effort do you put into knowing your users before beginning the design process?
Take the time to really understand them the best you can. Try to meet with some real prospective users and get to know their needs. Failing that work with the client to produce user personas to help picture exactly what kind of people they are.
Understanding your users not only improves the quality of your work, but also helps move the discussion away from the personal preferences of the client, to the people who’s opinion really matters.
4. Avoid multiple concepts
Many clients like the idea of having the option to choose between multiple design concepts. However, although on the surface this might appear to be a good idea it can ultimately be counterproductive for design sign off.
In a world of limited budgets it is unwise to waste money on producing designs that are ultimately going to be thrown away. The resources would be better spent refining a single design through multiple iterations.
What is more, multiple concepts often cause confusion rather than clarity. It is common for a client to request one element from one design and another from the second. As any designer knows this seldom works.
5. Use mood boards
Clients are often better at expressing what they don’t like than what they do. This is one of the reasons why they favour producing multiple design concepts. An alternative less costly approach is to create a series of mood boards. These boards contain a collection of colours, typography and imagery which represent different “moods” or directions, which the design could take.
Mood boards are quick and easy to produce allowing you to try out various design approaches with the client without investing the time needed to produce complete design concepts. This means that by the time you develop a concept the client and designer have already established an understanding about the direction of the design.
6. Say what you like
It is not uncommon for a client to ask for a design that looks similar to another site they like. The problem is that it can often be hard to establish exactly what it is about the site that attracts them. Also in many cases the sites they like are not something you are keen to emulate!
A better approach that was suggested to me by Andy Budd is to show them sites that you think the design should emulate. Keep a collection of screen captures from well designed sites and pick out a few that are relevant to that particular client. Explain why you feel these designs might suit their project and ask for their feedback. If they don’t like your choices then expose them to more of your collection and see what they pick out.
7. Wireframe the homepage
Often clients find it hard to distinguish between design and content and so sometimes reject a design on the basis that the content is not right. This is particularly true when signing off the homepage.
You may therefore find it useful to establish the homepage content before producing the design. That way once they see the design they will not be distracted by the content. One of the best ways to do this is by producing a basic wireframe consisting of a series of content boxes. Once this has been approved you will find the sign off of design much easier.
8. Present your designs
Although it is true that a good design should speak for itself it still needs presenting to the client. The client needs to understand why you have made the design decisions you have, otherwise they will judge the design purely on personal preference.
Talk them through the design explaining how it meets the needs of their users and business objectives. Refer to the mood boards and preferred sites the client approved and explain how the design is a continuation of those. Never simply email the design through and hope the client interprets your work correctly!
9. Provide written supporting material
Unfortunately, no matter how well you justify the design to the client he is almost certain to want to show it to others. He may need his bosses approval or require internal buy in. At the very least he is going to want to get a second opinion from a friend or colleague.
The problem with this is that you are not going to be there to present to these people in the same way you did for the client. You cannot expect the client to present your ideas as well as you did. The reality is that you have lost control of how the design is perceived.
One way to minimize this problem is to provide written documentation supporting the design. This can be a summary of the presentation you gave to the client and allows him to distribute this along with the design. By putting a written explanation with the design you ensure that everybody who sees it gets the same message.
10. Control the feedback
My final piece of advice for managing design sign off is to control the way you receive feedback. A clients natural inclination will be to give you his personal opinion on the design. This is reinforced because you ask them what they think of the design. Instead ask them what their users will think of the design. Encourage them to think from the users perspective.
Also encourage them to keep that overarching focus I talked about in my first tip. Their tendency will be to try to improve the design, however that should be your problem not theirs. The role of a client should be to defend the needs of their users and business not do the design. Encourage the client to make comments such as “I am not sure that my female users will like the masculine colours” rather than “can we make the whole design pink.” It is down to them to identify the problems and for you as the designer to find the most appropriate solution.
So there you have it. My 10 tips to improve design sign off. Will this ensure design approval every time? Unfortunately not. However it should certainly help smooth the way.
《继续转动》 – 动力火车(Power Station)
by hityun on May.19, 2009, under 音乐/专辑
《继续转动》
- 团体名称:动力火车(Power Station)
- 发行公司:华研国际
- 发行日期:2009年03月27日
- 首发地区:台湾
- 专辑语种:国语
- 发行介质:1CD
动力火车睽违四年 能量满格!收录新曲及4年累积的作品及能量,期望以满满的音乐动力鼓励大家在失意的时刻,只要不放弃就能让人生“继续转动”!
◎动力火车睽违四年 能量满格 3/27《继续转动》再出辑
以摇滚高亢嗓音风靡全华人的动力火车,1997年首张专辑《无情的情书》创下百万销售,一直到2004年《就是红》光辉全纪录,张张专辑成绩辉 煌,2005年更以“就是红”获得金曲奖最佳重唱组合。但近10年来唱片环境大为改变,唱片市场持续下滑,许多中生代歌手面临事业瓶颈,动力火车认真思考 着未来。
四年没有发片的时间,动力火车两个人的生活有了不小的变化,颜志琳结婚有了两个小孩,尤秋兴也因信仰与健康,改变自己的生活作息与习惯,在身心健康与 生活稳定的状态下,两人仍持续有新作及现场蜉出的工作,终于在今年累积了一整张完整的专辑作品,准备在唱片市场上再度出发。
从去年下半年延续至今,全世界均笼罩在不景气的低迷气氛中,动力火车选择在此时再出辑,想证明唱歌仍是自己最强大的武器,想用音乐鼓舞自己和听歌的 人,2009年3月27日即将推出的新专辑《继续转动》,收录新曲及4年累积的作品及能量,期望以满满的音乐动力鼓励大家在失意的时刻,只要不放弃就能让 人生“继续转动”!
◎首波主打“继续转动”激励人心 职棒20年指定主题曲
动力火车首度RAP自信满满 原来在KTV偷练很久!?
与职棒素有渊源的动力火车,一直想为台湾棒球多贡献一份心力,今年适逢职棒20年,动力火车特别将专辑中一首新歌与职棒结合,歌名“继续转动”除了呼 应今年的职棒主题:转动,也想藉由棒球不断转动这样的意象传达出“用梦想与热情让每一天继续转动”的精神来鼓舞人心,这首职棒20年的主题曲,听过的人都 觉得相当热血,也成为专辑中的首波动力主打。
“继续转动”的曲风是两人过去较少演唱的Nu-Metal曲风,不只听到的人觉得特别,连动力火车自己也觉得很新鲜,特别是动力火车首度尝试RAP, 真的给人耳目一新的感觉。其实两人一开始听到DEMO知道有RAP时,没想过要自己发挥,毕竟在之前的歌曲中并没有试过,但几次练唱后觉得这段RAP难度 不高,于是决定试看看,而制作人陈伟老师也希望他们不要刻意表现很会念RAP的感觉,自然的唱就好了,果然出来让人惊喜的效果。听完成品的志琳更开玩笑的 说:“其实我们以前就会唱RAP,在KTV练很久,藏了很久没有讲出来,怕抢了别人的饭碗!”让一旁的秋兴只能傻笑,不知该如何答腔。
演唱崭新曲风的动力火车,对于自己在“继续转动”中的新尝试非常兴奋与喜爱,并表示也许大家还不太习惯,但未来可能会加进更多这样的元素,希望大家会喜欢!
◎Ella毛遂自荐 邀Hebe装Man搞疯癫 联手创作“爱到疯癫”
S.H.E投桃报李 隔8年用音乐回报动力火车提携之情
动力火车除了摇滚歌曲震撼人心外,硬汉式的动人情歌更是深植人心,而新专辑《继续转动》第一首动人情歌主打就是Ella与Hebe联手创作的“爱到疯癫”。
这首超MAN动人主打“爱到疯癫”是首描述为爱疯癫与执着的苦恋情歌,而这首歌更是动力火车大歌迷Ella主动投稿。话说在某次海外演出时,Ella 与秋兴聊及创作,秋兴在听过Ella所有的作品后,很喜欢其中一首DEMO,觉得可以收录在新专辑中,歌曲DEMO经过制作部专业严格的讨论后,获得一致 好评。
然后Ella开始鼓吹才女姐妹Hebe为这首歌填词,Hebe觉得非常荣幸也特别用心,酝酿了好一段时间专心构思,下笔时也一反女生的语气刻意“装 MAN”,还专业的说:“疯癫其实是我的口头禅,但是“爱到疯癫”这几个字唱起来很烈,由动力火车唱出来非常合适。”用如此激烈的口吻陈述为爱失心疯的状 态。这首Ella、Hebe首度为其它歌手作曲作词的歌,献给了刚出道时就帮她们写曲并制作“冰箱”这首歌的超级偶像大师兄动力火车,这样相隔八年的投桃 报李之作,展现出同门师兄妹动力火车和S.H.E之间深厚的好交情,也让“爱到疯癫”这首歌意义特别重大。
而造就出“爱到疯癫”的幕后推手——秋兴,当初就喜欢DEMO中很贴近生活的心情,之后填上了比较年轻人语言的歌词,也让秋兴在演唱这首歌的情绪调整 的比较像年轻时期在谈恋爱的感觉,再加上录音期间秋兴正好感冒未完全痊愈,略带沙哑的声音反而画龙点睛让歌曲多了沧桑执着的气氛。志琳则是在听到这首歌的 时候,对创作新手Ella的作品成熟度相当赞赏,直说要写出一首好听又耐听的歌很不容易,但Ella做到了。两位超级唱将对这首歌的喜爱与诠释,果然让出 来的成品诚恳而感动人心。
◎2009年 KTV必点挑战高音歌曲-爱上你不如爱上海
动力火车+林志炫三大男高音一路飙唱 摇滚与美声完美结合
动力火车睽违四年,在收歌过程中唱片公司希望找一首能让动力火车完美呈现高音的歌曲,在听遍许多创作与西洋歌曲后,挑中一样以高音见长的Air Supply的经典曲“Goodbye”,填成中文词“爱上你不如爱上海”,并希望也有个擅长高音的歌手一同来演唱,第一个想到的人选就是林志炫,林志炫 也很豪爽的答应了,因此摇滚与美声两种截然不同的音色,在一首歌中撞击出音乐的火花!
动力火车以往都是跟摇滚歌手合作,首次与美声唱法的歌手合作是种相当新鲜的尝试,不过也因为双方声线差异很大,要把一首合唱曲唱得又自己的特色又要和谐,让整首歌的配唱难度提高很多。配唱时三人并没特别讨论什么,没想到声音一放在一起,就产生奇妙的和谐感。
因为动力火车和林志炫都是听AIR SUPPLY的歌长大的,所以要翻唱AIR SUPPLY的歌曲时都相当兴奋,但也大为紧张,因为一首如此经典、音域又广的歌曲,要把中文词唱进去,又要有感情而不失原味是相当不易的,动力火车在录 音室里录了很多种版本,有沙哑的、硬的等各种唱法,以往他们演唱时会改一些旋律,但发现而这首歌完全的不能改变太多,保留住歌曲旋律原来的感动。
但三人可说是华语乐坛的三大男高音,不但轻松驾驭这首音域与难度都很高的歌曲,声音还有极高的和谐度,将摇滚与美声做了一个完美的结合。动力火车与林志炫也建议喜欢飙高音的朋友,欢迎到KTV记得点这首“爱上你不如爱上海”来挑战一下。
◎动力火车摇滚“不死心还在”“逆向行驶”展现Rocker精神
除了High歌、情歌外,动力火车专辑一定不能少的就是直接重击人心的原味摇滚歌曲,新专辑中首推“逆向行驶”、“不死心还在”这两首代表 ROCKER精神的作品。融合摇滚与蓝调的“逆向行驶”是动力火车第一次和外国老师Keith Stuart合作,对演唱经历丰富的动力火车来说是难得的学习经验。Keith Stuart一直以来都是信乐团的制作班底,配唱方式跟动力火车以往接触的不太一样,因此觉得很新鲜,“逆向行驶”音虽不高,但为表现出歌词内容传达的危 险反骨态度,演唱情绪必须比平常更有力量,让整首歌听起来张力十足,整首歌编曲混音都在纽约完成,让动力火车信心满满的表示,这次和外国老师合作有激发出 新的火花,请大家一定要感受一下,不过动力火车可是特别表示大家平时要注意交通安全,千万不要逆向行驶哦!
另一首摇滚歌曲就是原来和信乐团联盟出击的歌曲——“不死心还在”,最初是信乐团和动力火车一起合唱的版本,这次在动力火车新专辑中则收录动力火车独 唱的版本。当初信乐团邀请动力火车合唱的原因正是大家都是象征摇滚不死的指标性团体,而歌词内容也表达出只要有梦就不会死心的精神,藉此鼓励大家面对困难 和逆境的时候,不要忘了自己的梦想,不断坚持下去,是一首非常强劲且怀抱希望的重摇滚歌曲,隔了4年才发片的动力火车,也要把这首歌献给歌迷和所有支持他 们的朋友。
◎动力火车两首翻唱两样情 轻松演唱海角七号“风光明媚”
一度拒唱“你是我的眼” 只因担心唱得不够感动人心
动力火车的好声音及唱功都是有口皆碑的,就算是首翻唱,不管原唱是什么曲风,动力火车都让那首歌有了新生命。这张专辑公司特别安排动力火车再度挑战翻 唱“你是我的眼”,希望透过他们的诠释让这首好歌再度展现不同风貌,但当公司第一次提出这个想法时,动力却拒绝了,原因是除了原唱萧煌奇已经唱出经典版本 外,小师弟宥嘉也在星光大道比赛时又赋予了歌曲另一种新的情感。一首好歌已经有两个引起广大共鸣的版本,若要再翻唱,该如何再创造不一样的感觉是一大难 题,但几经思考后,动力火车决定接受好歌挑战,先把之前不同版本的印象在心中归零,用演唱新歌的心情去重新诠释,在录音室秋兴为揣摩看不见的感觉,特别把 眼睛蒙起来唱。志琳则收起歌唱技巧,期望用最纯真直白的唱法,原始表达歌曲中的感动!这样专注用心的成果,让这首歌变成专辑中秋兴最喜欢的歌,动力火车请 大家听的时候不妨闭上眼睛,也许更能深刻了解这首歌的意境。
新专辑中有挑战指数五颗星的“你是我的眼”外,另一首重新翻唱歌曲“风光明媚”却是以一种轻松而开心的演唱态度来完成。“风光明媚”是电影“海角七号 ”中的插曲,原来电影版本的制作人陈伟也是动力火车专辑的制作人之一,觉得这首歌质朴天然的气质很适合动力火车演唱,因此极力推荐这首并无CD发行版本的 歌,由动力再度诠释并透过新专辑出版问世。这首歌是动力火车所有录唱的歌曲中KEY最低的一首歌,不飙高音的动力歌声听起来另有一番风情,就像两个好友拿 了吉他在海边随兴快乐唱歌的感觉。配唱的时候,制作人希望动力火车在最后一段能用声音表达出愉悦唱歌的心情,因此动力火车就很随性的唱起原住民欢聚时会唱 的歌,结果专辑最后收录的版本就是动力火车在录音室边玩边唱的练习版本,而非正式录唱版,因为那个轻松玩乐的感觉,就是这首“风光明媚”要传达的气氛。正 如“风光明媚”做为电影“海角七号”的片尾曲,这首歌就是很有海阔天空的心情,动力火车希望大家听了这首歌之后,可以抛开一切烦恼,真的找个风光明媚的地 方去放空心情!
◎职棒球员首次当歌手 演唱中华职棒球迷版主题曲——With US
动力火车配唱标准高 职棒球员笑称录音比春训更操更严格
这次中华职棒20年主题曲一共有两个版,分别是动力火车单独演唱以转动为主题的“继续转动”及描述职棒球员与球迷在球场共同投入比赛心情的“With Us”,“With Us”由球迷填词,动力火车与职棒球员一同演唱,演唱的有统一狮潘威伦、李玮华,兴农牛蔡明晋、郑达鸿、La New熊许文雄、詹智尧,及兄弟象曾嘉敏、周思齐,这是球员们首次进录音室当歌手,而且还是由偶像动力火车当配唱制作人,教导球员们演唱,更让演唱的球员 们紧张不已。秋兴觉得其实来唱的球员们都很会唱,教起来并不辛苦,大部分球员们都有节奏感和音感,只是会太过紧张,毕竟唱歌不是他们的强项,只需多提醒他 们该注意的节奏,也分享给他们利用想像着球赛画面把情绪唱出来的诀窍;志琳觉得只要球员们放轻松,就像上场享受比赛的感觉一样,大家都越唱越好,不过分配 8个球员演唱真的是一大难事,但一起合唱感觉很棒,感觉自己也在球场上接受球迷的欢呼与加油。
动力火车虽一派轻松的讲在录音室的配唱感觉,而球员们可是被操到快气空力尽,因为唱不好就要一直重新来过,有时单是一句就唱了快三十分才OK,狮队的 “嘟嘟”潘威伦一直老神在在,直到知道没唱好是不能回家的才开始体会到事态严重,认真地在一旁临时抱佛脚一下。狮队新秀李玮华则是信心满满,果然还被动力 称赞声音相当干净,可以考虑转行当歌手,不过胖胖自己觉得一句歌词唱不好,就要重新再来,实在太累人啦!
牛队郑达鸿颇具有出片歌手的架势,但录到最后反倒有些太放松,频频出错被纠正,但经验实在难得,希望以后还有机会可以尝试。“喵仔”蔡明晋比较惨一点,录音前一天才发觉有点小感冒,喉咙有些怪怪的,当天录音室休息室冷气太强,搞得他直发抖。
La New熊许文雄一直都有个歌王的称号,果然正式录音时,竟然创下8位选手中最短录音时间,只花了半小时就完成!文雄也很讲义气,完成自己部分的录音后,就 一直在录音室里陪小老弟,为新人詹智尧打气。因为文雄实在录得太快,换到智尧时,他看似冷静的点点头,然后灌下一大口高梁,走进录音室里!志琳还在旁边开 玩笑说,“我的天啊,我在你旁边都醉了!”不知道是不是高梁的后劲发挥,智尧卡在其中一句歌词,反覆地唱了30分钟,让他直喊以后还是好好打球比较实在。
兄弟象的两位球员配唱时遇上严格的秋兴老师,是四队当中被磨得最惨的,周思齐在录音室里被磨了两个多小时,唱到最后也是一副气力放尽的神情,他觉得一 个礼拜先发5场打满45局应该也没这么累吧!曾嘉敏刚开始因为太过紧张,秋兴为了消弭嘉敏的抖音还把录音室的灯都关掉,但两个字的音调老是不对,反覆唱到 声嘶力竭,声音都沙哑了。球员们觉得虽然唱歌不比打球轻松,但算是个很新鲜的经验,希望球迷们喜欢他们的演唱,也期待以后在球场上与球迷们一起大声演唱这 首“With Us”。
◎极速收录曲目
★ 不死心还在
动力火车与信乐团憾动人心摇滚经典,专辑收录动力火车独唱版
★ 继续转动
第一波热血摇滚主打,中华职棒20年主题曲
★ 逆向行驶
摇滚蓝调混血曲风,献给在爱里逆向行驶的柔情铁汉
★ 爱到疯癫
动力火车招牌硬汉情歌主打,Ella、Hebe掏心感动创作
★ 终于明白
电视剧“仙剑奇侠传”片尾曲
★ 爱上你不如爱上海
动力火车、林志炫三大男高音飙唱,摇滚美声完美结合
★ 风光明媚
新专辑乐活主打,电影“海角七号”插曲首度CD发行版
★ 你是我的眼
动力火车历年翻唱最大挑战,真诚演唱再度感动人心
★ Never Say Goodbye
电视剧“白色巨塔”插曲
★ 我答应你
电视剧“白色巨塔”插曲
★ Bonus Track-With Us
中华职棒20年球迷版主题曲,四大球团八大人气球员一同演唱
$(document).ready(




















