Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gradient with js

Status
Not open for further replies.
Jul 7, 2010
21
DE
I would like to create a gradient look for an entire page like a gradient filter on top of everything.is this possible with js?
 
yes I tried it but I cant make it work...my js programming skills are not so good and I would like to integrate it in chickenfoot..firefox add-on.. does it work on top of every page element?
 
ok..I got one step further..i included a library in my script..any idea why the following line does not work.is there any mistake at the left part?thanks a lot for any answer..

document.body.style.class = " gradient ffffff 000000 vertical";
 
ok I managed to include the library below in my document and it works..
any idea how to create a gradient filter above everything?
the following code works only for the documents body color:

var elt = document.body;
var style = {'gradient-start-color': 0x0000ff,
'border-radius': 25};
OSGradient.applyGradient(style, elt);

Any answer highly appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top