开发者

Entire topiclist row as a link

开发者 https://www.devze.com 2023-04-12 21:20 出处:网络
I\'m working now on phpbb3 template, i came out from balmy blond template. I made topiclist rows highlight on hover, but i want entire row to be clickable too, so开发者_高级运维 that one can click in

I'm working now on phpbb3 template, i came out from balmy blond template. I made topiclist rows highlight on hover, but i want entire row to be clickable too, so开发者_高级运维 that one can click in the middle of row and go to choosen topic.

Any ideas would be appreciated ;d


You could easily use javascript:

<tr onclick="window.location.href=http://example.com" />

Here's a live example: http://jsfiddle.net/KVZMb/1/


You can do this with jQuery also: http://jsfiddle.net/7vTfk/ If you use jQuery you do not need to edit HTML.

0

精彩评论

暂无评论...
验证码 换一张
取 消