Log in

View Full Version : Menu in header


Frank Sinatra
11-27-2008, 07:59 AM
Hello, I am trying to put a menu in the head of my forum, using the program s Sothink Dhtml Menu.

The indications are these:

Copy and paste this code within <HEAD> tag of your web page
<script type="text/javascript" id="sothink_dhtmlmenu"> <!--
st_siteroot="web/script/menu";
st_jspath="/stmenu.js";
if(!window.location.href.indexOf("file:") && st_jspath.charAt(0)=="/")
document.write('<script type="text/javascript" src="'+st_siteroot+st_jspath+'"><\/script>');
else
document.write('<script type="text/javascript" src="'+st_jspath+'"><\/script>');
//--> </script>


Then says this:

Copy and paste this code within <BODY> tag of your web page
<script type="text/javascript" src="web/script/menu/stmenu.js"></script>



How is it the method to do this well?
I have a complete day trying it and nothing :(
hope you can helpme please..

Thank you for any help! :p

Lynne
11-27-2008, 03:49 PM
You are wondering how to post it into the <body> tag? You can place it in the navbar template - at the very top - and then it will be in the body tag for all pages that have a navbar.

Frank Sinatra
11-28-2008, 01:11 PM
thanks for your response :)

Still im adapting a design, just working with the complete xml, my problem is that i cant make work the drop-down menu, i put the codes as it indicates, but never show the menu :(
only the forum background
Maybe i need to do another procedure, but dont know how :(

hope someone can helpme :o


This one is the skin, the menu is in a red box, for now it is working only as normal buttons

Guest210212002
11-28-2008, 01:34 PM
If you view the source of any of your pages, is the .js call in there? Also, you might try using a complete URL for it, eg:


<script type="text/javascript" src="http://www.yoursite.com/web/script/menu/stmenu.js"></script>


In case the path is incorrect.

Princeton
11-28-2008, 04:01 PM
try....

<script type="text/javascript" id="sothink_dhtmlmenu"> <!--
st_siteroot="web/script/menu";
st_jspath="/stmenu.js";
if(!window.location.href.indexOf("file:") && st_jspath.charAt(0)=="/")
document.write('<script type="text/javascript" src="'+st_siteroot+st_jspath+'"><\/script>');
else
document.write('<script type="text/javascript" src="'+st_jspath+'"><\/script>');
//--> </script>

post in headinclude template



<script type="text/javascript" src="web/script/menu/stmenu.js"></script>

post in header or navbar template

Frank Sinatra
11-30-2008, 05:26 PM
Thanks to all, nothing works, i give up :(

thanks a lot :)