开发者

remove link from the l() function in drupal after the first click

How does one remove the hyperlink from the l() functi开发者_Go百科on after the first click. A working example would be helpful. My link is of the form l(25,$_GET['q'],array('query'=>array("itemcount"=>"25")));


You...don't use the l() function then? It's for creating a link.


You can use a JQuery Plugin called one_time_action to implement this behavior.


JavaScript is best for doing stuff like this. Doing it with PHP wouldn't be impossible, just foolish. You'd have to write your own version of l() that keeps track of the click count with session/global variables or worse...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜