1
cydud3
Javascript in Blocks?
  • 2004/10/21 16:02

  • cydud3

  • Just popping in

  • Posts: 50

  • Since: 2004/6/10


I was wondering whether it would be possible to run Javascript in XOOPS blocks. I tried to do it but I couldn't figure out how to put the part that would normally go under <head></head>. Any way to do this? Basically what I'm trying to do is run Javascript on some text to create some blinking/glowing effects.

2
ejuden01
Re:Javascript in Blocks?
  • 2004/10/21 16:23

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


Trying putting it in something like this:

<script type="text/javascript">
    <!-- 
type your javascript here //-->
</script>

3
cydud3
Re:Javascript in Blocks?
  • 2004/10/21 16:43

  • cydud3

  • Just popping in

  • Posts: 50

  • Since: 2004/6/10


Quote:

ejuden01 wrote:
Trying putting it in something like this:

<script type="text/javascript">
    <!-- 
type your javascript here //-->
</script>


This will work as long as it didn't need to be in the <head>. I have used this before. However, some parts need to be in the <head> and that's what I'm having problems with.

4
carnuke
Re:Javascript in Blocks?
  • 2004/10/21 17:21

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


If you want to make your js available in all pages put the file in theme.html in the head as usual. If it's only a specific requirement for some pages and you don't want to load it for every page put it somewhere else, but you will need to call it as a fullhttp://mysite/js_files/my-js-file.js to get it to display correctly. At least this is my experience.

Login

Who's Online

159 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 159


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits