msn button

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,
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top