lightbox doesn't work with menu script. in the attachment is the file. can
anyone help perhaps. it's the simple menu with hiding features. i watched the
video tutorial and did it. but i added lightbox in each submenu link. if anyone
can help that'd be great :)-tuan
__
You probably shouldn't use document.write() for anything; Dynamic HTML
and the DOM have pretty much
made is obsolete.
document.write() will replace the whole document if you run it at any
time except when the document is being loaded.
So you can use it inline:
var today=new Date();
2:44 AM
To: discuss@jquery.com
Subject: [jQuery] (no subject)
Ok i'm a newbie in jquery and i'm trying to write function that will replace
all element's content with current year.
My function looks like this:
$(function(){
$(".y").ready(function() {
var today = new Dat
Hi
> $(function(){
> $(".y").ready(function() {
> var today = new Date();
> var year = today.getFullYear();
> document.write(year);
> });
> });
$(function() {
$('.y').html((new Date()).getFullYear());
});
Christof
___
jQuery mailing li
Ok i'm a newbie in jquery and i'm trying to write function that will replace
all element's content with current year.
My function looks like this:
$(function(){
$(".y").ready(function() {
var today = new Date();
var year = today.getFullYear();
document.write(year);
});
});
but when i run it
Inside an event 'this' refers to the element the event was attached to. This is by design. If you want to access the externaly scoped 'this' do something like:
var self=this;$('#text-field).click( function() { alert(self.name); } );Blair
On 11/7/06, Steve Reid <[EMAIL PROTECTED]> wrote:
why doesn't
why doesn't this work:
$('#text-field').val(this.name);
when this does:
$('#text-field).click( function() { alert(this.name); } );
? did i find a bug?also: what does 'this' refer to? the jquery object, right?
___
jQuery mailing list
discuss@jquery
oops, my apologies for not providing a subject to this post. I'm
usually a good maillist person ;-).
On Oct 16, 2006, at 3:19 PM, ke han wrote:
> Hello,
> I'm new to jQuery...thanks for a great product!!
> One thing I like to understand when choosing a js library is various
> performance asp
oops, my apologies for not providing a subject to this post. I'm
usually a good maillist person ;-). ke han
On Oct 16, 2006, at 3:19 PM, ke han wrote:
> Hello,
> I'm new to jQuery...thanks for a great product!!
> One thing I like to understand when choosing a js library is various
> performa
Hello,
I'm new to jQuery...thanks for a great product!!
One thing I like to understand when choosing a js library is various
performance aspects.
Here is a good article regarding prototype performance:
http://www.cybergrain.com/archives/2005/12/ajax_perf_the_a.html
The only solid performance pro
10 matches
Mail list logo