EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

Re: TinyMCE Editor disapears by DenDen66
March 02, 2025, 06:59:40 am

Re: TinyMCE Editor disapears by DenDen66
February 28, 2025, 08:09:43 am

Re: TinyMCE Editor disapears by DenDen66
February 28, 2025, 07:31:29 am

Re: TinyMCE Editor disapears by EzPortal
February 27, 2025, 06:57:30 pm

Re: TinyMCE Editor disapears by DenDen66
February 27, 2025, 04:45:52 pm

Re: TinyMCE Editor disapears by DenDen66
February 27, 2025, 06:15:11 am

Re: TinyMCE Editor disapears by EzPortal
February 26, 2025, 04:58:45 pm

TinyMCE Editor disapears by DenDen66
February 26, 2025, 04:42:34 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

TinyMCE Editor disapears by DenDen66
March 02, 2025, 06:59:40 am

Renaming a page by DenDen66
February 23, 2025, 10:51:22 am

Styling ezBlock by EzPortal
February 19, 2025, 09:15:05 pm

I don't remember how to upgrade by EzPortal
February 05, 2025, 08:44:58 am

ezPortal 5.6 release by EzPortal
January 31, 2025, 11:21:34 am

5.5.4 by EzPortal
January 16, 2025, 08:31:41 pm

Moving a block higher in list by UkuleleMan
December 17, 2024, 07:58:27 am

Mandalorian Mercs Costume Club by UkuleleMan
December 17, 2024, 07:32:20 am

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Author Topic: Where do I put a .js file that I'm referencing in an EZ Block?  (Read 29014 times)

0 Members and 1 Guest are viewing this topic.

Offline newb

  • Posts: 3
  • Karma: 0
Where do I put a .js file that I'm referencing in an EZ Block?
« on: November 29, 2008, 10:34:38 am »
I've got some html in an EZBlock and I'm referencing a .js file. But I can't figure out where I'm supposed to put the .js file. ???

I've tried using an absolute path, but it didn't seem to work.

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1317
  • Karma: 67
Re: Where do I put a .js file that I'm referencing in an EZ Block?
« Reply #1 on: November 29, 2008, 10:44:39 am »
Can you show me an example? Of the script
An absolute path should work fine.
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline newb

  • Posts: 3
  • Karma: 0
Re: Where do I put a .js file that I'm referencing in an EZ Block?
« Reply #2 on: November 29, 2008, 12:42:38 pm »
html in the EZBlock:
Code: [Select]
<HTML>
<HEAD>
<script src="http://www.mysite.com/links/linklist.js"></script>
</HEAD>
<BODY>

<script LANGUAGE = "JavaScript">
</SCRIPT>

</BODY>
</HTML>

JS:
Code: [Select]
function makeArray(len) {
for (var i = 0; i < len; i++) this[i] = null;
this.length = len;
}

ideas = new makeArray(3);
ideas[0] = "<a href=\"http://www.google.com\">Google</a>";
ideas[1] = "<a href=\"http://www.yahoo.com\">Yahoo!</a>"
ideas[2] = "<a href=\"http://www.Reuters.com\">Reuters</a>"


function rand(n) {
seed = (0x015a4e35 * seed) % 0x7fffffff;
return (seed >> 16) % n;
}
var now = new Date()
var seed = now.getTime() % 0xffffffff

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1317
  • Karma: 67
Re: Where do I put a .js file that I'm referencing in an EZ Block?
« Reply #3 on: November 29, 2008, 02:42:36 pm »
That code that you have right right now will not show anything.
Are you trying to do random links or what?
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline newb

  • Posts: 3
  • Karma: 0
Re: Where do I put a .js file that I'm referencing in an EZ Block?
« Reply #4 on: November 29, 2008, 10:57:43 pm »
Yes, random links and then later random affilliate links w/ pictures.

 

Related Topics

  Subject / Started by Replies Last post
9 Replies
13348 Views
Last post February 20, 2010, 05:19:40 am
by Marian
1 Replies
8845 Views
Last post December 17, 2008, 07:10:57 pm
by EzPortal
1 Replies
7056 Views
Last post February 27, 2013, 04:53:16 pm
by EzPortal
14 Replies
687790 Views
Last post May 20, 2022, 02:47:13 pm
by Shades
1 Replies
734139 Views
Last post June 04, 2022, 11:40:13 am
by EzPortal

+-SMF Gallery

Quick Menu


Powered by EzPortal