Geeks With Blogs
mikedopp Geekswithblogs (edition)

Ever wondered how to put a ribbon on your website that was clickable to say an ad within your site or elsewhere?

Try this!

Create a  user control cause its easy!

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CommonBanner.ascx.cs" Inherits="CommonBanner" %>
<!--[if lt IE 7]><div id="advBanner" style="position: absolute;"><img src="/images/ribbons/Ribbon_indexed.png" alt=" If that's where you thought you were, you're not... but click here and we'll take care of that for you." usemap="#mapLifetimeTV" /><![endif]-->
<![if gte IE 7]><div id="advBanner"><img src="/images/ribbons/Ribbon_alpha.png" alt=" If that's where you thought you were, you're not... but click here and we'll take care of that for you." usemap="#map" /><![endif]>
 <map id="map" name="map" >
 <area alt="If that's where you thought you were, you're not... but click here and we'll take care of that for you." coords="25,0,124,0,124,102,95,72,87,80,46,39,54,30,25,0" href="" shape="poly" />
 </map>
</div>

Register it in the page your going to use it.

<%@ Register Src="~/CommonBanner.ascx" TagName="CommonBanner" TagPrefix="uc6" %>
Load this at the end of the page to allow the page to load faster.
<uc6:CommonBanner ID="CommonBanner" runat="server" />
Enjoy!
Thanks to Joe Levi for his multiple CS skills and IE hackery.
Posted on Tuesday, September 25, 2007 4:39 PM | Back to top


Comments on this post: Create a Banner/Ribbon in corner of your website!

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © mikedopp | Powered by: GeeksWithBlogs.net