View Single Post
Old 10-01-2012, 02:49 AM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,046
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
I would create a <div> on your page that contains the HTML, graphics, content, links, etc.

In your CSS stylesheet, you start out with that <div> hidden.
display:none; keeps it hidden from view.

#special{
width:400px;
height:300px;
display:none;
}

In your page you have:

<div id="special">
Visit today for specials on blah blah blah.
</div>

Then you put this on the top of your page (in the <head> section) so that <div> appears when the page loads.

<script src="jquery-1.8.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#special').fadeIn(1500);
});
</script>

You also need to go to JQuery website and download the latest JQuery javascripting.
Put that .js file in the same directory as your page (or wherever you decide).

Using JQuery allows you to do many things, such as fade the <div> into view,
fade it back out, etc.


.
mlseim is offline   Reply With Quote