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: Converting to HTTPS by EzPortal
September 24, 2017, 07:11:26 pm

Converting to HTTPS by Padisha
September 24, 2017, 12:22:45 pm

Re: Mobile Only Blocks by EzPortal
September 23, 2017, 03:15:10 pm

Re: Mobile Only Blocks by morenos
September 23, 2017, 12:04:30 pm

Re: Members online block not displaying. by EzPortal
September 19, 2017, 12:02:55 pm

Re: Members online block not displaying. by Kocsis
September 19, 2017, 12:29:13 am

Re: EZPoll block by Julian
August 17, 2017, 03:43:31 am

Re: EZPoll block by EzPortal
August 16, 2017, 12:37:26 pm

+- HTML Menu


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

Author Topic: Where do I put a .js file that I'm referencing in an EZ Block?  (Read 15676 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: 1159
  • Karma: 63
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.

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: 1159
  • Karma: 63
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?

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
2840 Views
Last post April 05, 2009, 12:02:41 pm
by Pierre Desjardins
2 Replies
3406 Views
Last post April 10, 2009, 06:22:03 pm
by Pierre Desjardins
2 Replies
3654 Views
Last post April 15, 2009, 06:26:59 pm
by Marian
1 Replies
5977 Views
Last post May 29, 2009, 10:37:58 am
by daftscouser
1 Replies
2658 Views
Last post February 27, 2013, 04:53:16 pm
by EzPortal

+-SMF Gallery

Quick Menu








Members Online

27 Guests, 0 Users
Powered by EzPortal