day.
On Apr 18, 4:00 am, victorg vr.gerrit...@gmail.com wrote:
I think you could easily accomplish that by defining an mouseover
handler for your button that does a setInterval() to a function that
scrolls your container.
The scrolling of your container would be accomplished by fooling
It works just fine if you switch the focus with the blur and use attr
() correctly :)
attr(prop) = retrieve property
attr(prop, value) = set property
$(#q).focus(function () {
if ($(this).attr(value) == $(this).attr(defaultValue)) {
$(this).attr(value, '');
}
I think you could easily accomplish that by defining an mouseover
handler for your button that does a setInterval() to a function that
scrolls your container.
The scrolling of your container would be accomplished by fooling
around with the scrollTop() function.
I've put together a test script:
Where in your code are you trying to do this?
You should use it like this: $(#content).appendTo
(#itemwherecontentneedstobeappendedto);
On Apr 18, 12:42 pm, Colonel tcolo...@gmail.com wrote:
Hi all,
how I can add content from div to div?
For example, I have code:
..
script
I tried your code, but for me it works just fine?
On Apr 18, 10:47 am, Mohsen Saboorian mohs...@gmail.com wrote:
I've disabled context menu, on page ready, using the following code:
function contextMenu(e){
return false;}
function disableContextMenu() {
Hmm, i've eaten better things :-P
I tried to make it work using Firebug but its not a big success, since
i cant attach new events after unbinding them somehow..
I think this should work: http://pastebin.com/m4c657bc9
Basically, what i am trying to do is this: Check what the active URL
is right
Is it impossible in jQuery to select an element as I do here (var
yearFrom=$(:input[type=select][name=yearFrom]);)?
Marc
Yes, i think you should do it like this instead $(select
[name=yearFrom]);
jQuery will look for an element which actually has a type=select
attribute.
button
It should work. Have you tried it like this?
$(#div1).load(file.php).appendTo(#div2);
Or specify a callback when the results are loading and then append it:
$(#div1).load(file.php, function() {
$(this).appendTo(#content);
});
On Apr 18, 3:14 pm, Colonel tcolo...@gmail.com wrote:
Hi all, I
Well, i have noticed you used an atrribute/value with the same name
For example: $(a.link).animate( { color: color }, 1000);
I think i've had issues with that in the past as well.
Might want to try to change it into: $(a.link).animate( { color:
color2 }, 1000);
On Apr 18, 5:26 pm, Karl
script language=text/javascript -- script type=text/
javascript
On Apr 12, 3:29 pm, webguy262 webguy...@yahoo.com wrote:
I'm sorry for being so thick, but I'm stuck.
Please, can someone view the source of this page...
http://www.eastexhaust.com/jquerytest.html
...and tell me why it is
The problem is that you cant set the opacity of an background-image
itself, it will change the opacity for the entire element.
So, my solution is:
1. Create an element inside the element you want to fade (fading
element)
2. Give it the same dimensions as the parent element
3. Set the parent's
$(#results).setGridParam is not a function
This usually means that #results cannot be find in the DOM, are you
sure this is the correct element?
Else i wouldn't know unless you supply a bit more of your source code.
On Apr 10, 9:05 pm, Chuk violinssoundc...@gmail.com wrote:
Hi. I'm
Maybe you should switch it to make use of the mouseover event only,
and on mouseover change all menu items to off status and set the
curret one to on?
$(.nav a img).mouseover(function() {
// clear all menu items with _on img
$(.nav a img).each(function(){
I think you would be best off with a Regular Expression:
var f = $(#fruits);
f.html( f.html().replace(/;/g,br/) );
/g enables global matching. When using the replace() method,
specify this modifier to replace all matches, rather than only the
first one.
and then
change back to the unselected state, but the one that is selected (page you
are on) to stay selected.
victorg-2 wrote:
Maybe you should switch it to make use of the mouseover event only,
and on mouseover change all menu items to off status and set the
curret one to on?
$(.nav
The problem is that you are selecting li items which have the class
glossymenu (li.glossymenu).
While you actually need :ul.glossymenu li.
So something like this should work :)
$(ul.glossymenu li).bind(onclick,function(){
$(ul.glossymenu li).removeclass('current');
Oops, forgot the case on removeClass and addClass:
$(ul.glossymenu li).bind(onclick,function(){
$(ul.glossymenu li).removeClass('current');
$(this).addClass('current');
};
);
On Apr 11, 3:50 pm, victorg vr.gerrit...@gmail.com wrote
Guess i made a mistake again. :P
This should work now, if not i'll eat my shoe.
$('.nav a img').hover(
function(){
if($(this).attr(src).indexOf(_on) == -1) {
var newSrc = $(this).attr
(src).replace(.png,_on.png);
Small correction..
var activePage = window.location.pathname.substr(1);
$(a[href=+activePage+] img).trigger(mouseover);
If you just want the loop index, it's passed to the .each() callback as the
first parameter:
$('a').each( function( i ){
// 'i' is the loop index
$(this).click(function(){
// You can use 'i' directly in this code
});
});
Now,
20 matches
Mail list logo