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: Undefined index: href by Shades
September 29, 2022, 07:05:13 pm

Re: SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by Shades
June 04, 2022, 11:29:37 am

Re: Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

Re: ezPortal 5.5 by EzPortal
May 20, 2022, 09:59:30 am

Re: ezPortal 5.5 by tigez
May 20, 2022, 08:46:15 am

Re: Undefined index: href by Shades
May 16, 2022, 02:58:21 pm

Re: Image/Attachment display issue by Shades
May 16, 2022, 02:28:35 pm

+- HTML Menu


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

Recent Topics ezBlock

Undefined index: href by Shades
September 29, 2022, 07:05:13 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

ezPortal 5.5 by EzPortal
May 20, 2022, 09:59:30 am

Image/Attachment display issue by Shades
May 16, 2022, 02:28:35 pm

Can't delete custom actions by Shades
April 13, 2022, 12:53:28 pm

Newest Member ezblock by Shades
March 23, 2022, 12:48:32 pm

Random Download Block by Shades
March 22, 2022, 10:37:47 am

BBC Pages by EzPortal
March 21, 2022, 10:36:41 pm

Recent Topics Blocks are different from left side to right side by Shades
March 21, 2022, 02:42:38 pm

Author Topic: Where do I put a .js file that I'm referencing in an EZ Block?  (Read 20282 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: 1289
  • 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: 1289
  • 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
10653 Views
Last post February 20, 2010, 05:19:40 am
by Marian
1 Replies
6226 Views
Last post December 17, 2008, 07:10:57 pm
by EzPortal
1 Replies
5011 Views
Last post February 27, 2013, 04:53:16 pm
by EzPortal
14 Replies
7649 Views
Last post May 20, 2022, 02:47:13 pm
by Shades
1 Replies
2158 Views
Last post June 04, 2022, 11:40:13 am
by EzPortal

+-SMF Gallery

Quick Menu


Powered by EzPortal