msn button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,
i was wondering how msn make their search button have that fade from light
to dark effect. i have tried adding an image like that to the background of
an asp:button and the image doesnt appear.

and if http://www.search.msn.com/ loads slowly the nice looking button with
the effect loads as a green button without the effect. why does the green one
load before the effect one?
i was just wondering,
 
Mensuir,
if you view source on their page you will see two important items:

<style type="text/css">
@import "/sa/2_7_0_65124/common.css";
</style>

<script type="text/javascript">var
curUrl='http://search.msn.com/';</script><script type="text/javascript"
src="/sa/2_7_0_65124/common.js"></script>


The stylesheet provides all the UI elements including the gradient.
The script provides various other functionality.

I am pretty sure the MSN people would not get too upset if you simply
studied these to see how it can be done, without wholesale copying of their
code.
Peter
 
Back
Top