請問一下,要怎麼改語法才能像下面這個網站的連結變色\r
是慢慢的變而不是移到上面才變色呢?
[urlhttp://www.phpbb.com/styles/forum/index.php?style=225]點我[/url]
[問題] 什麼語法能慢慢的使連結變色?(done)
版主: 版主管理群
Re: [問題] 什麼語法能慢慢的使連結變色?
爪哇黑風凱特 寫:請問一下,要怎麼改語法才能像下面這個網站的連結變色
http://www.phpbb.com/styles/forum/templ ... ed/fade.js
overall_header.tpl
代碼: 選擇全部
<script src='templates/subMerged/fade.js' language='Javascript'></script>-.-
請問小羽版主,我該把上面那段src語法放在哪呢
下面是我的overal_header
下面是我的overal_header
代碼: 選擇全部
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/chunkstyle/{T_HEAD_STYLESHEET}" type="text/css">
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
<!-- BEGIN force_read_announcement -->
<script language="Javascript" type="text/javascript">
<!--
var w = 415;
var h = 225;
var left = (screen.width - w) / 2;
var top = (screen.height - h) / 2;
var props = 'height='+h+',width='+w+',top='+top+',left='+left+',resizable=yes';
win = window.open('{U_FORCE_READ_ANNOUNCEMENT}', '_forcereadannounce', props);;
win.window.focus();
//-->
</script>
<!-- END force_read_announcement -->
</head>
<body>
<a name="top"></a>
<table class="tableoverall" cellspacing="0" cellpadding="5" border="0" align="center">
<tr>
<td><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2" class="forumborder" style="height:117px;"><a href="{U_INDEX}"><img src="templates/chunkstyle/imagesnew/bannerlogo.jpg" border="0" alt="{SITENAME}
{SITE_DESCRIPTION}" /></a></td>
</tr>
<tr>
<td onClick="window.location='{U_INDEX}'" style="cursor:hand;border-left:0px;text-align:right;" class="titleoverallheader">
{SITE_DESCRIPTION}
</td>
<tr>
<td colspan="2" class="titlebottom"><a href="{U_FAQ}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_faq.gif" width="14" height="14" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a> <a href="{U_SEARCH}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_search.gif" width="14" height="14" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a> <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_memberlist.gif" width="14" height="14" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_usergroups.gif" width="14" height="14" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_register.gif" width="14" height="14" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>
<!-- END switch_user_logged_out -->
<a href="{U_PROFILE}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_profile.gif" width="14" height="14" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_pmold.gif" width="14" height="14" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_loginoff.gif" width="14" height="14" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </td>
</tr>
</table>
<br />
其實Man520講的也不完全是錯的~只是沒把位置交待清楚而己
http://www.w3.org/TR/REC-html40/interact/scripts.html
The SCRIPT element places a script within a document. This element may appear any number of times in the HEAD or BODY of an HTML document.
w3c裡有提到~script標籤在HTML文件裡可能會在HEAD 或 BODY區塊裡出現好幾次
所以更正確來說~script應該被放置在<head></head>或<body></body>之間
只是一般習慣將它放置於<head></head>之間吧~
http://www.w3.org/TR/REC-html40/interact/scripts.html
The SCRIPT element places a script within a document. This element may appear any number of times in the HEAD or BODY of an HTML document.
w3c裡有提到~script標籤在HTML文件裡可能會在HEAD 或 BODY區塊裡出現好幾次
所以更正確來說~script應該被放置在<head></head>或<body></body>之間
只是一般習慣將它放置於<head></head>之間吧~



