Hello, I am wanting to add a floating menu to my website and I cant get it to work. Im trying to alter/add some script and image I found HERE and just use the back to top portion. Anyway I read the /docs/read_me_jscript file on how to add jscript to your template but im getting something wrong. Im using my My_Template/common/tpl_main_page.php file and it says to add the following code just before the </BODY> so I altered the code so it would call the file from My_template/jscript folder.
THIER CODE:
Code:
<script language="JavaScript" type="text/javascript" src="floating_menu.js"></script>
ALTERED CODE:
Code:
<script language="javascript" src="includes/templates/pure_black/jscript/jscript_floating_menu.js"></script>
Now I opened the .js file and am only going to use the back to top portion so I altered the section so it would point to the image in my MY_Template/images folder.
Code:
document.write('<a href="#top"><img src="includes/templates/pure_black/images/float3-top.gif" border="0" vspace="1"></a><br>');
I am getting nothing on my site What am I doing wrong? I know it has to do with where and how im adding the script to my tpl_main_page.php
Thanks!
Bookmarks