the plugin and also made
available as a method so it can be called when required, therefore I
don't want to have to duplicate code
I hope this makes sense?
I'm a lot clearer on this than I was this morning, so thanks for your
responses so far.
djl
On 19 Feb 2009, at 17:31, Mik
s' or 'method' code by
preventing either being able to run functions within the plugin eg,
var someFunction = function(e) {
// do something
return false;
};
Thanks for your help.
djl
On 19 Feb 2009, at 13:16, Mike Alsup wrote:
Well, that sort of works, although I need to
I suppose another way around this could be to maybe use a plugin
similar to:
(function($){
$.fn.elemheight = function(options) {
var defaults = {
element: 'body',
};
var options = $.extend(defaults, options);
Brian,
I just found this post:
http://www.west-wind.com/Weblog/posts/453942.aspx
It might be of some use to you?
Cheers,
djl
On 19 Feb 2009, at 12:53, brian wrote:
You could go at it in another way, actually, by forcing a scrollbar to
always be present:
body { height: 100.1
yplugin({
width:500
});
Logs the selector id and 500 to the console when the selector is
scrolled and appends a div with class of 'test' to the body.
Any ideas on how to combine both options and methods in the same
plugin code?
Thanks,
ality - this is essentially what
I'm after.
ie,
$('.selector').myplugin('somemethod');
Can anyone please advise/point me in the right direction of how to do
this?
Thanks,
djl
jCaroussel Lite is perfect for the Coda-style:-
http://www.gmarwaha.com/jquery/jcarousellite/
On 25 Oct 2007, at 05:30, Josh V wrote:
what about horizontal scrolling panes. the following sites are perfect
examples of what i am trying to recreate. www.panic.com/coda and
http://www.hbcweb.
Hi there,
I have a page with a div that uses a toggle slideUp/slideDown effect
as follows:-
var $jq = jQuery.noConflict();
$jq(document).ready(function()
{
$jq("#recenttoggle").toggle(function()
{
$jq("#recent").slideDown('slow');
}
,
play", "none");
}
function replacecontents() {
$("#news").html("Replaced 1Replaced 2li>Replaced 3Replaced 4");
}
2007/4/27, djl <[EMAIL PROTECTED]>:
Hi there,
I've got a simple page that uses the newsticker plug-in (http://
www.texotela.co.
I'm a bit lost with your suggestion here?
Are you saying I should add the lines:
self.items = jQuery("li", self);
self.items.not(":eq(0)").hide().end();
self.currentitem = 0;
into the replacecontents function?
Please advise.
Thanks.
On 27 Apr 2007, at 15:28, Dav
Hi there,I've got a simple page that uses the newsticker plug-in (http://www.texotela.co.uk/code/jquery/newsticker/), as follows:-http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">Untitled Document
.newsticker {
11 matches
Mail list logo