Help needed please
-
Hi,
I love the plugin and want to change from another plugin to this one but I am having a bit of trouble implementing it. I have an element on my site that I want to hide until cookies are accepted. To do this at the moment I put the element in a class and have a function that is:
function showelement() {
var y = document.getElementsByClassName(“show”);
var i;
for (i = 0; i < y.length; i++) {
y[i].style.display = “block”;
}var y = document.getElementsByClassName(“hide”);
var i;
for (i = 0; i < y.length; i++) {
y[i].style.display = “none”;
}
}And all I do is call the function when they accept or call another function to hide it (basically the opposite of the above) when they revoke it and when it is revoked it just shows a “content hidden” type image.
How can I implement that using your plugin?
Thanks for the help.
The topic ‘Help needed please’ is closed to new replies.