Seite 1 von 1

Hintergrund bei Mouse over aktivieren

Verfasst: 20.01.2009 16:53
von beffi
Hallo, im phpbb 3 ändert sich beim Mouseover über die Forentitel auch der Hintergrund. Dies finde ich eine tolle Sache. Lässt sich das auch im phpbb2 einbauen?

Ich habe dazu das Hypercells Mod installiert. Wie lässt sich die Farbe änder? Bei Mouseover wird der Hintergrund weiss statt hellgrau. Da erkennt man leider kaum einen
Unterschied?

Code: Alles auswählen

######################################################## 
## 
## Title: Hypercells
## Version: 1.0.0 - final release 
## Author: Brewjah 
## Description: allows users to click anywhere in the cell to access the forum or a topic 
## and displays a hand cursor on mouse over even to SHOW that its clickable.. 
## 
## Installation Level: Easy 
## Installation Time: 2-5 Minutes 
## Files To Edit: 2 
##          -  index_body.tpl 
##          -  viewforum_body.tpl 
## 
## Included Files: none, cause we're cool like that 
## 
#########################################################

# 
#-----[ OPEN ]------------------------------------------ 
# 
   templates/subSilver/index_body.tpl 
# 
#-----[ FIND ]------------------------------------------ 
# 
   <td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br /> 
# 
#-----[ REPLACE WITH ]------------------------------ 
# 
   <td class="row1" width="100%" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"> <span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br /> 
# 
#-----[ SAVE CLOSE UPLOAD ]--------------------------- 
# 
   templates/subSilver/index_body.tpl 
# 
#-----[ OPEN ]------------------------------------------ 
# 
   templates/subSilver/viewforum_body.tpl 
# 
#-----[ FIND ]------------------------------------------ 
# 
     <td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br /> 
# 
#-----[ REPLACE WITH ]----------------------------- 
# 
     <td class="row1" width="100%" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />  
# 
#-----[ SAVE CLOSE UPLOAD ]-------------------------- 
# 
   viewforum_body.tpl 
# 
#-----[ EOM ]-------------------------------------------- 

Re: Hintergrund bei Mouse over aktivieren

Verfasst: 20.01.2009 20:23
von jensdd
Hallo beffi,

Du kannst statt {T_TD_COLOR1} eine beliebige Hintergrundfarbe im RGB-Format (#RRGGBB) eintragen. Für Hellgrau z.B. #cccccc.

Gruß Jens

Re: Hintergrund bei Mouse over aktivieren

Verfasst: 26.01.2009 14:00
von beffi
Vielen Dank, hat funktioniert! 8)