Interesting. However my initial post contained only a simplified version of the 
scenario.
The more detailed version looks like this:

<div class="myclass which contains blanks">
  <a name="navi" title="" href="http://www.someurl.com/";>
  <img title="mylogo" alt=... src=...>
</a>
</div>

So if I code now:

$("div.myclass which contains blanks img").setAttribute('width', '200px');
$("div.myclass which contains blanks img").setAttribute('height', '40px');

it does not work.

First problem: The class name which contains blanks. How do specify it in the 
command you suggested?

Second problem: Is it necessary to insert the "a" tag somehwere to keep the 
hierarchy information?

Thank you
Ben


>On Monday, 2. April 2012 20:52:37 UTC+2 wrote Anthony Lieuallen:

>    On Mon, Apr 2, 2012 at 10:50 AM, Tei <[email protected]> wrote:

>        $(img).css("width",neww+"px");
>        $(img).css("height",newh+"px");


>    At this point simpler and easier would be:

>    img.setAttribute('width', neww + 'px');

>    No need for jQuery nor CSS to be involved. 


>On Monday, 2. April 2012 20:52:37 UTC+2 wrote Anthony Lieuallen:

>    On Mon, Apr 2, 2012 at 10:50 AM, Tei <[email protected]> wrote:

>        $(img).css("width",neww+"px");
>        $(img).css("height",newh+"px");


>    At this point simpler and easier would be:

>    img.setAttribute('width', neww + 'px');

>    No need for jQuery nor CSS to be involved. 





-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to