I find it hard to believe that you cannot control what appears in the served source code of the pages. That's just a sloppy use of PHP. If you cannot figure out why it's being included multiple times, try changing include to include_once:
http://www.php.net/manual/en/function.include-once.php
If all else fails, javascript code can be added to prevent multiple inits. Anywhere you have this:
Code:
<link rel="stylesheet" type="text/css" href="http://www.powerpinochle.com/css/anylinkcssmenu.css" />
<script type="text/javascript" src="http://www.powerpinochle.com/js/anylinkcssmenu.js">
/***********************************************
* AnyLink CSS Menu script v2.0- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Project Page at http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm for full source code
***********************************************/
</script>
<script type="text/javascript">
//anylinkcssmenu.init("menu_anchors_class") ////Pass in the CSS class of anchor links (that contain a sub menu)
anylinkcssmenu.init("anchorclass")
</script>
Make it like so:
Code:
<script type="text/javascript">
/***********************************************
* AnyLink CSS Menu script v2.0- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Project Page at http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm for full source code
***********************************************/
if(typeof anylinkcssmenu === 'undefined'){
document.write('<link rel="stylesheet" type="text/css" href="http://www.powerpinochle.com/css/anylinkcssmenu.css" />\n' +
'<script type="text/javascript" src="http://www.powerpinochle.com/js/anylinkcssmenu.js"><\/script>\n');
}
</script>
<script type="text/javascript">
//anylinkcssmenu.init("menu_anchors_class") ////Pass in the CSS class of anchor links (that contain a sub menu)
if(!anylinkcssmenu.anchorclass){
anylinkcssmenu.init("anchorclass");
anylinkcssmenu.anchorclass = true;
}
</script>
The browser cache may need to be cleared and/or the page refreshed to see changes.
And the server cache may need to be cleared as well.
Bookmarks