开发者

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

开发者 https://www.devze.com 2023-02-05 22:59 出处:网络
How does one remove the hyperlink from the l() functi开发者_Go百科on after the first click. A working example would be helpful.

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

精彩评论

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

关注公众号