On 27 Sep, 12:42, "ryan.j" wrote:
> try $('#breadcumb, #nKnapper, #Navigation') instead
Excellent :)
Works. Thanks!
Firebug says: BrHo.hover is not a function
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
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..
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
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
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
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
Ok, understand the "undefined"-writing..
Finally.. I got it working :)
It was getting the quotes right..
Solution: $('#Navigation li a[href="'+relPath+'"]')
Thanks!
Thanks!
Finally.. I got it working :)
It was getting the quotes right..
My code: $('#Navigation li a[href="'+relPath+'"]')
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..
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!
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
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
Thanks!
You're right, css is a good solution..
Thanks again!
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()
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();
>
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
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()
Hi!
I suppose it's:
class="lightbox-enabled" rel="lightbox-myGroup"
not just rel="lightbox-myGroup"
And maybe "myGroup" instead of just "group"?
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..
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
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.
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
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
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!
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
Thanks!
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();
});
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
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)
;
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
33 matches
Mail list logo