[Greasemonkey] More TechnoProxy/CSS challenges

Nikolas Coukouma lists at atrus.org
Fri Jul 8 10:02:23 EDT 2005


John wrote:

> Matthew Gertner wrote:
>
>> Can you send your working script? Does it work on the Wikipedia page I
>> cited? I tried:
>>
>> img.style["z-Index"] = "999";
>>
>>  
>>
> Oh, if you wanted to do it that way, I think it's img.style.zIndex or
> even img.style["zIndex"} .... drop the "-"
>
> John 

You are correct, the property is img.style.zIndex . The other way to do
this is via setProperty
img.style.setProperty( "z-index", "999", "");

-Nikolas Coukouma


More information about the Greasemonkey mailing list