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

ezPortal 5.3 Update by EzPortal
October 30, 2021, 01:31:50 pm

Re: ezPortal 5.1.4 Update by EzPortal
October 08, 2021, 10:09:25 pm

Re: ezPortal 5.1.4 Update by EzPortal
October 04, 2021, 11:07:05 am

ezPortal 5.1.4 Update by EzPortal
October 02, 2021, 08:18:20 pm

Re: Illegal string offset 'num_days_shown' (Upcoming Events Block) by EzPortal
August 21, 2021, 11:06:47 pm

Re: Illegal string offset 'num_days_shown' (Upcoming Events Block) by Shades
August 21, 2021, 09:35:57 pm

Re: Illegal string offset 'num_days_shown' (Upcoming Events Block) by EzPortal
August 21, 2021, 08:59:50 pm

Illegal string offset 'num_days_shown' (Upcoming Events Block) by Shades
August 21, 2021, 07:10:51 pm

+- HTML Menu


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

Recent Topics ezBlock

ezPortal 5.3 Update by EzPortal
October 30, 2021, 01:31:50 pm

ezPortal 5.1.4 Update by EzPortal
October 08, 2021, 10:09:25 pm

Illegal string offset 'num_days_shown' (Upcoming Events Block) by EzPortal
August 21, 2021, 11:06:47 pm

Windows 11 or Windows 10??? by jiana
August 05, 2021, 07:34:11 am

Showing centre blocks before left ones on mobile devices by EzPortal
July 08, 2021, 05:46:41 pm

ezPortal 5.1 by EzPortal
May 19, 2021, 09:35:58 am

Average block headers by EzPortal
May 17, 2021, 01:05:41 pm

Error when guest tries to access a forum that does not have permission by EzPortal
April 11, 2021, 09:30:39 am

ezPortal 5.0 Released by EzPortal
January 29, 2021, 12:34:42 pm

How to remove the SMF menu on top of the portal by VSD
November 04, 2020, 11:02:52 pm

Author Topic: Where do I put a .js file that I'm referencing in an EZ Block?  (Read 19036 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: 1244
  • 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: 1244
  • 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
9357 Views
Last post February 20, 2010, 05:19:40 am
by Marian
1 Replies
5475 Views
Last post December 17, 2008, 07:10:57 pm
by EzPortal
1 Replies
6887 Views
Last post April 02, 2009, 01:05:51 pm
by Sam
2 Replies
8433 Views
Last post December 27, 2009, 11:12:24 pm
by kcmartz
1 Replies
4391 Views
Last post February 27, 2013, 04:53:16 pm
by EzPortal

+-SMF Gallery

Quick Menu



Members Online

14 Guests, 0 Users
Powered by EzPortal