Welcome to WebmasterWorld Guest from 23.20.223.88

Forum Moderators: open

Message Too Old, No Replies

Help Needed with External .JS Files

How do I use URL links in these please?

     
7:09 pm on Mar 19, 2001 (gmt 0)

10+ Year Member



My knowledge of JavaScript is not great, and I've discovered that I can't put some things in those .JS files. But I'm gradually feeling my way and am working out ways of incorporating affiliate links into them. Would be great if I could add search boxes to those .JS files, but the codes provided by affiliate programs are not in pure Javascript.

One thing: is it possible to add a drop-down menu to a .JS file?
I've tried the following, which works normally, but not via a .JS call:

<FORM NAME="nav"><SELECT NAME="SelectURL" onChange="window.open (document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value,'newwindow')">

<OPTION VALUE="http://www.freefind.cjb.net"SELECTED>
Please select site to visit:
<OPTION VALUE="http://CDUK.Best.CD">
CD UK - Discount Music
<OPTION VALUE="http://Nutrel.cjb.net">
Nutrel - Health
<OPTION VALUE="http://TopSitesUK.cjb.net">
UK Top - Best of British
</SELECT></FORM>

Spent ages trying to work this one out. Been scouring all the JS sites, but no luck.

Thanks :)

9:24 am on Mar 20, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Litmania, it seems no one knows the answer to this off the top of their heads - you might have more luck in the Browsers forum where the JavaScript people hang out ;)

I'll rally the troops and see if we can get an answer for you though!

11:53 am on Mar 20, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Here's an earlier thread discussing methods for using an external javascript file for navigation. It has several good references and techniques -- hope it has the help you need.

[webmasterworld.com...]

11:38 am on Mar 21, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Erm..because its not Java Script?

Because the <form> tags specify where the form is on the page?

 

Featured Threads

Hot Threads This Week

Hot Threads This Month