Shadow Gradient Script | JavaScriptSource

Shadow Gradient Script

Michael Burt Jan 19, 2007

General

Add a shaded border effect to any valid HTML tag. You can edit the depth, the opacity, and the color of the shadow.




Epsum factorial non deposit quid pro quo hic escorol. Olypian quarrels et gorilla congolium sic ad nauseum. Souvlaki ignitus carborundum.

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: shadowGradient.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(12 comments)

It's a cool effect. Who doesn't want to use, unfortunately the shadow persist in other pages. As I write this comment all 3 shadow panel are showing on top of this message semi-transparente.

Chalo Jan 30, 2007

It won't validate. The w3.org says:[p]character "#" is not allowed in the value of attribute "ID"[p]Also, it looks like this would ruin a tabbed interface! (in firefox at least)

PG Jan 26, 2007

Konqueror 3.5.5 shows full color blocks, no gradient, no shadow effect.[br /]Firefox 1.5.0.5 shows it correct, i think.

angryBrowserUser Jan 23, 2007

when viewed with IE 7 the shadows remain on the page while viewing other tabs. I am not even able to click on the Add or Clear buttons. I have to use the Tab key to select the add button. Please let me know if you have an update for this.

Ken Stewart Jan 22, 2007

Does work safe in Safari, because they are always visible even after the front DIV is hidden.

Marcus Jan 22, 2007