Solved

fadded background

Posted on 2012-04-06
3
178 Views
Last Modified: 2012-06-21
How do you get a fadded back ground appearance?

Similiar to this where it goes white to black.

http://www.agraind.com/

Thank you.
0
Comment
Question by:thenrich
3 Comments
 
LVL 10

Expert Comment

by:d4durvesh
ID: 37816015
The link you provided uses a background image. You too can do that by css.
0
 
LVL 9

Accepted Solution

by:
sevensnake77 earned 300 total points
ID: 37816069
http://www.ehow.com/how_5872589_apply-effect-image-photoshop-cs.html


http://www.tizag.com/cssT/background.php

http://www.mightymeta.co.uk/fading-button-background-images-with-css3-transitions/


jquery version
<a href="#" ID="fadeTable" title="click to fade col1">Click to fade Column 1</a>
<table width="400px"  border="1" cellspacing="0" cellpadding="1"
                      summary="This is my test table">
  <caption align="top">
  My Caption
  </caption>
  <tr>
    <th scope="col" class="row0 col1" >Col 1</th><th scope="col">Col 2</th>
  </tr>
  <tr>
    <td class="row1 col1" >one</td><td>Uno</td>
  </tr>
  <tr>
    <td class="row2 col1" >two</td><td>Dos</td>
  </tr>
</table>
<script language="javascript" type="text/javascript">
 $(document).ready(function(){
    // requires http://dev.jquery.com/view/trunk/plugins/color/jquery.color.js
    var iAniSpeed = 2000;
    var sBgColor = 'gold';
    $('#fadeTable').click(function(){
      $('td.col1').animate( { backgroundColor: sBgColor }, iAniSpeed);
        return false;      
    });
});
</script>

hope this helps
0
 
LVL 12

Assisted Solution

by:Amick
Amick earned 200 total points
ID: 37816091
Here's the way to do it for several browsers:
Starting at the top fade from white #FFFFFF at 0% to  gray #404040 at 100% linearly

/* IE10 */
background-image: -ms-linear-gradient(top, #FFFFFF 0%, #404040 100%);

/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, #FFFFFF 0%, #404040 100%);

/* Opera */
background-image: -o-linear-gradient(top, #FFFFFF 0%, #404040 100%);

/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #FFFFFF), color-stop(1, #404040));

/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #404040 100%);

/* Proposed W3C Markup */
background-image: linear-gradient(top, #FFFFFF 0%, #404040 100%);
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now