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: How to remove the SMF menu on top of the portal by VSD
November 04, 2020, 11:02:52 pm

Re: How to remove the SMF menu on top of the portal by EzPortal
November 04, 2020, 09:29:10 pm

Re: How to remove the SMF menu on top of the portal by VSD
November 04, 2020, 08:17:14 pm

Re: How to remove the SMF menu on top of the portal by EzPortal
November 04, 2020, 07:57:05 pm

How to remove the SMF menu on top of the portal by VSD
November 04, 2020, 07:43:18 pm

Minor Update for SMF 2.1.x by EzPortal
October 18, 2020, 09:33:09 am

Re: EzPortal unable to be seen by user with primary custom usergroup by EzPortal
October 12, 2020, 07:55:08 am

EzPortal unable to be seen by user with primary custom usergroup by radi27
October 11, 2020, 04:46:32 pm

+- HTML Menu


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

Recent Topics ezBlock

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

Minor Update for SMF 2.1.x by EzPortal
October 18, 2020, 09:33:09 am

EzPortal unable to be seen by user with primary custom usergroup by EzPortal
October 12, 2020, 07:55:08 am

Show Likes mod by NickT
July 10, 2020, 12:09:44 pm

ezPortal inbuilt module downloaders not working. by EzPortal
March 26, 2020, 08:19:48 am

Recent Topic Ezblock randomly showing "New" message indicator by EzPortal
January 14, 2020, 10:17:10 pm

Block hiding issue on smf 2.1 mobile devices by EzPortal
January 07, 2020, 08:21:08 am

Install error. Duplicate column name 'metatags' by EzPortal
January 06, 2020, 03:52:03 pm

ezPortal 4.5.5 now with PHP 7.2/7.3 support by EzPortal
December 30, 2019, 04:18:18 pm

Unable to load EZportal when Maintenance mode disabled? by EzPortal
December 06, 2019, 09:21:56 am

Author Topic: Where do I put a .js file that I'm referencing in an EZ Block?  (Read 18055 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: 1229
  • Karma: 66
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: 1229
  • Karma: 66
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
0 Replies
3685 Views
Last post April 05, 2009, 12:02:41 pm
by Pierre Desjardins
2 Replies
4818 Views
Last post April 10, 2009, 06:22:03 pm
by Pierre Desjardins
2 Replies
5350 Views
Last post April 15, 2009, 06:26:59 pm
by Marian
1 Replies
7147 Views
Last post May 29, 2009, 10:37:58 am
by daftscouser
1 Replies
3777 Views
Last post February 27, 2013, 04:53:16 pm
by EzPortal

+-SMF Gallery

Quick Menu



Members Online

22 Guests, 0 Users
Powered by EzPortal