Js Menu Vs GoogleAds - This will test even the best JS experts!

liunx

Guest
Hi JS Experts,<br />
<br />
I am in the middle of changing the layout of my site, and I am having issues with my JavaScript menu and Google Ads displaying at the same time. Basically I want to display my JS menu, and the Google Ads directly below.<br />
<br />
I have included a segment of the page which is causing me the issue.<br />
Please give it your best shot.<br />
<br />
--------------------------------------START CODE SEGMENT-------------------------------------------------------------------<br />
<table width="99%" border="0" cellspacing="0" cellpadding="1" bordercolor="0"><br />
<tr><br />
<td align="left" valign="top"><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"default.asp"><br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"logo.gif" width="173" height="52" border="0"><br />
</a><br><br />
</td><br />
</tr><br />
<tr><br />
<td><br />
<!---BEGIN LEFT NAVIGATION BAR JAVA MENU----><br />
<script language=javascript type=text/javascript src=http://www.webdeveloper.com/forum/archive/index.php/"menu1.js"></script><br />
<script language=JavaScript type=text/javascript src=http://www.webdeveloper.com/forum/archive/index.php/"menu2.js"></script><br />
<!---END LEFT NAVIGATION BAR JAVA MENU----><br />
<br />
<!--- START GOOGLE MENU ADS --><br />
<script language=javascript type="text/javascript"><br />
<!--<br />
google_ad_client = "pub-2761120402018701";<br />
google_ad_width = 160;<br />
google_ad_height = 600;<br />
google_ad_format = "160x600_as";<br />
google_ad_channel ="7225697675";<br />
google_color_border = "dadada";<br />
google_color_bg = "336699";<br />
google_color_link = "ffffff";<br />
google_color_url = "ffffff";<br />
google_color_text = "ffffff";<br />
//--><br />
</script><br />
<script language=javascript type="text/javascript" src=http://www.webdeveloper.com/forum/archive/index.php/"http://pagead2.googlesyndication.com/pagead/show_ads.js"><br />
</script><br />
</td><br />
</tr><br />
</table><br />
<br />
----------------------------------END CODE SEGMENT-----------------------------------------------------------------------<br />
<br />
When I view this page the Google Ads override my JavaScript Menu. When I remove the Google Ads the menu works.<br />
<br />
Can someone please provide me a solution.<br />
<br />
Thanks In Advance,<br />
Mike.<!--content-->Menu is a list of links - do not use JS to generate it.<!--content-->Originally posted by Vladdy <br />
Menu is a list of links - do not use JS to generate it. It is generally a bad practice to let js near something as important as your sites navigation. I might use js for a drop down thing maybe (because I have a js menu already worked into a site and I do not feel like fixing it with a css and a backup htc... its a lazyness thing :p), but there would definatly be a backup navigation at the very least.<!--content-->Use Javascript for animating your menu, Yes...To create it, No.<!--content-->Originally posted by mbender <br />
Use Javascript for animating your menu, even then, a backup navigation is needed. Just having the js there can affect the functionality of the html menu.<!--content-->
 
Back
Top