Showhide javascript in page template
-
I am trying to include some javascript to show/hide a section with code that works fine in a html page. My page template includes in the pagepost div:
<div id="wrapper"> <script type=”text/javascript” src=”showhide.js”></script> <script type=”text/javascript”> <!– <a>What’s New</a> </script> <div id="showhide"> <?php include(TEMPLATEPATH . '/whatsnew.php'); ?> </div> </div>
showhide.js is in my theme directory with my theme style.css having the necessary css, #wrapper & #showhide
However the first thing I see is the include file, no what’s new anchor to show/hide…any ideas what I am doing wrong?
Thanks, Tom.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Showhide javascript in page template’ is closed to new replies.