Free2Code
The majority of forums are now only available as archives, which means posting/editing is disabled.

The Anything and Everything forum is still open.
 
Time: 2013-05-21, 05:14pm
Remote link to javascript?
Subject: Remote link to javascript?  ·  Posted: 2004-03-20, 02:08pm
Rank: ? (768)
Member #: 11085
i was wondering if it is possible to remotly call up another sites javascript in a link?

link if i was doing a normal link to some javascript, i mat write
Code:
  1. <A HREF="javascriptlayAudio(0);">


but as for calling it from another site, i know
Code:
  1. <A HREF="http://www.relpats-eht.com/projects/moo.php?javascriptlayAudio(0);">

doesnt work, so i was wondering if it is possible

what im trying to do is take that cow that moo's when u click on it with out a media popup window i made and put it in my sig on a forum.

if its not possible, il just have to stick with having a popup window on the forum...

- relpats_eht
 
  Reply to this ·  Post link ·  Top
Subject: Re: Remote link to javascript?  ·  Posted: 2004-03-22, 04:39am
Rank: ? (4827)
Member #: 3416
it's not possible. you would need to link to an html page that had that function and then just ran it. you can put the code in the body tag's onload event:

Code:
  1. <html>
  2.   <head>
  3.     <script type="text/javascript" src="filewithplayAudio.js"></script>
  4.   </head>
  5.   <body onload="javascriptlayAudio(0);">
  6.   </body>
  7. </html>


something like that.

my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
 
  Reply to this ·  Post link ·  Top
Subject: Re: Remote link to javascript?  ·  Posted: 2004-03-22, 06:21am
Rank: ? (768)
Member #: 11085
too bad... its really amusing though lol u click the cow and it moos :-o

- relpats_eht
 
  Reply to this ·  Post link ·  Top
Subject: Re: Remote link to javascript?  ·  Posted: 2004-03-22, 10:38pm
Rank: ? (241)
Member #: 13810
Email the owner and ask them if you can use it.

If they say yes, download the image, then steal the sorce code.

- Thomaz www.port23.tk
 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

Penguino AVR

Want to learn about robotics or microcontrollers?
Check out the Penguino AVR from our friends at
Icy Labs