The User Defined Tag: InfoBarFireFox
Code: Select all
if (stristr($_SERVER['HTTP_USER_AGENT'], "firefox")==FALSE)
{
echo '<div id="infobar"><a href="http://getfirefox.killerlinks.net"
title="FireFox is the Fastest and Most Secure Web Browser." target="_blank">It Is Highly Reccomended That You View This Website In FireFox. Click Here To Download FireFox.</a></div>';
}
At the bottom of your style sheet, add the following:
Code: Select all
/* information bar */
#infobar {
font: .9em normal "Verdana", "Geneva", sans-serif;
}
#infobar a, #infobar a:link, #infobar a:visited, #infobar a:active {
display: block;
float: left;
clear: both;
width: 100%;
height:17px;
color: black;
background: #ffffe6 url('http://getfirefox.killerlinks.net/images/warning.gif') no-repeat fixed .3em .3em;
padding: .7em .3em .3em 2em;
border-bottom: .16em outset;
margin-bottom: 1em;
text-decoration: none;
cursor: default;
}
#infobar a:hover {
color: white;
background-color: #08246a;
}
#infobar a img {
border: none;
}
And in your template right after the tag add:
Code: Select all
{FireFoxInfoBar}
It's pretty simple but it works
