View Single Post
Re: Fake IE Information Bar Script
Old
  (#4 (permalink))
SugarBlush
 
Status:
Posts: n/a
Points: 0
Bank: 0
Total Points: 0
Donate
Re: Fake IE Information Bar Script - 11-07-2006, 07:25 PM

Quote:
Originally Posted by theDragonsDen
[SIZE=2]This is that yellow bar that comes up that gives a warning that there is something unsafe on the page.[/SIZE]

First is the CSS
Code:
 
/* A fake IE information bar */
body
{
 background-color: white;
 margin: 0px;
 padding: 0px;
}
#infobar {
 font: message-box;
}
/* Please adjust the values if the infobar is not looking good */
#infobar a, #infobar a:link, #infobar a:visited, #infobar a:active {
 display: block;
 color: #000;
 width:100%;
 background: #FFFFE1 url(http://img396.imageshack.us/img396/5451/warningrg7.gif) no-repeat fixed .3em .3em;
 border-bottom: .16em outset;
 text-decoration: none;
 cursor: default;
}
#infobar a:hover {
 color: #FFF;
 background: #3169B6 url(http://img396.imageshack.us/img396/5451/warningrg7.gif) no-repeat fixed .3em .3em;
}
#infobar p{
 margin:0px;
 padding: .45em 0em .45em 22px;
 font-size:11px;
}
Then the first thing after the <BODY> tag should be
Code:
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;><tr><td width=&quot;100%&quot;><div id=&quot;infobar&quot;><a href=http://thedragonsden.us.to><p> Visit theDragonsDen....or replace this text with your own.</p></a></div></td></tr></table>
You can change the background to a different warning also. Just change the background url. This script is great for advertisements. Please don't use it for phishing purposes.
Cool!!! but should I put the CSS in the same HTML file as code or should I put it in a separate file??

Last edited by SugarBlush : 11-07-2006 at 07:32 PM.
   
Reply With Quote