How do set up jquery to exclude classes in a function?
Posted
by
user1497158
on Stack Overflow
See other posts from Stack Overflow
or by user1497158
Published on 2012-07-02T21:13:34Z
Indexed on
2012/07/02
21:15 UTC
Read the original article
Hit count: 317
I essentially only understand how to read bits of javascript and make modifications.
I am using grid-slider, a script I purchased, but the code writer is mia at the moment, so hopefully someone here can help me.
Basically, it's a slider and there are options to have links open like normal or to have links open in a panel on the same page. I want some links to open in a panel and others to open in the parent window.
It seems to me that all that would be required to do this would be to activate the panel display function (which I've done) and then set up an exclude function to exclude certain uls or lis with a specific class from the function. I've read about the .not selector, but I don't see how to make it applicable to this code:
enter code here
else {
enter code here
if (this._displayOverlay) {
if ($item.find(">.content").size() > 0) {
$item.data("type", "static");
}
else {
var contentType = this.getContentType($link);
var url = $link.attr("href");
$item.data({type:contentType, url:(typeof url != "undefined") ? url : ""});
}
$item.css("cursor", "pointer").bind("click", {elem:this, i:i}, this.openOverlay);
}
$link.data("text", $item.find(">div:first").html());
$img = $link.find(">img");
}
Can anyone help based on looking at this? Here's a link to the demo of the code: http://codecanyon.net/item/jquery-grid-style-slider/full_screen_preview/1204040
Thank you.
© Stack Overflow or respective owner