Pagina 1 van 1

OnMouseOver Hack

Geplaatst: 04 mei 2005, 12:28
door Eefjuh

Code: Selecteer alles

################################################################# 
## Mod Title: PhpBB - OnMouseOver Hack
## Mod Version: 1.0.0 
## PhpBB Version: 2.xx
## Author: Robin de Boer <webbie@chibitrunks.nl> - http://www.chibitrunks.nl 
## 
## Installation Level: (easy) 
## Installation Time: 1 Minutes 
## Files To Edit: 
##			forumroot/templates/template-xxx/index-body.tpl
##			forumroot/templates/template-xxx/viewforum_body.tpl
##			
## Included Files: (n/a, or list of included/required files) 
################################################################# 
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites 
################################################################# 
## 
################################################################# 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################# 

--------  >>> Open templates/template-xxx/index-body.tpl -------- 

------------------------
Find:
------------------------

<td class="row1" width="100%"><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='#--01--'; this.style.cursor='default';" onMouseOut="this.style.backgroundColor='#--02--';"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />

------------------------
Edit in this line:
------------------------

--01-- to the color you want to give the highlight
--02-- should be the color of the normal table-cell




-------- >>> Open templates/template-xxx/viewforum_body.tpl -------- 

------------------------
Find:
------------------------

<td class="row1" width="100%"><span class="gensmall"><b>{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="gensmall">{topicrow.TOPIC_TITLE}</a></b></span><span class="gensmall"><br />
------------------------
Replace with:
------------------------

<td class="row1" width="100%" onMouseOver="this.style.backgroundColor='#--01--'; this.style.cursor='default';" onMouseOut="this.style.backgroundColor='#--02--';"><span class="gensmall"><b>{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="gensmall">{topicrow.TOPIC_TITLE}</a></b></span><span class="gensmall"><br />

------------------------
Edit in this line:
------------------------

--01-- to the color you want to give the highlight
--02-- should be the color of the normal table-cell

------------------------
Sace/Close All Files
------------------------
Nou is het enige nadeel, ik wou zo graag dat de hele rij verkleurt, maar nu verkleurt alleen de cell waar je opstaat.

Wat moet ik veranderen om de hele rij te krijgen?

Geplaatst: 06 mei 2005, 16:02
door Luuk
Ik denk hetgene wat je in de <td> tag zet in de <tr> tag zetten, dus <tr onMouseOver="...... >.

Ik weet niet zeker of dat ook in een tr tag gaat, denk het wel. Probeer maar eens :wink: