Current location: Hot Scripts Forums » General Web Coding » JavaScript » how can I get javascript to scroll under the fixed header?

how can I get javascript to scroll under the fixed header?

Reply
  #1 (permalink)  
Old
New Member
 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
how can I get javascript to scroll under the fixed header?

Hello, I'm having trouble with my web site in dreamweaver. I created a site out of html and css that has a fixed header. The problem I'm having is that the google ad (which is javascript) that is placed in its own div scroll over the fixed header. I need it to scroll under the fixed header. Is this something that I need to change in the CSS of the header or the div, or is this something that I need to adjust in the javascript code of the ad? Any feedback is greatly appreciated. Thank you.

Here is the CSS for the header:
#nav {
height: 100px;
width: 100%;
top: 0px;
left: 0px;
position: fixed;
background-color: #000000;
}

Here is the CSS for the div that contains the google ad:
#adone {
width:300px;
height: 275px;
margin-right: 10px;
margin-top: 5px;
}

Here is the javascript for the ad:
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1000551524447618";
/* New World Dank 2012 */
google_ad_slot = "0428886617";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Reply With Quote

Featured Marketplace Scripts (view more)

Reply

Bookmarks

Tags
dreamweaver, fixed position


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Joomla Javascript Header Image Problem in FireFox 3 Andy-G PHP 4 05-02-10 12:33 PM
Scroll to bottom of div with JavaScript kaceykeleher JavaScript 2 04-08-09 05:03 PM
how to create scroll bar ,using javascript DOM deepraj JavaScript 1 12-29-05 03:03 AM
fixed header for datagrids and two level login seemagaur ASP.NET 0 10-14-05 06:51 PM
JavaScript Scroll help... Thomas82 JavaScript 1 04-30-05 09:42 AM


All times are GMT -5. The time now is 05:26 AM.
vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.