News: Welcome to the TinyPortal Support site.

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

December 14, 2019, 01:53:23 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189280
  • Total Topics: 20775
  • Online Today: 52
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 1
Guests: 36
Total: 37

Author Topic: Need help with Javascript/PHP addition.  (Read 3069 times)

0 Members and 1 Guest are viewing this topic.

animecosmo

  • Guest
Need help with Javascript/PHP addition.
« on: July 04, 2008, 05:34:22 PM »
I am trying to get the following menu, which looks like this into my theme and have it load in a block. Since it calls from the header, then loads in the body, I am not sure how do to this. I tried placing just the script in the header in an echo. It does not give me an parse error, but it does say there is an error on the page, and it is not loading the menu.

Any help that anyone can offer me would be extremely appreciated.

Code: [Select]
<html>
<head>
<title>Anime Cosmo Navigation</title>
<script LANGUAGE="JavaScript"> </script>
<script LANGUAGE="JavaScript" SRC="http://www.animecosmo.com/menu/xbLibrary.js"></script>
<script language="javascript">
  xblibrary = new xbLibrary('.');
</script>
<script LANGUAGE="JavaScript" SRC="http://www.animecosmo.com/menu/xbDOM.js"></script>
<script LANGUAGE="JavaScript" SRC="http://www.animecosmo.com/menu/xbStyle.js"></script>

<script LANGUAGE="JavaScript" SRC="http://www.animecosmo.com/menu/xbCollapsibleLists.js"></script>

<script LANGUAGE="JavaScript" SRC="http://www.animecosmo.com/menu/acomenu.js"></script>

</head>
<body ONLOAD="init()" onresize="redo()">

<!-- placeholder to force position of Menu layer, works for Netscape 4.7 and IE -->

    <a name="leftmenu">&nbsp;</a>
<!-- placeholder to force position of Menu layer, works for Netscape 6 & 7-->
<a name="xleftmenu" id="leftmenu"  style="position:relative">&nbsp;</a>
</body>
</html>

I also tried:

Code: [Select]
<body ONLOAD="init('leftmenu')" onresize="redo()">
However, that gave me a parse error. I am sure it is because of the single quotes, but I an not sure how to fix that. I am not even sure if the above code is what I need to make it work right, even.

file:///C:/Users/Sarah/Desktop/ACo/menu/tablemenu.htm is the original example of placing a menu in a specific spot on the page.

Honestly, I do not even need something this fancy if no one can figure it out. I just need a collapsible menu that will work in a TP block.

animecosmo

  • Guest
Re: Need help with Javascript/PHP addition.
« Reply #1 on: July 04, 2008, 05:54:33 PM »
Ah, never mind. I found a much more simple script that works very well. I would have deleted this post, but it will not allow me.

Offline FUBAR

  • Jr. Member
  • **
  • Posts: 98
Re: Need help with Javascript/PHP addition.
« Reply #2 on: July 04, 2008, 06:12:39 PM »
You should share the script you found as others may find it useful. ;)