1 頁 (共 1 頁)

[問題] 什麼語法能慢慢的使連結變色?(done)

發表於 : 2005-05-06 02:14
黑風凱特
請問一下,要怎麼改語法才能像下面這個網站的連結變色\r

是慢慢的變而不是移到上面才變色呢?

[urlhttp://www.phpbb.com/styles/forum/index.php?style=225]點我[/url]

Re: [問題] 什麼語法能慢慢的使連結變色?

發表於 : 2005-05-06 04:58
神川小羽
黑風凱特 寫:請問一下,要怎麼改語法才能像下面這個網站的連結變色
爪哇
http://www.phpbb.com/styles/forum/templ ... ed/fade.js
overall_header.tpl

代碼: 選擇全部

<script src='templates/subMerged/fade.js' language='Javascript'></script>

發表於 : 2005-05-06 11:19
黑風凱特
請問小羽版主,我該把上面那段src語法放在哪呢 :-(

下面是我的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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<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>&nbsp; 
<!-- BEGIN switch_user_logged_out -->
&nbsp;<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>&nbsp;
<!-- END switch_user_logged_out -->
&nbsp;<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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<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>&nbsp;</td>
			</tr>
			</table>

		<br />

發表於 : 2005-05-06 18:01
~倉木麻衣~
試看看加到</head>之前

發表於 : 2005-05-06 18:07
Man520
~倉木麻衣~ 寫:試看看加到</head>之前
是<body>

發表於 : 2005-05-06 18:14
~倉木麻衣~
Man520 寫:是<body>
<body>的話要放在後頭~
放<body>之前是錯的~如果是指<body>之前</head>之後~那肯定是錯誤用法

發表於 : 2005-05-06 18:16
Man520
~倉木麻衣~ 寫:
Man520 寫:是<body>
<body>的話要放在後頭~
放<body>之前是錯的~如果是指<body>之前</head>之後~那肯定是錯誤用法
給你考到了@@
========================
剛去試一試,發覺的確放在<body>

發表於 : 2005-05-08 00:56
~倉木麻衣~
Man520 寫:剛去試一試,發覺的確放在<body>
放在<body>之前or之後? 要交待清楚呀~
另外~我先前測試時將它放在</head>之前是ok的

發表於 : 2005-05-08 02:38
神川小羽
~倉木麻衣~學長說的應該才是正確的
也就是放在<head>到</head>的標籤裏面\r
而事實上這風格的原作者也是這樣放的嚕,不過我沒學過爪哇不是很肯定。

發表於 : 2005-05-08 04:46
~倉木麻衣~
其實Man520講的也不完全是錯的~只是沒把位置交待清楚而己 :P

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>之間吧~

發表於 : 2005-05-08 10:43
Man520
對不起喔..^^"
HTML只是學過一會兒(三分鍾熱度..XD)