1
iolai
JavaScript menu in Xoops blocks
  • 2004/7/5 11:30

  • iolai

  • Quite a regular

  • Posts: 206

  • Since: 2004/6/26


I found a nice menu on the net, a javascript menu, and I want to put it instead of main menu in XOOPS block.

However, I understand that all javascript code cannot be integrated into html/php page, ie it 'floats' above it. I mean, you don't put it in a certain place in the html/php code, but you put it somewhere, and tell it the x/y coordinates.

Please tell me how can I 'attach' this (or any other) javascript to the block.


2
karuna
Re: JavaScript menu in Xoops blocks
  • 2004/7/5 11:37

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


put it in the theme.html ?

3
iolai
Re: JavaScript menu in Xoops blocks
  • 2004/7/5 12:09

  • iolai

  • Quite a regular

  • Posts: 206

  • Since: 2004/6/26


That doesn't answer my question because of several reasons.

1. theme.html has nothing to do with blocks, as far as I understand.

2. The reply doesn't explain how to put javascript in a block so it will be part of the block and not float above it.

4
phppp
Re: JavaScript menu in Xoops blocks
  • 2004/7/5 12:24

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Quote:

iolai wrote:
1. theme.html has nothing to do with blocks, as far as I understand.
pre-load js through theme.html is a feasible option

Quote:

iolai wrote:
The reply doesn't explain how to put javascript in a block so it will be part of the block and not float above it.
You will get an more effective answer if you give more specific preferences.

5
Matas
Re: JavaScript menu in Xoops blocks
  • 2004/7/5 12:50

  • Matas

  • Just popping in

  • Posts: 6

  • Since: 2004/3/21


What me and Iolai want is to create new block that will keep some items from "Main Menu" + add custom items with subitems.
One of the way we tried is implementing java script based menus, but since they are floating, they don't fit into a block we created for them if the page is resized.
We will also need to link to custom content, any feedback on that one would also be greatly appriciated.