TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 05:11:14 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 310
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 290
  • Total: 291
  • lurkalot

Need help with Javascript/PHP addition.

Started by animecosmo, July 05, 2008, 12:34:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

animecosmo

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.

<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:

<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

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.

FUBAR

You should share the script you found as others may find it useful. ;)