Welcome to Geeklog, Anonymous Friday, April 12 2024 @ 10:14 am 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
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/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:
Text 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 Smile

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

El-Vis

Anonymous
I'll give it a try!
 Quote

All times are EDT. The time is now 10:14 am.

  • 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