If you're concerned about it validating, use a conditional comment to
include an IE-only stylesheet with the filter in it. At least your non-
IE stylesheets will validate.
Also, note that for IE8, you'll need to use -ms-filter. So, in your IE
stylesheet, you'll have this:
#thumbs
That works Johan, thanks very much.
Doesn't validate, but I guess that's not the end of the world...
Thanks again.
Paul
2010/1/6 Johan Borestad johan.bores...@gmail.com
Hi Paul!
This is a case where you really don't even should use Javascript,
unless you're trying to do some fancy
Hi Paul!
This is a case where you really don't even should use Javascript,
unless you're trying to do some fancy animations. Rely entirely on CSS
with a simple css-rule
#thumbs li.selected {
filter:alpha(opacity=50);
opacity:0.50;
}
This will also be much much faster than any other
I get an answer from John:
http://groups.google.com/group/jquery-dev/msg/9345d498c4a1d5f5
On Dec 23, 5:05 pm, Ami aminad...@gmail.com wrote:
One solution is to use the data property like:
function myObj()
{
document.bind('scroll',this,this.myScroll);
this.myScroll=function (data) {
One solution is to use the data property like:
function myObj()
{
document.bind('scroll',this,this.myScroll);
this.myScroll=function (data) {
//Now I am trying to get this.a
alert(data.a)}
}
But I am sure that changing the scope will work better.
On Dec 23, 5:03
That's a great tip. Thanks, Brian. I'll look into it.
On Dec 19, 8:04 pm, brian zijn.digi...@gmail.com wrote:
Just start a session by default for any user. Once the user has logged
in, create a new session or simply write new values to it.
When the user requests a page, some code of yours
Absolutely, you can create a form with hidden fields on the page that
POSTS its values to the server, or you can initiate an AJAX request
with the current page and store it server side in the session, or you
can simply write the current pre-login page out to a cookie, and have
the login page
There is no session yet; the user has not yet logged in. There is no
way to write the requested URL to a hidden input in the login form,
because the login form isn''t up yet - the user is visiting some other
page.
On Dec 19, 3:58 pm, brian zijn.digi...@gmail.com wrote:
I would do all of this
Just start a session by default for any user. Once the user has logged
in, create a new session or simply write new values to it.
When the user requests a page, some code of yours must be evaluating
whether a login is necessary. Ergo, the URL is known to your script.
So, you can then write the
Although the description is somewhat unclear, if you wish to allow the
user to have several thumbnails selected, all at full opacity, you
should adapt Maurico's nice script a little; the .click function
should add the selected thumbnail to an array or list which can be
used in the chain to filter
It seems like the plugin Live jQuery might be a good answer. Any
thoughts?
Lemme know
Hi All:
Definitively the best solution is to use relative URL in CSS.
Thank you all for help.
On 17 nov, 16:07, Liam Byrne l...@onsight.ie wrote:
Why are you using a root-relative URL ?
If the entire site is in a folder, and then you move everything into
another folder, everything
Hi:
Liam: My client needs to have the posibility to change itself the
image path and he is not a programmer, The maximun complication should
be to change a text by another text. Anyway I know it is a posibility
and I have it in mind.
Michel: I try to use the base tag but I´m using CakePHP
I know it's possible, but it's a really poor way to do this as it will
break the cache.
You should do it with server side code then, can you not edit the html
helper of cakePHP to add the sub directory for you?
nomen wrote:
Hi:
Liam: My client needs to have the posibility to change itself
Well, the other option would be once the page is loaded to round all
elements of your page, pick the ones with a background-image and regexp them
to submission. I'd advise against this solution though, on the grounds that
:
- it's not really simpler than adding a background-image correcting
This will also likely create a ton of 404s for the bogus image
requests that are made prior to your JS fixing the image URLs. If
your client likes to look at web logs to identify broken links, this
will become a headache.
I'm going to echo everyone else's sentiments that this is a bad idea.
This
Thank you Karl but ...
I have seen this article, it does not explain how to do what I want.
I need the background to change and loop without a user doing
anything. Also I need to use a fade.
I have done a lot of searching and haven't found anything. It seems
that it is possible, and possibly
In that case, I'd use something like the Cycle plugin.
http://malsup.com/jquery/cycle/
This works on a set of multiple sibling elements, so it isn't exactly
what you're looking for. But if you have a single element that you
want to achieve this effect on, I'd do this:
1. wrap the element
That is very cool. But it still does not do what I need.
I need just the background to change -- not the entire child element,
the content in the box must not change or fade -in/out.
Thanks.
Dan
On Nov 13, 9:11 am, Karl Swedberg k...@englishrules.com wrote:
In that case, I'd use something
unsubscribe
On Fri, Nov 13, 2009 at 11:12 AM, Dan dan.loff...@gmail.com wrote:
That is very cool. But it still does not do what I need.
I need just the background to change -- not the entire child element,
the content in the box must not change or fade -in/out.
Thanks.
Dan
On Nov 13,
Thanks for the solutions, I have figured out solutions like yours, but I
tought that may exists less-code solutions, so I opened this thread.
Thanks anyway, great solutions.
On Tue, Oct 20, 2009 at 00:18, Charlie charlie...@gmail.com wrote:
I try to learn as much as I can from this sort of
Put together a hashtable of colors based on the customer name.
Something like this (untested):
var hash = {};
$('#tableid tr').each(function(i){
var tr = $(this);
var customer = $.trim(tr.children('td:eq(1)').html());
var color = hash[customer];
if (!color)
{
my starting thought would be use the name as a class, assign a color to
class perhaps from an array of colors so you could have 10 colors and
use them in order for first ten unique names, then repeat for next 10
unique names
use a length ( or size) test to see if that class already exists,
I like this issue and following is my draft implement, its working on IE/FF,
hope it helps
Firstly, I suggest adding a class to COSTUMER column that gonna making
things easier.
HTML sample code:
TR
TD1/TD
TD class=COSTUMERdd/TD
TDcc/TD
TDss/TD
TDss/TD
Bi Jing wrote:
I like this issue and following is my draft implement, its
working on IE/FF, hope it helps
Firstly, I suggest adding a class to COSTUMER column that gonna making
things easier.
HTML sample code:
TR
TD1/TD
TD class="COSTUMER"dd/TD
TDcc/TD
TDss/TD
TDss/TD
/TR
I try to learn as much as I can from this sort of exercise.
I made a couple of revisions to previously untested version, went back
and made a couple of syntax and code fixes to previously untested
suggestion
I only submit this because it works on a limited sized table with
simple names,
nevermind, it does work...
(why can't I delete a post...)
On 1 okt, 19:34, Barisko bartko...@gmail.com wrote:
$(function(){
var w = $(window).width();
$('#background').css({backgroundPosition: w + 'px 190px'});
});
Could anyone explain to mee why
missed a line, the JS should be:
$('.foo').append('a href=#img src=1.gif class=1 alt=1st
image //a');
$('.foo a img').click(function(event){
event.preventDefault();
var fAlt = $('.foo').attr('alt');
$('.fooAlt').text(fAlt)
})
On Aug 14, 2:30 pm, Benn bennmey...@gmail.com wrote:
I'm
var fAlt = $('.foo').attr('alt');
should be:
var fAlt = $('.foo a img').attr('alt');
or better
var fAlt = $(this).attr('alt');
Maurício
-Mensagem Original-
De: Benn
Para: jQuery (English)
Enviada em: sexta-feira, 14 de agosto de 2009 18:37
Assunto: [jQuery] Re: Change
I tried changing the HTML/Javascript to this:
$(#select option).each(function(){
var value = $(this).html();
$(this).addClass(value);
$('.foo').append('a href=#img src=' + value + '.gif
class=' + value + ' alt=' + value + ' //a');
});
$('.foo a img').click(function(event){
I should add that if I use mouseenter, it fixes the problem, but then
for some reason my dropdowns parent won't stay active, whereas it will
on mouseover.
On Aug 11, 10:08 pm, sammahoney samom...@gmail.com wrote:
Hi guys
I have a dropdown menu. When the dropdown is hovered, I need a bg
image
$(#Users).change(function() {
var url = $(this).val();
top.location = url;
});
On Tue, Jun 16, 2009 at 3:53 PM, ciupaz luigi.zambe...@gmail.com wrote:
Hi all,
I have an .ascx page with a populated combobox:
select id=Users name=Users
option value=New User---New User---/option
So putting value=NewUser.ascx in the option tag?
Luis
Well first off.. you can't redirect to a user control (ascx) because
that's not a page per se
Secondly, your original post gives no indication *where* to send the
user
On Jun 16, 10:05 am, ciupaz luigi.zambe...@gmail.com wrote:
So putting value=NewUser.ascx in the option tag?
Luis
You're right, by the way, the pages are .ascx pages, ma they lived
alone, like .aspx pages (they're not embedded in .aspx pages).
And the second page where redirect the user in NewUser.ascx (or .aspx,
it all the same).
Thanks for precisation.
Luis
View this page
http://www.komodomedia.com/blog/2008/07/using-jquery-to-save-form-details/
On 12 Jun, 15:25, ciupaz luigi.zambe...@gmail.com wrote:
Hi all,
I have a form like this:
form id=my_form method=post action=
Name: br /
input type=text id=name name=name /
input
function go(button)
{
$(#my_form).attr(action,button.value);
}
and then in your button tag add this
onclick='go(this)'
cheers
Michael Lawson
Development Lead, Global Solutions, ibm.com
Phone: 1-276-206-8393
E-mail: mjlaw...@us.ibm.com
'Examine my teachings critically, as a gold assayer
Thanks, it's work, and how can I recover the input text value, without
using the querystring?
Luis
Cookies?! See the link i've posted above!
On 12 Jun, 15:48, ciupaz luigi.zambe...@gmail.com wrote:
Thanks, it's work, and how can I recover the input text value, without
using the querystring?
Luis
It's not going to be possible in a cross browser way
On Jun 8, 8:39 am, weidc mueller.juli...@googlemail.com wrote:
Hi,
i'd like to know if i can change the page url somehow.
for example:
let say the page's url is:http://groups.google.com/group/jquery-en/post
i would like to change it
Do you have an active site where you have an example of what exactly
you're trying to do?
On May 29, 11:13 am, will wml...@gmail.com wrote:
Hi. I have the following layout.
.panel
{
position:relative;
width:580px;
height: auto;
/*overflow: auto;*/
padding: 4px;
}
Hello. Not really...it is an intranet site...however, I can send you
the files in a zip.
On May 29, 10:45 am, Stoney mston...@gmail.com wrote:
Do you have an active site where you have an example of what exactly
you're trying to do?
On May 29, 11:13 am, will wml...@gmail.com wrote:
Hi. I
@MorningZ Yes.I figured that out as well. Thank you for your prompt
and courteous reply and for the record I did search the forum first,
but could not find this question. Is there a better way? I hestitate
to hack the core autocomplete plugin if I can avoid it and if I
could somehow override it
Is there a better way?
No, you can clearly see he has the key of q hard-coded right in the
code.
this was the previous topic i spoke of
http://groups.google.com/group/jquery-en/browse_thread/thread/4afe40edefcaed19/2d981b31387bdc98?hl=enlnk=gstq=morningz+q
and in there, it was the same
I've gotten it to work before when a member on the list previous asked
for it.
go into the js file and search for function request
in there, you'll see $.ajax defined, change
q: lastWord(term)
to
YourKey: lastWord(term)
and it *should* work... it's surely easy enough to just give it a shot
AJAX would only be required of you wanted it to post to the server.
The jQuery to do it would be
$(#buttonName).val(New text for button);
Goldielocks wrote:
Hi,
I would like to change the text of an asp button from client-side code
without posting back to the server. Is this possible to
Hi Mat,
Try this:
$('#menu li').click(function() {
$(this).addClass('current').siblings().removeClass('current');
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 17, 2009, at 1:11 PM, Mat wrote:
I have already read the similar post in this
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:
The
the code i finally used was:
$(ul.glossymenu li).click(
function(){
$(ul.glossymenu li).removeClass(current);
$(this).addClass(current);}
);
thanks for the help;
kd
On Apr 11, 9:54 am, victorg vr.gerrit...@gmail.com wrote:
Oops, forgot the case on
http://tinyurl.com/dar2ld
http://tinyurl.com/cvjkqa
http://tinyurl.com/ae56nz
On 3/26/09, Air YT air...@gmail.com wrote:
hi there, have a puzzling one.
i have a fairly simple function call that we use to display tooltips
over certain image elements. we put the function call in the
Assuming you have this:
table id=dj
tbody class=options
tr
tdSomething here/td
tdinput type=checkbox //td
tr
/tbody
/table
You'd use this javascript:
$('#dj .options tr').each(function(){
var self = $(this);
self.find(':checkbox').click(function(){
so here's what I would up doing. The data is coming from the django
template. i added this after the {% for result in results %} template
tag in the admin/change_list_results.html template:
script type=text/javascript
$(document).ready(function(){
var column = 12
disclaimer: n00bie code (seems to work, but might not be particularly
elegant) :)
$(function() {
$('.numericColumn').each(function() {
if ($(this).text() 90)
$(this).parent().css('backgroundColor', 'red');
});
});
On Thu, Mar 12, 2009 at 12:33 PM, Lars lar...@gmail.com wrote:
I am totally
Looks good. Might also want to make sure the text value is a number.
Maybe do a conversion or something.
if (parseInt($(this).text()) 90)
On Mar 12, 12:15 pm, Charlie Griefer charlie.grie...@gmail.com
wrote:
disclaimer: n00bie code (seems to work, but might not be particularly
elegant) :)
Sorry, Number() is probably better. :)
if (Number($(this).text()) 90)
On Mar 12, 12:32 pm, James james.gp@gmail.com wrote:
Looks good. Might also want to make sure the text value is a number.
Maybe do a conversion or something.
if (parseInt($(this).text()) 90)
On Mar 12, 12:15 pm,
Apologies. I assumed the function would continue its down/right
movement and push the window. It handled itself and moved down/left as
needed. Sorry about the deadthread
On Mar 9, 4:04 pm, Ed Lerner emle...@gmail.com wrote:
I need to use the animate function (slide, show, etc won't do) on a
Solved it:
Even though the original .change handler terminates with return false;
The thread created for the AJAX call, does some UI work depending on
the server response. If that work involves displaying some UI that
requires user input, then this function must also terminate the Ajax
thread
True, but if you're not developing or care about the browsers on the phones
at the moment then who cares.
Obviously we are going to later on but for now, you don't have to
necessarily target phones even if they are a bigger part of the picture.
With that, I'm saying JS is not such an issue.
Unless your only option is to resort to JavaScript, this is something
you could do with CSS alone, if you put an id or class on the body tag
for each page and just rely on the CSS hierarchy to change the style
for each list item. It also has the advantage of working immediately,
instead of
How about use the widely ways to achieve this?
1-) Via CSS
Assign an ID to the body element for each page, like:
body id=home, body id=about, body id=contact
and an ID for each menu item like:
div id=menu
ul
li id=ho a href=default.aspxhome/a/li
li id=ab a href=about.aspxabout/a/li
But I'm using a asp.net master page and inheriting it's body. so my pages
only will have one global body tag.
mkmanning wrote:
Unless your only option is to resort to JavaScript, this is something
you could do with CSS alone, if you put an id or class on the body tag
for each page and
You can do still do it with asp:
http://stackoverflow.com/questions/188124/programmatic-solution-to-change-navigation-id-to-highlight-current-page-asp-net
Or if you really want to use JavasScript, the same solution above
applies:
var pathname = window.location.pathname;
pathname =
Problem with the JavaScript is that you loose the css value after you're
redirected to whatever page. You'd have to obviously have to either do some
if statements to check which .aspx page y ou went to or send the id of the
anchor over in a querystring then grab it in JavaScript to set it again
Also when dealing with Subtext, it's not that simple, I'm trying to figure
out how do that in Subtext...the example you spoke of but it's difficult, I
need to figure out where I can do this since it's a bit complicated in how
they are rending their user controls, default.aspx, etc.
expresso
I'm not sure what you mean by losing the CSS value? If you load a new
page, the CSS loads (preferably in an external stylesheet), and the
JavaScript executes ondomready (the JavaScript would have to be on
every page, or preferably included in an external file also). From
your example markup, each
I'm saying this:
1) User clicks a hyperlink, it calls that javascript method which sets some
css class
2) user is redirected to whatever page that hyperlink represented
3) you just lost the css that you changed when the user clicked the
hyperlink
mkmanning wrote:
I'm not sure what you
When a user clicks a hyperlink, a new page loads and the code example
I gave executes -- on the new page ondomready. It never executed on
the click. That's why it's extracting the pathname from the location
object.
On Mar 1, 10:05 pm, expresso dschin...@gmail.com wrote:
I'm saying this:
1)
I see now. Yea, strip out the .aspx (asp is classic, nobody uses that
anymore)
then take the page name and set the css to whatever element that has that ID
as the page name's CSS.
thought about that, and to me that's the best way to to it if going the
javaScript route. thanks a lot!
Since it's not a regex, it doesn't matter for the substring if
it's .asp or .aspx (or .as or .a for that matter). Any of those will
do.
On Mar 1, 10:17 pm, expresso dschin...@gmail.com wrote:
I see now. Yea, strip out the .aspx (asp is classic, nobody uses that
anymore)
then take the page
Thanks much for clarifying..!
mkmanning wrote:
Since it's not a regex, it doesn't matter for the substring if
it's .asp or .aspx (or .as or .a for that matter). Any of those will
do.
On Mar 1, 10:17 pm, expresso dschin...@gmail.com wrote:
I see now. Yea, strip out the .aspx (asp is
Another thing I don't get is why everyone says JavaScript is not ideal. I
mean are we all really still worrying about users not having JS turned on in
the year 2009 when almost half the sites or more have JS reliant controls
and functions on the page?
expresso wrote:
Thanks much for
Sure, if the user has it turned off, they're just not going to see the nice
highlighted selection on the menu items. But I bet you it's rare that we
have to worry anymore about JS being turned off.
If that were the case, JQuery and rest would be an issue today.
expresso wrote:
Another
Nice post! I'll try the body route like everyone else has
Maujor wrote:
How about use the widely ways to achieve this?
1-) Via CSS
Assign an ID to the body element for each page, like:
body id=home, body id=about, body id=contact
and an ID for each menu item like:
div id=menu
Yes we are! You're not only talking about the low percentage of
browsers with JS off, but more important mobile browsers which don't
have full support for javascript. That's a big market.
Besides that, using pure CSS is faster, simpler, less prone to errors
and follows the unobtrusive
Thank you very much.
It took me another hour but I managed to debug the code and get it all
working, thanks again.
On Feb 25, 7:38 pm, Stephan Veigl stephan.ve...@gmail.com wrote:
Hi,
instead of doing a complicate string handling you could simply use
window.location.hash:
$finalurl =
Thanks, I ended up playing around with the url before I passed it into
the function, didn't realise I could do it like that.
On Feb 25, 7:49 pm, brian bally.z...@gmail.com wrote:
Also, $($finalurl) likely won't select anything because you're only
passing the classname. It needs to be in the
Hi,
instead of doing a complicate string handling you could simply use
window.location.hash:
$finalurl = window.location.hash;
For debugging I would do it step by step and not all in one line:
var el = $($finalurl+ :first);
var src = el.attr(src);
var src_split = src.split(.);
var new_src =
Also, $($finalurl) likely won't select anything because you're only
passing the classname. It needs to be in the form '.classname'
(prepended by a dot). Try $('.'+$finalurl)
On Wed, Feb 25, 2009 at 2:38 PM, Stephan Veigl stephan.ve...@gmail.com wrote:
Hi,
instead of doing a complicate string
I can't find any issues with what you have. Please post the validation
part of your code.
On Feb 13, 12:40 pm, Mario Soto canc...@gmail.com wrote:
Hello.
I have a form where i update some fields if there are info on the
database (autolad of data). Then I have to verify if some data must
Hi Mario,
You can trigger the change event in programatically in jquery after
your update code
...
// update code here
$('#selectId').change();
Dave
On 13 Feb 2009, at 22:40, Mario Soto wrote:
Hello.
I have a form where i update some fields if there are info on the
database (autolad
Neither I did find troubles.. :P
This is code like I use it. I check the select and then for it's value
check what to do.
switch($('#selectId').val(){
case 1:
// say hello
break;
case 2:
// say good bye
break;
case 3:
case 4:
case 5:
Hmm... how about:
$('#selectId').trigger('change');
On Feb 13, 1:09 pm, Mario Soto canc...@gmail.com wrote:
Neither I did find troubles.. :P
This is code like I use it. I check the select and then for it's value
check what to do.
switch($('#selectId').val(){
case 1:
// say
I know I can change the name in the location bar with the method you
describe, but because all the transitions initiated by clicking a link
are done with Javascript, I don't know how to make each location bar
name bookmarkable so it will remember the JS state of things - no
matter what you
You can use document.location.hash to get the value of the bookmark,
and based on that value auto-load the content of your link
automatically.
On Feb 6, 10:59 am, atomk akob...@adamkobrin.com wrote:
I know I can change the name in the location bar with the method you
describe, but because all
Makes sense, not possible. The only way a browser allows the location
bar to change is if you're actually at the web address.
Otherwise you could easily phish up account info for major sites by
spoofing the address bar.
On Feb 4, 12:50 pm, atomk akob...@adamkobrin.com wrote:
I have different
The usual way that's done is via the URL hash:
http://adamkobrin.com/#about
location.hash == '#about'
- ricardo
On Feb 4, 3:50 pm, atomk akob...@adamkobrin.com wrote:
I have different subdomains pointing to the same file on my server -
simple enough. What I'd like to do is essentially
Figured out a way to do this so wanted to update with what I found. This
basically cancels the initial request and creates a new one with all the
same values except what you override in the extend function. By doing this,
any callback functions, etc, are kept. In addition, I put in an 'if'
You can loop over the colors also just by using the modulo operator
instead:
$('a').each(function(i){
i = ++i % 4;
var color =
i == 1
? 'red' : //first 4
i == 2
? 'blue' : //second group of 4
i == 3
? 'yellow' : // third group
'lime'; //fourth group and so on
Hi Ram,
I'm not sure what you mean. In any case, to give a little bit of
background to my question. I'm using jQuery with a custom creation
form in drupal and conditional fields. Fields that are hidden in the
first place all appear - independently from what radio button has been
selected - if
Hi, Loic...
Check out this page about .selected. The example given
when you follow the link is about a select input, but it seems
that it could apply to radio inputs, as well.
Rick
http://docs.jquery.com/Selectors/selected
-Original Message-
From: jquery-en@googlegroups.com
Thanks Rick, I'll try to use .selected! This should help a lot.
Regards,
Loic
On Jan 24, 3:41 pm, Rick Faircloth r...@whitestonemedia.com wrote:
Hi, Loic...
Check out this page about .selected. The example given
when you follow the link is about a select input, but it seems
that it could
It is always better to restore the form state from the server side. That
way, I believe you would fail gracefully incase the browser has disabled
javascript. Moreover, it prevents distortion while rendering the page.
On Sun, Jan 25, 2009 at 3:10 AM, LoicDuros loic.du...@gmail.com wrote:
Thanks
$('a').each(function(i){
i = Math.ceil(++i/4);
var color =
i == 1 //first 4
? 'red' :
i == 2 //other 4
? 'blue' :
i == 3
? 'yellow' : // etc
i == 4
? 'green' :
'lime';
$(this).css('backgroundColor', color);
});
On Jan 22, 11:37 pm, devilmike
Awesome Ricardo, thanks! I guess the only issue I have is that I'll
never know how many sets of 4 I'll be dealing with, and i apologize
for not explaining myself very well in my example. Basically for each
set, I want to run the same function. This is what I came up with.
It works, but I'm a bit
b u d d h a ha scritto:
hi,
i have more than 20 images in a form
which might be refering like this image src = images/search.gif/
i want a jquery script for replacing all image src with image src =
http://s.images/images/search.gif/
This is the code, but personally I prefer make changes
Sorry i forgot the braces.
This is the right code:
$('img').each(function() {
$('img').attr({'src': http://s.images/+$(this).attr('src')});
});
--
gianiaz.net - web solutions
via angelo custode, 10 - 23100 sondrio (so) - italy
+39 347 7196482
i tried but not wrking
am placing a sample code which i used
script type=text/javascript
$(document).ready(
$('img').each(
function()
{
$('img').attr({'src', http://localhost/
s.demo/+$(this).attr('src')});
b u d d h a ha scritto:
i tried but not wrking
am placing a sample code which i used
script type=text/javascript
$(document).ready(
$('img').each(
function()
{
$('img').attr({'src', http://localhost/
Giovanni Battista Lenoci wrote:
Maybe I confused you.
You've mixed two types of syntax. You can achieve this with 2 syntax:
1.
$('img').each(function(){
$('img').attr({'src': http://localhost/s.demo/+$(this).attr('src')});
});
2.
$('img').each(function(){
1 - 100 of 201 matches
Mail list logo