[jQuery] Re: Hover on different ids

2009-09-27 Thread Geir
On 27 Sep, 12:42, "ryan.j" wrote: > try $('#breadcumb, #nKnapper, #Navigation') instead Excellent :) Works. Thanks!

[jQuery] Re: Hover on different ids

2009-09-27 Thread Geir
Firebug says: BrHo.hover is not a function

[jQuery] Hover on different ids

2009-09-26 Thread Geir
Hi! I want an div#breadcrumb to animate when some other divs are hovered. This is my code: var BrHo = $('#breadcumb') + $('#nKnapper') + $('#Navigation'); BrHo.hover(function(){ $('#Breadcumb').animate({ opacity: '1', fontSize: '14px

[jQuery] Re: Breadcumb, error in for-loop

2009-09-26 Thread Geir
Thanks for helping out Althalos, but BrCu really gives me what I want. You see, for each parents('li') jQuery finds a:first, giving me the array I want. However, I wonder if the format of the array doesn't convert to insert as html..

[jQuery] Re: Breadcumb, error in for-loop

2009-09-26 Thread Geir
Success!!! var BrCu = here.parents('li').find("a:first"); var BText = ""; for (i=3; i>=0; i--){ if (BrCu[i] != undefined){ BText = BText + ' > ' + '' + BrCu.eq (i).html() + ''; }} $('#breadcumb span.ins').html(BText); Thank you for your hel

[jQuery] Breadcumb, error in for-loop

2009-09-26 Thread Geir
Hi! I'm not an expert in js, maybe you can help me with this one: var BrCu = here.parents('li').find("a:first"); for (i=3; i=0; i--){ if (BrCU[i] != undefined){ $('#breadcumb span.ins').html('>' + BrCu[i]); } }; BrCu gives me what I want. But the f

[jQuery] Re: Breadcumb, error in for-loop

2009-09-26 Thread Geir
Thanks! Now we're getting somewhere. (It's my first time writing a fo-expression) You're right about the comparison. It should be: for (i=3; i>=0; i--) > You're not initializing BText. I think this is valid.. http://www.w3schools.com/JS/js_variables.asp It's now writing to the page :)) Howeve

[jQuery] Re: Breadcumb, error in for-loop

2009-09-26 Thread Geir
Ok, saw one mistake, overwriting the text on each for. So, tried this: var BrCu = here.parents('li').find("a:first"); var BText; for (i=3; i=0; i--){ if (BrCU[i] != undefined){ BText = BText + '> ' + BrCu[i]; }} $('#breadcumb span.ins').html

[jQuery] Re: Breadcumb, error in for-loop

2009-09-26 Thread Geir
Ok, understand the "undefined"-writing..

[jQuery] Re: Filter (attribute, value)

2009-08-15 Thread Geir
Finally.. I got it working :) It was getting the quotes right.. Solution: $('#Navigation li a[href="'+relPath+'"]') Thanks!

[jQuery] Re: [attribute=value]

2009-08-15 Thread Geir
Thanks! Finally.. I got it working :) It was getting the quotes right.. My code: $('#Navigation li a[href="'+relPath+'"]')

[jQuery] [attribute=value]

2009-08-15 Thread Geir
This is from http://docs.jquery.com/Selectors/attributeEquals#attributevalue: >> Variables can be used using the following syntax: [name='" +MyVar + "'] << Is it right? I can't seem to get it work properly..

[jQuery] Re: Filter (attribute, value)

2009-08-15 Thread Geir
Ok, seems like I misunderstood the way Firebug works. It said the variable was undefined, but when I set the breakpoint on the line under, I got something :) Sorry about that, and thanks for the help!

[jQuery] Re: Filter (attribute, value)

2009-08-14 Thread Geir
Thanks! Tried var here = $("#Navigation li a[href='+Path+']"); and var here = $("#Navigation li").$("a[href='+relPath+']"); (Are they totally equal?) still gives me nothing. I'm not very trained in javascript/jQuery but I thing you misunderstood my line 1 and 2. relPath is for the relativ

[jQuery] Filter (attribute, value)

2009-08-14 Thread Geir
Hi! Is this right syntax in my filter (line #3) I can't seem to get what I want.. var path = location.href ; var relPath = path.replace('http://mydomain.localhost', '') || path.replace('http://mydomain.com', '') ; var here = $("#Navigation li a[href=''+relPath+'']") I wa

[jQuery] Re: Hover function issue

2009-08-14 Thread Geir
Thanks! You're right, css is a good solution.. Thanks again!

[jQuery] Hover function issue

2009-08-13 Thread Geir
Hi! ..rather new to javascript I'm making a rollover-script for my site. It works fine for one image, but not for many. How can I modify it to supprt any number of images? var sti = $('.ro').attr('src'); var nySti = sti.replace('.png', '_ov.png') $('.ro').hover(function()

[jQuery] Re: Pop-up, hover or focus -problem

2009-08-05 Thread Geir
On 5 Aug, 20:16, Tim wrote: > Adapt the code to something like this: > >                 $("#search").hover(function() { //On hover... >                         $("#Google").show(); >                 } , function() { //On hover out... >                         $("#Google").hide(); >              

[jQuery] Re: Pop-up, hover or focus -problem

2009-08-05 Thread Geir
Thanks! On Aug 5, 1:12 pm, Charlie wrote: > hover requires 2 functions hover(over,out) Ok, so can I use mouseOver instead? > take the * if* out > logic not making sense on the focus part. If you can focus on element it's > already showing The focus is for if $('#Search').hover is activated and

[jQuery] Pop-up, hover or focus -problem

2009-08-05 Thread Geir
Hi! I'm making a pop-up Google search-box for my site. However it's something wrong with my jQuery-code. Can you help me? js: if ( $('#Search').hover() || $('#Google').focus() ) {$('#Google').show() } else { $('#Google').hide()

[jQuery] Re: Problem with Lightbox

2008-10-28 Thread Geir
Hi! I suppose it's: class="lightbox-enabled" rel="lightbox-myGroup" not just rel="lightbox-myGroup" And maybe "myGroup" instead of just "group"?

[jQuery] Re: Lightbox Plugin (balupton edition)

2008-10-27 Thread Geir
Ok, found out about the png-problems in Safari. I'd used some national characters in the picture-names. It didn't work in IE either. Fixed However the linkback problem in IE remains..

[jQuery] Lightbox Plugin (balupton edition)

2008-10-27 Thread Geir
Hi! Thanks to your good work I'm using jQuery, with the Lightbox Plugin (balupton edition). Very nice in deed. However I have some problems: * Safari 3: png-pictures is not showing * IE7: - $.Lightbox.construct doesn't seem to work (it's showing linkback) - The rendering seems a little b

[jQuery] .stop in it's own sentence?

2008-07-22 Thread Geir
Hi! Is it right that I have to put .stop in it's own sentence? Like: $('#K_meny li') .stop; $('#K_meny li').animate({.. } , 1000); And not: $('#K_meny li') .stop.animate({.. } , 1000); I've got some errors with the latter.

[jQuery] Re: .stop in it's own sentence?

2008-07-22 Thread Geir
Works! Thanks again! On Jul 22, 12:10 pm, Cloudream <[EMAIL PROTECTED]> wrote: > .stop(); do not forget () > > Geir wrote: > > Hi! > > > Is it right that I have to put .stop in it's own sentence? > > > Like: > >                 $('#K_meny

[jQuery] Re: .stop in it's own sentence?

2008-07-22 Thread Geir
Oh. Thanks! So then I can have it in one sentence? On Jul 22, 12:10 pm, Cloudream <[EMAIL PROTECTED]> wrote: > .stop(); do not forget () > > Geir wrote: > > Hi! > > > Is it right that I have to put .stop in it's own sentence? > > > Lik

[jQuery] .animate , display:"none" not working

2008-07-22 Thread Geir
Hi! I have a problem on an animated hover-out. The display (#K_meny li) sticks to "block". And I want to get it to "none". What is the problem and what can I do? I also have a minor problem on not getting the z-index I want. The "#K_meny li" comes on top no matter what I do. Solutions? Thanks!

[jQuery] Re: jQuery animate (help needed)

2008-07-21 Thread Geir
Ok, I've simplified a little. My code is below.. I have a problem on hover out. The display (#K_meny li) sticks to "block". And I want to get it to "none". What is the problem and what can I do? I also have a minor problem on not getting the z-index I want. The "#K_meny li" comes on top no matt

[jQuery] Re: attr(style: ) vs. css

2008-07-19 Thread Geir
Thanks!

[jQuery] Re: jQuery animate (help needed)

2008-07-19 Thread Geir
Ok, this is what I've done so far.. ( I need to fix: 1. Stop the animation when in/out 2. Proper queuing 3. Getting everything back to start-position (remove style?) .. see the comments) $(document).ready(function(){ $('#K_meny li').hide(); });

[jQuery] attr(style: ) vs. css

2008-07-19 Thread Geir
Hi all! What's the difference between: 1. attr(style: "prop./val.") 2. css({prop./val.}) and 3. animate({prop.val.}, 0) Are all the changes set in the html inline-style? Thanks! Reference for my question: http://groups.google.com/group/jquery-en/browse_thread/thread/10ce43d5f882b642?hl=en

[jQuery] Re: jQuery animate (help needed)

2008-07-18 Thread Geir
Wow! You are amazing! I felt stuck on this. Tried Talkfrilance.com, but no answers. And here you are enlightening me.. Thanks a lot! (I'll post again when I tried out the new code)

[jQuery] jQuery animate (help needed)

2008-07-18 Thread Geir Solerød
; left: "48px" , 1000 }) $('#K-meny .three').animate({ top: "-26px" left: "48px" , 1000 }) }); }); If it helps, please focus on line 4-9. The rest is a draft. But of course, any guidance is appreciated. Thanks a lot! :) Geir, Norway