Welcome to Geeklog Saturday, September 21 2019 @ 09:31 pm EDT

Geeklog Forums

DHTML menu within block - need help!


esedic

Anonymous
Hi!

I would like to have a DHTML menu within one of the blocks, but I don't know where to put (on FTP server) script (.js) files generated with creation of DHMTL menu.

For example:
on the URL http://www.mypage.com/admin/block.php?mode=edit&bid=27
(it's a edit mode for the block I wish to edit) there is a html code which defines what will be seen in that block. I would like to insert a javascipt into that code, but as I mentioned I don't know where to put the .js files?

Is that possible?

Tnx, ELvis

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/04
Posts: 555
Location:Champaign, Illinois
You can put the html within the block.
But you will need to include the js file in the header of your site.
Place your javascript call somewhere between the head tags in your path_to_geeklog/public_html/layout/your_theme/header.thtml

like this:
PHP Formatted Code
<script language="JavaScript" type="text/javascript" src="{site_url}/your_javascript_file_name.js"></script>
 


and upload your js file to your public_html directory.


Hope this helps

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

El-Vis

Anonymous
I'll give it a try!

All times are EDT. The time is now 09:31 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content