| Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects | Member Perks | Member Login | View Cart |
Scrolling BackgroundIf you're using a recent version of Internet Explorer you should see the background scrolling by. You may notice the background around the page header isn't scrolling, but that's because it's build into the header graphic.Note: If I'd have made the header with a transparent background it would have had to be a GIF image, and with all the detail in the header graphic the file size would be unacceptably large. Browsers other than Internet Explorer will see the standard background and will not get a JavaScript error. They will see no message or a message of your choice, but no errors. How to do it, do it, do it:Just add the following to the top of your page, under the body tag or wherever you want a message placed if you choose to display a message to people using browsers other than Internet Explorer:
<script type="text/JavaScript">
if( (navigator.appName.indexOf('Explorer') > -1) ||
(navigator.appName.indexOf('IE') > -1) )
{
var backgroundOffset = 0;
var bjSlide=eval('document.body');
function render(edify) {
backgroundOffset=backgroundOffset + 1;
if (backgroundOffset>edify) backgroundOffset = 0;
bjSlide.style.backgroundPosition = "0 " + backgroundOffset;
}
var ScrollTimer = window.setInterval("render(153)", 50);
} else {
document.writeln('<p>Message</p>');
}
</script>
Editable Parts
|
Almost a NewsletterSubscribe today and get a free gift, The Science of Getting Rich. Learn more, or subcribe below:Did you know...The member's site has about 100 standards compliant HTML and CSS tutorials, 31 handy reference charts, reprintable content, web graphics, exclusive fonts, free software, free ebooks and more? All this for less than 9 cents a day! [ Details ] |
|
Home | Web Design Tutorials | Free Graphics | Newsletter | Products | Specials | SEO | Sound Effects
Member Perks | Member Login | About BoogieJack.com | Contact | Privacy Policy | Copyright Policy | Links
| |