Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
I would like to use this menu but I am having trouble getting the javascript to work in the ubb_registerednav.tmpl, how would I go about applying this? Twisty offered some advice on different code but it doesn't appy here.
Code
<br /><!-- Menu Start --><br /><div id=DMBRI style="position:absolute;"><br /><img src="images/dhtml/dmb_i.gif" name=DMBImgFiles width="1" height="1" border="0" alt=""><br /><img src="js/dmb_m.gif" name=DMBJSCode width="1" height="1" border="0" alt=""><br /></div><br /><p><br />  <script language="JavaScript" type="text/javascript"><br />var rimPath=null;var rjsPath=null;var rPath2Root=null;function InitRelCode(){var iImg;var jImg;var tObj;if(!document.layers){iImg=document.images['DMBImgFiles'];jImg=document.images['DMBJSCode'];tObj=jImg;}else{tObj=document.layers['DMBRI'];if(tObj){iImg=tObj.document.images['DMBImgFiles'];jImg=tObj.document.images['DMBJSCode'];}}if(!tObj){window.setTimeout("InitRelCode()",700);return false;}rimPath=_gp(iImg.src);rjsPath=_gp(jImg.src);rPath2Root=rjsPath+"../";return true;}function _purl(u){return xrep(xrep(u,"%%REP%%",rPath2Root),"\\","/");}function _fip(img){if(img.src.indexOf("%%REL%%")!=-1) img.src=rimPath+img.src.split("%%REL%%")[1];return img.src;}function _gp(p){return p.substr(0,p.lastIndexOf("/")+1);}function xrep(s,f,n){if(s) s=s.split(f).join(n);return s;}InitRelCode();<br /></script><br />  <script language="JavaScript" type="text/javascript"><br />function LoadMenus() {if(!rjsPath){window.setTimeout("LoadMenus()", 10);return false;}var navVer = navigator.appVersion;<br />if(navVer.substr(0,3) >= 4)<br />if((navigator.appName=="Netscape") && (parseInt(navigator.appVersion)==4)) {<br />document.write('<' + 'script language="JavaScript" type="text/javascript" src="' + rjsPath + 'nsmenu.js"><\/script\>');<br />} else {<br />document.write('<' + 'script language="JavaScript" type="text/javascript" src="' + rjsPath + 'iemenu.js"><\/script\>');<br />}return true;}LoadMenus();</script><br />  <!-- Menu End --> 


This will be followed by an image placement tag which will display the menu, I would like to place this in the menubar.

Code
 <img border="0" src="/images/dhtml/simg.gif" width="1" height="1" name="MyRefImage"> 

Sponsored Links
Entire Thread
Subject Posted By Posted
Add javascript to ubbt_registerednav ericgtr 12/04/2003 8:44 PM
Re: Add javascript to ubbt_registerednav ericgtr 12/04/2003 11:08 PM
Re: Add javascript to ubbt_registerednav slayer60 12/04/2003 11:34 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2813
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 5
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)