Mit CSS "Effekt" ...
Verfasst: 22.06.2004 19:26
Hi... wie kann ich mit css so ein Effekt machen, wie bei www.source-code.de, dass wen man über die Foren fährt, der hintergrund sich verändert? thx 

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Hat sich erledigt. Aber bei source-code ist der hintergrund heller.Markus67 hat geschrieben:Hi ...
von welchem Hintergrund ?
Markus
Such dir was aus:Smith hat geschrieben:... habe das genommen: #D1D7DC kann mir jemand was anderes sagen?
Code: Alles auswählen
<script language="JavaScript" type="text/JavaScript">
<!--
function markForumRow(row) {
document.getElementById("R"+row+"C1").style.backgroundColor = "{T_TD_COLOR3}";
document.getElementById("R"+row+"C2").style.backgroundColor = "{T_TD_COLOR3}";
document.getElementById("R"+row+"C3").style.backgroundColor = "{T_TR_COLOR1}";
document.getElementById("R"+row+"C4").style.backgroundColor = "{T_TR_COLOR1}";
document.getElementById("R"+row+"C5").style.backgroundColor = "{T_TR_COLOR1}";
}
function unmarkForumRow(row) {
document.getElementById("R"+row+"C1").style.backgroundColor = "{T_TR_COLOR1}";
document.getElementById("R"+row+"C2").style.backgroundColor = "{T_TR_COLOR1}";
document.getElementById("R"+row+"C3").style.backgroundColor = "{T_TR_COLOR2}";
document.getElementById("R"+row+"C4").style.backgroundColor = "{T_TR_COLOR2}";
document.getElementById("R"+row+"C5").style.backgroundColor = "{T_TR_COLOR2}";
}
-->
</script>
Code: Alles auswählen
<!-- BEGIN forumrow -->
<tr onMouseOver="markForumRow({catrow.forumrow.FORUM_ID}); this.style.cursor='hand'; " onMouseOut="unmarkForumRow({catrow.forumrow.FORUM_ID});" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'">
<td id="R{catrow.forumrow.FORUM_ID}C1" class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td id="R{catrow.forumrow.FORUM_ID}C2" class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td id="R{catrow.forumrow.FORUM_ID}C3" class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td id="R{catrow.forumrow.FORUM_ID}C4" class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td id="R{catrow.forumrow.FORUM_ID}C5" class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->