Forums » Customize

calling extra function, a href´s

snoep
GERMANY
2008-08-11 15:30:56
 

Hi!

I´m coming up with a another customization question:

I like to call an extra function when a user clicks on an exhibition. I found out, that the do_click() function can be found in the cookie.js, but I don´t know if I have to call my function from there or if I have to place it directly in the index.php from the plugins-folder where the a href is built together.

What I am trying to do is for example changing the menu or adding classes, when the href is clicked.

Hope you understand me, thanks in advance.

Vaska A
I WROTE THIS
2008-08-11 15:32:52
 

Yup...

  1. <a href='#' onclick="first_function(); second_function(); etc();">Yes</a>

But you could also get much more elegant with all of this...even using Jquery to place event listeners, etc.

snoep
GERMANY
2008-08-11 15:47:16
 

Ok, I´ll go for it, thanx, Vaska!

Showing 1 - 3 of 3 posts in Forum > Customize > calling extra function, a href´s
 

You need to be logged in to post.