/    Sign up×
Community /Pin to ProfileBookmark

Adsense Javascript Conflict with Navbar

I am having a problem with Adsense and the Navbars, as soon as I load the adsense script onto the page the navbar dissapears.. I have looked through the code to the best of my ability and changed any “var” ‘s that were in conflict and it still did not work.. I worked on this for about 4 hours and cant’ get it figured out.. I have posted the unedited Navbar code and the Adsense code in the hopes that someone here can help me figure this out.. and make them both live happiliy ever after together..

the website is [URL=”http://www.pawsdogdaycare.com/business_services_start_a_daycare/servicesbusiness.htm”]
Pawsdogdaycare[/URL]

I will have to post the codes as a reply as the text size is bigger than what is allowed here..

[COLOR=”Red”][SIZE=”4″][URL=”http://WWW.PAWSDOGDAYCARE.COM/menu_com.js”]NAVBAR CODE[/URL][/SIZE][/COLOR]

[SIZE=”4″][COLOR=”Red”][URL=”http://WWW.PAWSDOGDAYCARE.COM/show_ads.js”]ADSENSE CODE[/URL][/COLOR][/SIZE]

RICHARD

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guySep 16.2007 — It would be to do with the frames as Adsense is a frame which would change the frame numbering in your navbar code
Copy linkTweet thisAlerts:
@PAWSDOGauthorSep 16.2007 — Any idea how to fix it? I am unsure what I'm looking at.. (Actually I havent a clue...the only part of the script that I found regarding frames on the navbar was..
[CODE]function Go(){
if(Loaded||!PosStrt)return;
Created=0; Loaded=1;
status='Building menu';
if(FirstCreate){
if(FirstLineFrame =="" || !parent.frames[FirstLineFrame]){WebMasterAlert(0,FirstLineFrame); FirstLineFrame=SecLineFrame}
if(FirstLineFrame =="" || !parent.frames[FirstLineFrame]){WebMasterAlert(0,SecLineFrame); FirstLineFrame=SecLineFrame=DocTargetFrame}
if(FirstLineFrame =="" || !parent.frames[FirstLineFrame]){WebMasterAlert(0,DocTargetFrame); FirstLineFrame=SecLineFrame=DocTargetFrame=(parent.frames[0])?parent.frames[0].name:''}
if(SecLineFrame =="" || !parent.frames[SecLineFrame])SecLineFrame=DocTargetFrame;
if(SecLineFrame =="" || !parent.frames[SecLineFrame])SecLineFrame=DocTargetFrame=FirstLineFrame;
if(DocTargetFrame =="" || !parent.frames[DocTargetFrame])DocTargetFrame=SecLineFrame;
if(WebMasterCheck){if(!Check('Menu',NoOffFirstLineMenus))return;else WebMasterAlert(7,'')}
FirstLocation=(FirstLineFrame)?parent.frames[FirstLineFrame]:window;
SecLocation=(SecLineFrame)?parent.frames[SecLineFrame]:window;
DocLocation=(DocTargetFrame)?parent.frames[DocTargetFrame]:window;
if (FirstLocation==SecLocation) AcrossFrames=0;
if (AcrossFrames)FirstLineHorizontal=(MenuFramesVertical)?0:1;
FirstWindowWidth=(ExpYes)?FirstLocation.document.body.clientWidth:FirstLocation.innerWidth;
FirstWindowHeight=(ExpYes)?FirstLocation.document.body.clientHeight:FirstLocation.innerHeight;
SecWindowWidth=(ExpYes)?SecLocation.document.body.clientWidth:SecLocation.innerWidth;
SecWindowHeight=(ExpYes)?SecLocation.document.body.clientHeight:SecLocation.innerHeight;
if(MenuCentered) CalcLeft();
if(MenuVerticalCentered) CalcTop();
if(!DomYes){CenterText=(MenuTextCentered)?(NavYes)?"<div align='center'>":"align='center'":"";
if(NavYes)TxtClose="</font>"+(MenuTextCentered)?"</div>":""}}
FirstColPos=(Nav4)?FirstLocation.document:FirstLocation.document.body;
SecColPos=(Nav4)?SecLocation.document:SecLocation.document.body;
DocColPos=(Nav4)?DocLocation.document:SecLocation.document.body;
if (TakeOverBgColor)FirstColPos.bgColor=(AcrossFrames)?SecColPos.bgColor:DocColPos.bgColor;
if(FirstCreate){FirstContainer=CreateMenuStructure('Menu',NoOffFirstLineMenus);FirstCreate=0}
else CreateMenuStructureAgain('Menu',NoOffFirstLineMenus);
PositionMenuStruct(FirstContainer,StartTop,StartLeft);
InitFlag=1; Initiate(); InitFlag=0; Created=1;
SecLoadAgainWin=(ExpYes)?SecLocation.document.body:SecLocation;
SecLoadAgainWin.onunload=UnLoaded;
status='Menu ready for use'}
[/CODE]


But I have no idea how to change or modify it to make it work.. Is this something that is an easy fix?
×

Success!

Help @PAWSDOG spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...